Hi! I have problem with manipulating with treejs avatar object.
For example I want to that my avatar hand up his right arm.
I’m not want to make it via mediapipe or camera connection. I want make it via coordinates that i will generate (it will be ml model that generates coordinates of pose human)
Okay question is can i make it? is there any possiblities or suggetions?
Thank you for answering!
There’s no such a thing
You’d most likely need some kind of inverse kinematics to create this kind of motion on the go.
I mean loading glb object and manipulating with that
function loadAvatar() {
const gltfLoader = new THREE.GLTFLoader();
gltfLoader.load('https://models.readyplayer.me/658ba388fc8bec93d06753a7.glb', (gltf) => {
avatar = gltf.scene;
avatar.scale.set(0.5, 0.5, 0.5); // Scale the avatar to fit the scene
scene.add(avatar);
animate();
});
}