level-of-detail
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | level-of-detail [2020/04/28 18:24] (current) – created maxime | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Level Of Detail ====== | ||
+ | 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 | ||
+ | | 0 | 0 | 50 | | ||
+ | | 1 | 50 | ||
+ | | 2 | 100 | 200 | | ||
+ | | 3 | 200 | 300 | | ||
+ | | 4 | 300 | ∞ | | ||
+ | |||
+ | ===== How to ===== | ||
+ | |||
+ | To add LOD to your model, for each mesh in your model, do the following: | ||
+ | - create less detailed versions of your mesh | ||
+ | - for each level, put your meshes in child nodes named '' | ||
+ | - alternatively, | ||
+ | - if you want to hide a model at long distance (useful for small props too small to see from far away anyway), don't use levels past the max rendering distance you want: for example, if you want a small prop to not be rendered at a distance greater than 100, only create meshes '' | ||
+ | |||
+ | ==== Example ==== | ||
+ | |||
+ | Here are a few examples of model hierarchy using LOD | ||
+ | |||
+ | === Before LOD === | ||
+ | |||
+ | * '' | ||
+ | * '' | ||
+ | |||
+ | === With one mesh per level === | ||
+ | |||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | |||
+ | === With one detailed and one simplified mesh === | ||
+ | |||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | |||
+ | Here, the model is rendered with the mesh '' | ||
+ | |||
+ | === Only for close distance === | ||
+ | |||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | |||
+ | In this configuration, |
level-of-detail.txt · Last modified: 2020/04/28 18:24 by maxime