Alembic Stream Player component
The purpose and properties of the Alembic Stream Player component varies depending on the context in which you are using it:
- On an imported instance of Alembic asset whose source is located in your project, it allows you to customize import and playback for this specific instance.
- On a GameObject or Prefab that contains an imported Alembic asset whose source is located outside your project, it allows you to manage all import properties for the imported asset.
Alembic asset located in your project
When you are using an imported instance of Alembic asset whose source is located in your Unity project, the properties of its Alembic Stream Player component are the following:
Property | Function |
---|---|
Time | Set the time in seconds of the animation that is currently displayed on the screen. This property operates like a playhead control, as you can scrub or animate it to play the animation. Valid values are from 0 to the length of the animation. |
Vertex Motion Scale | Set the magnification factor when calculating velocity. Greater velocity means more blurring when used with Motion Blur. By default, the value is set to 1 (the velocity is not scaled). Note: This setting only applies to computed velocity values. It has no effect on velocity property values read from the Alembic asset source. |
Time Range | Select the time range that corresponds to the portion of the animation you want to be able to play back in Unity. By default, this includes the entire animation. To change the time range, either drag the handles or directly enter the start and end values in seconds. |
Alembic asset located outside your Project
When you are using an imported Alembic asset whose source is located outside your Unity project, the properties of its Alembic Stream Player component are the following:
The properties of the Alembic Stream Player component fall into the following categories:
Alembic file options
Property/Button | Function |
---|---|
Alembic file | Allows you to select the Alembic file to import from outside your project. Note: You can only select a file from any local folder or any mapped network drive available through your file system. You cannot target a file through a direct network path or an FTP/HTTP link. |
Create Missing GameObjects | Creates in the current hierarchy of your imported Alembic asset* any GameObject that would be missing according to the actual node hierarchy of the external Alembic file. |
Remove Unused GameObjects | Removes from the current hierarchy of your imported Alembic asset* any GameObject that would not correspond to an actual node in the external Alembic file. |
* If your imported Alembic asset is part of a Prefab, you should perform these actions directly from the Prefab asset located in your Project window rather than from any Prefab instance of your Scene, in order to avoid any unexpected issues with Prefab overrides.
Playback options
Property | Function |
---|---|
Time | Set the time in seconds of the animation that is currently displayed on the screen. This property operates like a playhead control, as you can scrub or animate it to play the animation. Valid values are from 0 to the length of the animation. |
Vertex Motion Scale | Set the magnification factor when calculating velocity. Greater velocity means more blurring when used with Motion Blur. By default, the value is set to 1 (the velocity is not scaled). Note: This setting only applies to computed velocity values. It has no effect on velocity property values read from the Alembic asset source. |
Time Range | Select the time range that corresponds to the portion of the animation you want to be able to play back in Unity. By default, this includes the entire animation. To change the time range, either drag the handles or directly enter the start and end values in seconds. |
Scene options
Use these options to customize the scale factor, handedness, interpolation, and which components to import from the Alembic file.
Property | Description |
---|---|
Scale Factor | Set the scale factor to convert between different system units. For example, using 0.1 converts the Alembic units to 1/10 of their value in the resulting Unity GameObject. This also affects position and speed. |
Swap Handedness | Enable to invert the X axis' direction. |
Interpolate Samples | Enable to interpolate animation for Transform, Camera, and Mesh components for which the topology does not change (that is, for which the number of vertices and indices are immutable). If Interpolate Samples is enabled, or velocity data is included in the .abc file, you can pass velocity data to an Alembic shader. |
Import Visibility | Enable to import Visibility (i.e. the control of the active state of the objects). |
Import Camera | Enable to import Camera data. |
Import Meshes | Enable to import Mesh data. |
Import Points | Enable to import Point (particle cloud) data. |
Import Curves | Enable to import Curve (hair or fur) data. See Working with Curves for more details. |
Add Curve Renderers | Enable to get a basic preview of the Alembic curves in your Scene and Game views if you don't have a curve renderer. This option is only available when you select Import Curves. |
Geometry options
Use these options to customize how Meshes are imported.
Property | Description | |
---|---|---|
Normals | Define whether to use the normals from the Alembic file, or to calculate them based on vertex position. | |
Calculate If Missing | Use Alembic file normals if they exist; otherwise the Alembic Importer calculates them. This is the default. | |
Always Calculate | Calculate the normals on import. | |
Tangents | Determine whether or not tangents are computed on import or not added at all. Tangents are not stored in Alembic, so if you choose not to calculate tangents on import, there will be no tangent data. | |
None | Do not calculate or add tangents at all. Choose this option if you don't need to compute the tangents. Computing tangents is resource-intensive, so choosing this option increases the speed of playback. | |
Calculate | Calculate tangents on import. This is the default option for this property. Note: The calculation of tangents requires normals and UV data. If these are missing, the tangent cannot be computed. |
|
Flip Faces | Enable to invert the orientation of the polygons. |
Cameras options
Use these options to customize which components to import from the Alembic file.
Property | Description | |
---|---|---|
Camera Aspect Ratio | Define how to set the Unity Camera's aspect ratio. | |
Current Resolution | Determine the aspect ratio from the current resolution which is defined by the screen. | |
Default Resolution | Determine the aspect ratio from the default resolution defined in the Project Settings window for the Player (under Edit > Project Settings > Resolution and Presentation > Resolution). | |
Camera Aperture | Determine the aspect ratio from the Camera in the Alembic file. This is the default. |
Note: Since Materials are not supported in Alembic, the Alembic package does not import or export Materials.