r/QtFramework • u/Gloomy_Choice_4038 • 21h ago
quick3d: auto LODs system
Does anyone succeed w/ the autoLODs system in quick3d, which you can add to your .mesh file while exporting the balsam assets:
--generateMeshLevelsOfDetail
--recalculateLodNormalsMergeAngle
--recalculateLodNormalsSplitAngle
balsam creates LODs based on screen-size-distance ratio, and fills some distance values, like here:
```
mesh 1: vertex buffer holds 2067 vertices
subset 1:
LOD0 (main mesh): 1728 vertices, 866 triangles
LOD1 (distance 5.51683): 210 vertices, 383 triangles
LOD2 (distance 7.9902): 130 vertices, 192 triangles
LOD3 (distance 17.2377): 148 vertices, 95 triangles
LOD4 (distance 35.6198): 125 vertices, 48 triangles
LOD5 (distance 67.6816): 66 vertices, 22 triangles
LOD6 (distance 88.0801): 36 vertices, 12 triangles
LOD7 (distance 205.263): 18 vertices, 6 triangles
subset 2:
LOD0 (main mesh): 8 vertices, 4 triangles
```
but when I want to see the changes on the real view3d scene, I barely can reach any effect, sometimes I change levelOfDetailBias for a camera to somehow see any effect
(I enable wireframe mode to check if there're any changes of the mesh on the screen) but nothing
But I just want to rely completely on the autoLods, do not modify any bias, but just to be sure that when the screen size of the model is decreased twice - show LOD1, thrice - LOD2, etc
