LOD
LOD (Level Of Detail) uses camera-to-object distance to switch among contained child levels. (Contained nodes are now called 'children' rather than 'level', for consistent naming among all GroupingNodeType nodes.) LOD range values go from near to far (as child geometry gets simpler for better performance). For n range values, you must have n+1 children levels! Only currently selected children level is rendered, but all levels continue to send/receive events. Hint: can add less then;WorldInfo info='null node'/greater then; as nonrendering final child. Hint: insert a Shape node before adding geometry or Appearance.
Inheritance
Code
XML encoding
<LOD center='0 0 0' range='' whichLevel='-1' forceTransitions='FALSE' render='TRUE' showBBox='FALSE' bboxSize='-1 -1 -1' bboxCenter='0 0 0' logFeature='' />
Classic encoding
LOD {
center 0 0 0
range []
whichLevel -1
forceTransitions FALSE
render TRUE
showBBox FALSE
bboxSize -1 -1 -1
bboxCenter 0 0 0
logFeature [""]
}
Interface
Filter: X3D only | Avalon only | All
| id | Name | DataType | PartType | Default | ValueType | Description |
|---|---|---|---|---|---|---|
| center | SFVec3f | initializeOnly | 0 0 0 | Position offset from origin of local coordinate system. | ||
| range | MFFloat | initializeOnly | [0,infinity] Camera-to-object distance transitions for each child level, where range values go from near to far. For n range values, you must have n+1 child levels! Hint: can add less then;WorldInfo info='null node'/greater then; as nonrendering final child. | |||
| whichLevel | SFInt32 | initializeOnly | -1 | allows the select and fix a specific level | ||
| forceTransitions | SFBool | initializeOnly | FALSE | The forceTransitions field specifies whether browsers are allowed to disregard level distances in order to provide better performance | ||
| level_changed | SFInt32 | outputOnly | -1 | Identifies which level was activated for display. | ||
| render | SFBool | inputOutput | TRUE | Flag to control the visibility of the node or subtree | ||
| showBBox | SFBool | inputOutput | FALSE | Show Bounding Box of Subtree. | ||
| bboxSize | SFVec3f | initializeOnly | -1 -1 -1 | Bounding box size: automatically calculated, can be specified as an optimization or constraint. | ||
| bboxCenter | SFVec3f | initializeOnly | 0 0 0 | Bounding box center: position offset from origin of local coordinate system. | ||
| logFeature | MFString | inputOutput | state, child, parent, route, eventIn, eventOut | controls the logging of changes, state: log state changes (e.g. live), child: log child add/remove, parent: log parent add/remove, route: log route add/remove; eventIn: log receiving of events, eventOut: log sending of events: guiView, runtime system should create node-view, guiEdit: runtime system should create node-editeverything: log everything | ||
| removeChildren | MFNode | inputOnly | The removeChildren event removes nodes from the children fieldof the grouping node . Any nodes in the removeChildren event that are not in the children list of the grouping node are ignored | |||
| metadata | SFNode | initializeOnly | MetadataObject | container for payload metadata inside MetadataSet element | ||
| addChildren | MFNode | inputOnly | The addChildren event appends nodes to the children field of a grouping node. Any nodes passed to the addChildren inputOnly field that are already in the children list of the grouping node are ignored | |||
| children | MFNode | inputOutput | Node | field that contains a list of children nodes |
