1 | Terrain Renderer in VRML is a good example of use of LOD Node |
2 | This group node is used to allow applications to switch between various representations of objects automatically. |
3 | The children of this node typically represent the same object or objects at varying levels of detail, from highest detail to lowest. |
4 | The specified center point of the LOD is transformed by the current transformation into world space, and the distance from the transformed center to the world-space eye point is calculated. |
5 | If the distance is less than the first value in the ranges array, then the first child of the LOD group is drawn. |
6 | If between the first and second values in the ranges array, the second child is drawn, etc. |