|
vtlib library
|

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.
1.7.4