Hi, I am making a interactive semaphore viewer. For this, I want to have different poses for the model. Does three.js already has a way to create different poses and then interpolate between them? Interpolating here means going from one pose to another. Doing it like this doesn’t look that good. I can make a hash map that stores rotations for different joints but it will again be messy in my opinion. Does threejs already has anything to tackle something like this?
var leftArm = model.getObjectByName( 'mixamorigLeftArm' ); var leftForeArm = model.getObjectByName( 'mixamorigLeftForeArm' ); var leftHand = model.getObjectByName( 'mixamorigLeftHand' ); var rightArm = model.getObjectByName( 'mixamorigRightArm' ); var rightForeArm = model.getObjectByName( 'mixamorigRightForeArm' ); var rightHand = model.getObjectByName( 'mixamorigRightHand' ); var degToRadian = Math.PI / 180; leftArm.rotation.z = 80 * degToRadian; leftArm.rotation.y = - 30 * degToRadian; leftForeArm.rotation.z = 30 * degToRadian; leftHand.rotation.y = 45 * degToRadian; rightArm.rotation.z = 80 * degToRadian; rightArm.rotation.y = 30 * degToRadian; rightForeArm.rotation.z = 30 * degToRadian; rightHand.rotation.y = - 45 * degToRadian;
Here are the poses I need to add: https://as1.ftcdn.net/jpg/00/86/68/48/1000_F_86684826_7o9n4OOWl6KwnFZglcIsfSB2DFgz6FL3.jpg