Go to: Attributes.

This lodThresholds node can be used to detect when an object is a certain distance from a bounding box.

For example, when the distance between the bounding box and a camera point is less than the first threshold (threshold[0]), then only the first output attribute (output[0]) is true. When the distance is between threshold[0] and threshold[1], then the only the 2nd output attribute (output[1]) is true.

Historic note: This was originally developed for the "Level of Detail" feature but was eventually replaced by the LodGroup node. Hence the confusing names.

Node nameParentsClassificationMFn typeCompatible function sets
lodThresholdsnodeauxiliary/camerakLodThresholdskBase
kNamedObject
kDependencyNode
kLodThresholds

Attributes (16)

activeLevel, camera, cameraX, cameraY, cameraZ, distance, inBoxMax, inBoxMaxX, inBoxMaxY, inBoxMaxZ, inBoxMin, inBoxMinX, inBoxMinY, inBoxMinZ, outLevel, threshold

Long name (short name)TypeDefaultFlags
inBoxMin (bmn) double3outputinputconnectablestorable
3D point that is the minimum point of a bounding box
inBoxMinX (bmix) distance (double)0.0cmoutputinputconnectablestorable
Minimum point of a bounding box in X
inBoxMinY (bmiy) distance (double)0.0cmoutputinputconnectablestorable
Minimum point of a bounding box in Y
inBoxMinZ (bmiz) distance (double)0.0cmoutputinputconnectablestorable
Minimum point of a bounding box in Z
inBoxMax (bmx) double3outputinputconnectablestorable
3D point that is the maximum point of a bounding box
inBoxMaxX (bmax) distance (double)0.0cmoutputinputconnectablestorable
Maxmimum point of a bounding box in X
inBoxMaxY (bmay) distance (double)0.0cmoutputinputconnectablestorable
Maxmimum point of a bounding box in Y
inBoxMaxZ (bmaz) distance (double)0.0cmoutputinputconnectablestorable
Maxmimum point of a bounding box in Z
camera (cam) double3outputinputconnectablestorable
Camera position. This does not need to be a camera; it just needs to be a 3D point.
cameraX (cax) distance (double)0.0cmoutputinputconnectablestorable
Camera position in X. This does not need to be a camera;
cameraY (cay) distance (double)0.0cmoutputinputconnectablestorable
Camera position in Y. This does not need to be a camera;
cameraZ (caz) distance (double)0.0cmoutputinputconnectablestorable
Camera position in Z. This does not need to be a camera;
threshold (th) distance (double)0.0cmarrayoutputinputconnectablestorablekeyable
List of values that indicate ranges. Ranges are defined by: range[0]: 0 to outLevel[0] range[1]: outLevel[0] to outLevel[1] etc.
distance (d) distance (double)0.0cmoutputinputconnectable
Distance calculated between the bounding box and the camera point
activeLevel (al) integer0outputinputconnectable
The currently active level If the distance between the camera point and the bounding box is less than the first threshold, then the active level is 0.
outLevel (ol) boolfalsearrayoutputconnectable
Multi attribute indicating which level is the active level. For example, if the active level is 0, then the first output attribute, output[0] is true.