webgl - three.js - how to replace a mesh geometry w/o recreating the mesh -
i'm loading several stl files (one one) same scene. files different lods of same model (from low-poly high-poly). i'd simulate continuous model update low high resolution.
i tried create separate mesh each lod , add scene when removing previous one. unfortunately, lods bigger, there significant delay in rendering.
my questions: - if replace geometry in same mesh without recreating mesh? if so, how force rendering update? tried use mesh.setgeometry
, doesn't seems work stl geometry - new geometry shown (perfectly works cube, reason). - possible speed update somehow sort of pre-calculations or caching?
thanks lot in advance hints. simon
Comments
Post a Comment