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.

see example , full code

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

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -