S2ENGINE HD  1.4.6
Official manual about S2Engine HD editor and programming
TerrainMesh

Base Class: StaticGeom

TerrainMesh.jpg

Overview

TerrainMesh is one of static objects used to populate terrain.
TerrainMesh is composed by many simple meshes that adapt their height to the terrain, you can think to it as the 3d version of grass object. To create the meshes TerrainMesh load the model specified into Mesh param and recognizes the meshes of the objects that compose the model. The model must be an .SH2 model (see Assets Importing), i.e. must be composed by a hierarchy of node objects, each containing a mesh. The hierarchy must be composed by a root node object and a set of child node objects. Childs must contain the meshes to extract, as showed in the following figure:

Terrainmesh2.jpg

In the figure model Sphere objects are the object containing the stones, the root object is Box02. For more info about importing models and model tool see Editor and Assets.

Parameters
Mesh(model filename) filename of the model used as mesh.
autolod(bool) if true the number of elements of the terrain mesh to display is computed basing on maxDistance parameter, distance from camera and camera FOV.

Receiving Messages

none

Sending Messages

none

See also
Messages