Grass brush template configuration

The grass.set file, located in the scene\set\ directory, defines patterns used by the Grass brush in the Landscape Editor to generate vegetation.

Each grass pattern specifies a list of entity models and the density parameters for their placement on the ground surface. All models must be prepared in advance and placed in the scene\entity folder.

Syntax

{"pattern_name"
    {models
        {"entity_name" "texmod_name"}
        {...}
    }
    {dencity N}
}
Parameter
Description

pattern_name

A unique identifier for the template (template name), enclosed in double quotes. The list of template names appears in the Patterns window under the Grass tab of the Landscape Editor.

models

A block containing a list of models that will be randomly spawned on the ground surface when painting with the selected brush template. For each model, specify its name in the game resources and, optionally, a texture modifier name (the texture modifier can be omitted if the model has only one texture variant).

dencity

A numeric parameter that determines the object spawn density per square meter. The higher the number, the denser the vegetation. Recommended values: 0.5 — sparse grass 1.0 — medium density 2.0+ — densely overgrown terrain

Example: sunflower template

{"sunflower"
    {models
        {"sunflower_01" "green"}
        {"sunflower_02" "green"}
        {"sunflower_03" "green2"}
    }
    {dencity 1}
}

Wind behavior settings for grass models

Last updated