asny/three-d

InstancedMesh Individual Animations

thatcomputerguy0101 opened this issue · 2 comments

I'm interested in having many copies of the same mesh, but with individual transformation animations applied to each one. Is this possible with the current implementation of InstancedMesh without taking a big performance hit (e.g. by reassigning the instance transformations each loop), or would it be better to just copy the mesh and animate each individual model independently?

Apparently my geometry is complex enough that the performance using duplicated regular Meshes was poor even without animations, so I'm moving forward using InstancedMesh and figuring out what I'm doing for animations later.

asny commented

I think using an InstancedMesh and updating the transformation for each instance each frame should perform well. Unless you have a crazy amount of instances of course.