I need to use simplify to improve performance when rendering a large scene that uses many GLB models. I make heavy use of instances, so I need Auto-LOD to work with instances. Everything seems to work correctly, the simplification is successful and the simplified models are created (we can find them using mesh.getLODLevelAtDistance(d: number)
).
However, when the scene is rendered, the instances always use the complete mesh, at any distance.
I tried using a simple sphere instead (created using MeshBuilder.CreateSphere
) and both the original and the instances correctly swap between the complete and decimated meshes.
Here is a playground with a reproduction: https://playground.babylonjs.com/#WGZLGJ#9671