The goal of this module is to allow you to animate a large number of 3D models and control the animation.
npm install instanced-animationBy extending Three.js InstancedMesh to automatically generate textures that hold morph information, animations can be performed within the Shader.
https://github.com/hamaike-biz/skinning2morph
yarn add instanced-animation
`Usage
`javascript
import InstancedAnimation from 'instanced-animation';// create instance
const instancedAnimation = new InstancedAnimation(gltf, INSTANCE_COUNT);
scene.add(instancedAnimation.instancedMesh)
// play Animation
instancedAnimation.playAnimation(targetIndex, animName);
// "animName" can be set by using the Blender Addon
`The following InstancedMesh features are still available.
`javascript
object3D.updateMatrix();
instancedMesh.setMatrixAt(instanceIndex, baseObject3D.matrix);
instancedMesh.instanceMatrix.needsUpdate = true;
``targetIndex: Index of the instance for which you want to play the animation.
animationName: Animation name set by Blender.