To reduce the rendering performance impact of models with high triangle counts or models with a lot of instances, Hurricane supports levels of detail (LOD). This allows models to be rendered with a different mesh at different distances to the camera.
Hurricane supports 5 different levels of detail:
Level ID | Min distance | Max distance |
---|---|---|
0 | 0 | 50 |
1 | 50 | 100 |
2 | 100 | 200 |
3 | 200 | 300 |
4 | 300 | ∞ |
To add LOD to your model, for each mesh in your model, do the following:
LOD_X
with X
being the selected levelLOD_23
, this mesh will be used for rendering at levels 2 and 3LOD_0
and LOD_1
Here are a few examples of model hierarchy using LOD
RootNode
BuildingMesh
← high detailed meshRootNode
BuildingMesh
LOD_0
LOD_1
LOD_2
LOD_3
LOD_4
RootNode
BuildingMesh
LOD_012
LOD_34
Here, the model is rendered with the mesh LOD_012
for a distance inferior to 200, and with the mesh LOD_34
for a distance greater than 200.
RootNode
SmallPropMesh
LOD_01
In this configuration, the mesh LOD_01
is used to render the model to a distance up to 100, and then the model is hidden.