LOD Setup
To ensure proper performance, set up LOD (Level of detail) of your truck. The parameters are available in Template Settings > LODs settings:
- Hide Distance — the maximum distance (in meters) at which the model is rendered. For example, when set to 200, all objects of the asset are hidden at distances of 200 meters or more. It is recommended to to exceed the value of 800 meters.
- LODs Max Distance — the LOD switching distances. Each index [N] defines the distance at which the model switches from the highest-polygon LOD [0] to a lower-resolution LOD. Set distances for each LOD level of the model: for example, 5 LODs require 5 switching distances. See the recommended distances below.
- Enable LWI LOD Transition — smooth transitions between LODs. Do not use this option for truck mods.
- LOD Transition Speed (0–255) — the speed of transitions between LODs. Values range from 0 to 255, where 0 is the slowest speed and 255 is the fastest. The default value is 8.
- Disable Shadowmap Shadows — disables shadow rendering. This is used for objects that are rendered frequently. For example, when placing GPU grass in a scene, rendering shadows for each individual blade of grass would negatively impact the performance.
The maximum number of LODs is 7. However, 4-5 LODs are usually sufficient for a truck.
Recommended LOD distances for our sample tuz_119lynx_mod.tpl.asset model:
| LOD | Distance |
|---|---|
| LOD0 | 0-10 meters |
| LOD1 | 10-20 meters |
| LOD2 | 20-30 meters |
| LOD3 | More than 30 meters |
Note that these distances depend on the size of the particular truck. Bigger vehicles might need different LOD distances.