|On this page|
This node is designed for use with the Create LOD node. That node creates variants with generated names like
LOD_2, and so on, where each variant is the result of using PolyReduce to keep a certain percentage of the original detail.
Add an Auto Select LOD, at a point after both the Create LOD and the camera exist in the network.
In the Auto Select LOD node’s parameters, set the Primitive pattern to the path of the primitive you created the LOD variants on (for example,
Set the Camera to the path of the USD render camera. The node will use the distance between this camera and the selected prim to choose the level of detail.
Set Variant set name to the Variant set name on the Create LOD node (for example,
Set the Number of LODs to the same number as the Number of LODs on the Create LOD node.
Set each Threshold distance to the inside distance for that level. The first distance should be
For example, if you set the keep percentages on Create LOD to
100, 75, 50, 25, and set the distances on this node to
0, 5, 10, 15, then you get the following behavior:
When the camera is
5units from the prim, display the first level (
LOD_0, keep 100%, the original model).
10, display the second level (
LOD_1, keep 75%).
15, display the third level (
LOD_2, keep 50%).
If the camera is
15or more units from the prim, display the fourth level (
LOD_3, keep 25%).
If you don’t set the first threshold distance to
0, then from
0to the first distance you specify, the prim will show no variant, so it will not be visible.
The distance between the camera and the prim is measured between the camera point position and the centroid of prim (not, for example, based on the distance to the actual surface). If the surface of the model is, say, an average of 2 units from its centroid, you might want to add that factor into the distance thresholds.
The primitive(s) the node should operate on. You can drag primitives from the scene graph tree pane into this textbox to add their paths, or click the Reselect button beside the text box to select the primitives in the viewer, or ⌃ Ctrl-click the Reselect button to choose prims from a pop-up tree window. You can also use primitive patterns for advanced matching, including matching all prims in a collection (using
Path to the USD render camera in the scene graph tree. The node will use the distance between this camera and the selected prim to choose the level of detail.
The name of the variant set to select a variant from.
Number of LODs
Set this to the number of LOD variants in the specified Variant set.
When the camera is this distance or farther to the target prim, select the corresponding variant. That is, the first Threshold distance in the multiparm sets the minimum distance for the first variant, the second Threshold distance sets the minimum distance for the second variant, and so on.