This documentation is for a prerelease version of O3DE. Click here to switch to the latest release, or select a version from the dropdown.

Version:

Simple LOD Distance Component

The Simple LOD Distance component allows you to set the distance and motion sample rate for each level of detail (LOD) of an actor. It requires an Actor component that references an actor asset with at least one LOD mesh group in addition to the base actor mesh group.

The Simple LOD Distance component automatically creates an element in the LOD distance (Max) and Anim graph sample rates lists for each LOD found in the actor asset. Up to six LODs are supported including the base mesh group. You can set a display distance in meters and a motion sample rate (per second) for each LOD mesh group.

For more information on actor LODs, refer to the topic Using Actor LODs to Optimize Performance.

Provider

EMotionFX

Dependencies

  • Actor component
  • An actor asset with a base mesh group and at least one LOD mesh group.

Simple LOD Distance properties

Add the Simple LOD Distance component to an entity to set display distances for each LOD mesh group.

PropertyDescriptionValuesDefault
LOD distance (Max)Sets the max display distance for each LOD of the actor. The distance value is in meters (world units) from the camera. Index 0 is the base mesh group for the actor.0 to InfinityDepends on the LOD index.
Enable LOD anim graph samplingEnable per LOD animation sample rates. When enabled, the Anim graph sample rate list is displayed with one element per LOD.BooleanDisabled
Anim graph sample rateSets the animation sample rate (per second) for each LOD. Index 0 is the base mesh group for the actor. Setting an LOD’s sample rate to 0 maximizes the sample rate, so that animation is sampled as many times as possible per second for the LOD. Any non-zero value specifies a maximum animation sample rate for the LOD. Lower values that are greater than 0 provide better performance. Higher values (or 0) might decrease performance but produce smoother animation.0 to InfinityDepends on the LOD index.