vtlib library
List of all members
vtLodGrid Class Referenceabstract
Inheritance diagram for vtLodGrid:
Inheritance graph

Additional Inherited Members

- Public Member Functions inherited from NodeExtension
void SetEnabled (bool bOn)
bool GetEnabled () const
void SetCastShadow (bool b)
 Set this node to cast a shadow, if it is under a vtShadow node. Default is false.
bool GetCastShadow ()
 Get whether this node casts a shadow.
void GetBoundSphere (FSphere &sphere, bool bGlobal=false)
 Get the Bounding Sphere of the node.

Detailed Description

An LOD Grid is a useful way of grouping objects in your scene graph.

It implements a sparse 2D array of LOD nodes, which divide an area into a set of Cells. When objects (geometry, or other node types) are added to the LOD Grid, they are placed in the appropriate Cell. Each Cell has a distance at which the objects in that Cell are not drawn. This allows you to have a large number of objects in your scene, yet efficiently cull faraway objects. The distance can be accessed with SetDistance()/GetDistance().

The LOD Grid is particularly designed for terrain, since the Cell division is based on the horizontal (XZ) plane.

Since the LOD Grid is a specialized kind of vtGroup, you should call Release() on it rather than delete.