I'm loading several STL files (one by one) into the same scene. Those files are different LODs of the same model (from low-poly to high-poly). I'd like to simulate a continuous model update from low to high resolution.
I tried to create a separate mesh for each LOD and add it to the scene when removing the previous one. Unfortunately, as the LODs get bigger, there is a significant delay in rendering.
My questions:
- would it help if I just replace the geometry in the same mesh without recreating the mesh? If so, how to force rendering update? I tried to use mesh.setGeometry
, but it doesn't seems to work for STL geometry - the new geometry is shown (perfectly works for Cube, for some reason).
- is it possible to speed up the update somehow by any sort of pre-calculations or caching?
Thanks a lot in advance for any hints. Simon