#Delay while cloning
14 messages · Page 1 of 1 (latest)
How big is your original model?
its not a very big one , its around 50 kb each , i ll have around 10 models , need to create 10 copies of each model
how big is the delay ?
do it before starting the animate loop so user will never notice ?
You may want to look into instancing
Using this I was able to make a instance 10k copies of my model with 0 delay
It doesn’t work with skinned meshes unfortunately
I may be super wrong with that, but three uses textures for skeleton transformations. So every time you clone, you create and upload new texture to the GPU (hence the delay)
Correct for skinned mesh, I converted the model to geometry and applied it's original texture. Here's 100k.
I haven't gotten this far yet but I'm sure you can extract the weights and bones of the original and utilize it as a reference for each geometry in order to animate.
i think i remember now that @azure grotto has created something that enables this
Here's an instanced skinned mesh in #threejs from an answer I shared in the @pmndrs Discord.
120
I'd also see https://github.com/sketchpunklabs/ossos.