How to batch skinned mesh?

I wanna render same models with skinned meshes multiple time. and usually to optimize same mesh we can use instanced mesh but since it is skinned mesh with animation how can batch these model in single draw call? I did not see any solution for such case. Does anyone have a example demonstrating it? Please guide me since I am using skinned mesh model for first time
Also if you have resoures for understanding skinned meshes, please share. I have no idea how it wiorks or how there are different that simple meshes and why its so hard to batch them together. Id like to know

Thanks

[three.js docs]

SkeletonUtils.clone(model)

you can try this method.

it will not reduce the draw calls, will it??

  • I do not believe that SkeletonUtils.clone(model) does anything to the draw calls. I use SkeletonUtils.clone(model) to clone skinned meshes, but it does not have anything to do with taking the skinned meshes that do exist and instancing them to only use one draw call.

  • I am looking for solutions for instancing skinned meshes as well, and I am going to try to get the InstancedBufferGeometry or Instanced Mesh to work with animations on my own if my idea even works.

Will not reduce the draw calls. three.js examples

Something like this? three.js examples

1 Like