Go to: Related nodes. Attributes.
For example, under a LOD group node, there are three children: ship_detailed, ship_medium, and ship_rough. There are two threshold values: 5, and 10. When the camera is within 5 units of the group bounding box, only ship_detailed is visible. When the view is zoomed out and the camera is 9 units away from the group, only ship_medium is visible. When the view is zoomed out to 11 units away, only ship_rough is visible.
As an example of using screen height percentage, under a LOD group node, there are three children: cone_detailed, cone_medium, and cone_rough. There are two percentageThreshold values: 50, and 10. The group bounding box is projected into screen space, and its height is compared to that of the screen. If the value is more than 50 percent, then only cone_detailed is visible. When the view is zoomed out, and the projected screen height of the bounding box is between 50 and 10 percent, only cone_medium is visible. Finally, when the camera is zoomed out such that the projected screen height is less than 10 percent, only cone_rough is visible.
See also documentation on the "Level Of Detail" feature.
Node name | Parents | Classification | MFn type | Compatible function sets |
---|---|---|---|---|
lodGroup | transform | auxiliary/camera:drawdb/geometry/transform | kLodGroup | kBase kNamedObject kDependencyNode kDagNode kTransform kLodGroup |
groupParts, groupId, makeGroup, baseGeometryVarGroup, meshVarGroup, geometryVarGroup, curveVarGroup, surfaceVarGroup, tweak
activeLevel, cameraMatrix, displayLevel, distance, focalLength, maxDistance, minDistance, minMaxDistance, output, percentageThreshold, screenHeightPercentage, threshold, useScreenHeightPercentage, worldSpace
Long name (short name) | Type | Default | Flags | ||
---|---|---|---|---|---|
activeLevel
(al )
| integer | 0 | ![]() ![]() ![]() | ||
cameraMatrix
(cm )
| matrix | identity | ![]() ![]() ![]() ![]() | ||
displayLevel
(dl )
| enum | 0 | ![]() ![]() ![]() ![]() ![]() ![]() | ||
distance
(d )
| distance (double) | 0.0cm | ![]() ![]() ![]() | ||
focalLength
(fl )
| double | 0.0 | ![]() ![]() ![]() | ||
maxDistance
(mxd )
| double | 100.0 | ![]() ![]() ![]() ![]() ![]() | ||
minDistance
(mid )
| double | -100.0 | ![]() ![]() ![]() ![]() ![]() | ||
minMaxDistance
(mmd )
| bool | 0 | ![]() ![]() ![]() ![]() ![]() | ||
output
(o )
| bool | false | ![]() ![]() ![]() | ||
percentageThreshold
(pth )
| double | 0.0 | ![]() ![]() ![]() ![]() ![]() ![]() | ||
screenHeightPercentage
(shp )
| double | 0.0 | ![]() ![]() ![]() | ||
threshold
(th )
| distance (double) | 0.0cm | ![]() ![]() ![]() ![]() ![]() ![]() | ||
useScreenHeightPercentage
(ush )
| bool | 0 | ![]() ![]() ![]() ![]() | ||
worldSpace
(ws )
| bool | 1 | ![]() ![]() ![]() ![]() | ||