Package Vrml2Sourcebook.Chapter25LevelOfDetail
Level of detail (LOD) allows an overall world become very large by letting an author provide high-fidelity models when a viewer is nearby, and simpler geometry when the viewer is far away.
The further the viewer can see, the more there is to draw. Note that if a shape is distant, the shape is smaller and the viewer can't see as much detail. So... draw it with less detail. Varying detail with distance reduces initial download time and increases drawing speed.
Increase performance by making multiple levels of shapes: high detail for close up viewing, progressively lower detail for more distant viewing. Group the levels in an LOD node, ordered from high detail to low detail, and using an array of range values to select switching distances .
These X3D scenes are adapted directly from the original VRML 2.0 Sourcebook chapter examples. Also available: VRML 2.0 Sourcebook course notes.
This X3D VRML2 Sourcebook Chapter 25 Level Of Detail examples archive is online.
The X3D Java Scene Access Interface (x3djsail) package provides concrete classes for each X3D node and statement.
Online: X3D Java Scene Access Interface Library (X3DJSAIL) and X3DJSAIL Javadoc
- See Also:
-
ClassDescriptionA high-detail torch.A medium-detail torch.A low-detail torch.The three torches side by side.Three torches within an LOD node.A dungeon-room floor.A dungeon-room wall.A dungeon room.Two dungeon rooms controlled by LOD nodes, move forward to see second room.A dungeon wall with a doorway, created using Coordinate and TextureCoordinate.A dungeon door.Two dungeon rooms controlled by LOD nodes and separated by a wall and a pair of sliding doors.