# LOP Create lod
- Automatically make LOD based on poly reduction and add them as variant
-1. Set up the geometry object in the USD scene tree.
For example, you could use a [SOP Import](https://www.sidefx.com/docs/houdini/nodes/lop/sopimport.html "Imports geometry from a SOP network into the USD scene graph.") to import a model from a SOP network as a USD geometry prim at `/my_model`.
2. Add a [Create LOD node](https://www.sidefx.com/docs/houdini/nodes/lop/createlod.html "Uses the PolyReduce SOP to automatically generate multiple levels of detail from a high-res model, and stores them as USD variants.").
3. In the Create LOD node’s parameters, set the **Primitive path** to the path of the prim you want to create LOD versions of (for example, `/my_model`).
4. Set the **Variant set** name to something meaningful, like `levels`.
5. Set the **Number of LODs** to the number of variants you want to create (including the original).
6. Set the first **Keep percent** value to `100` (this is to show the original model close-up). Then set each subsequent **Keep percent** value to lower percentages.
For example, if you have 4 levels, you might set the keep percentages to `100, 75, 50, 25`.
# Auto Select LOD
- Select LOD based on camera distance
1. Later in the network, you can add an [Auto Select LOD node](https://www.sidefx.com/docs/houdini/nodes/lop/autoselectlod.html "Automatically selects a level-of-detail variant based on the primitive’s distance from the camera.") to automatically select a level of detail based on distance to the camera.
2. Add an Auto Select LOD, at a point after both the Create LOD and the camera exist in the network.
3. 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, `/my_model`).
4. 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.
5. Set **Variant set** name to the **Variant set** name on the Create LOD node (for example, `levels`).
6. Set the **Number of LODs** to the same number as the **Number of LODs** on the Create LOD node.
7. Set each **Threshold distance** to the _inside distance_ for that level. The first distance should be `0`.
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 `0` to `5` units from the prim, display the first level (`LOD_0`, keep 100%, the original model).
- From `5` to `10`, display the second level (`LOD_1`, keep 75%).
- From `10` to `15`, display the third level (`LOD_2`, keep 50%).
- If the camera is `15` or more units from the prim, display the fourth level (`LOD_3`, keep 25%).