User Tools

Site Tools

Grass System

Our example grass population is based on random generation along with image-based density maps. Look at CMyApplication::StreamGrassPopulation() and CMyPopulate::GenerateRandomGrassInstances() for our example implementation.

The CMyTerrainData utility class, housed in the reference application and not formally a part of the SDK, is also used to help place grass. Namely, it makes sure the grass is placed at the right height and adjusted for the slope if necessary.