Grass
Manual     Reference     Scripting   
Reference Manual > Terrain Engine Guide > Grass

Grass

The Paint Foliage button allows you to paint grass, rocks, or other decorations around the Terrain. To paint grass, choose Edit Details button->Add Grass Texture. You don't need to create a mesh for grass, just a texture.


The Add Grass Texture dialog

At this dialog, you can fine-tune the appearance of the grass with the following options:

Detail TextureThe texture to be used for the grass.
Min WidthMinimum width of each grass section in meters.
Max WidthMaximum width of each grass section in meters.
Min HeightMinimum height of each grass section in meters.
Max HeightMaximum height of each grass section in meters.
Noise SpreadThe size of noise-generated clusters of grass. Lower numbers mean less noise.
Healthy ColorColor of healthy grass, prominent in the center of Noise Spread clusters.
Dry ColorColor of dry grass, prominent on the outer edges of Noise Spread clusters.
Grayscale LightingIf enabled, grass textures will not be tinted by any colored light shining on the Terrain.
Lightmap FactorHow much the grass will be influenced by the Lightmap.
BillboardIf checked, this grass will always rotate to face the main Camera.

After you've clicked the Add button, you'll see the grass appear selectable in the Inspector.


The added grass appears in the Inspector

Painting Grass

Painting grass works the same as painting textures or trees. Select the grass you want to paint, and paint right onto the Terrain in the Scene View


Painting grass is easy as pie

Note:When you have a brush selected, move your mouse over the Terrain in the Scene View and press F. This will center the Scene View over the mouse pointer position and automatically zoom in to the Brush Size distance. This is the quickest & easiest way to navigate around your Terrain while creating it.

Editing Grass

To change any import parameters for a particular Grass Texture, select it choose Edit Details button->Edit. You can also double-click it. You will then see the Edit Grass dialog appear, and be able to adjust the parameters described above.

You'll find that changing a few parameters can make a world of difference. Even changing the Max/Min Width and Height parameters can vastly change the way the grass looks, even with the same number of grass objects painted on the Terrain.


Grass created with the default parameters

The same number of painted grass objects, now wider and taller

Page last updated: 2011-10-29