Lumberyard
User Guide (Version 1.21)

Random Placement Using the Vegetation Distribution Filter

The Vegetation Distribution Filter component creates the look of random placement by limiting the amount of vegetation that the Vegetation Layer Spawner component produces.

Before completing the following procedure, you must have the following:

  • At least one asset defined in your vegetation layer.

  • An entity that contains a gradient component. For instructions, see Creating a Gradient Entity.

To create random distribution

  1. In the Entity Outliner, select the entity that contains the Vegetation Layer Spawner component.

  2. In the Entity Inspector, click Add Component and select Vegetation Distribution Filter.

  3. In the Vegetation Distribution Filter component's properties, next to Gradient Entity Id, click the target button.

  4. In the Entity Outliner, select the Gradient entity.

  5. (Optional) Adjust the values for Threshold Min and Threshold Max to specify how much of the gradient can appear in the vegetation.