Retargeting animation with ~16% the size of a JSON file.

import { GLTFLoader } from 'three/addons/loaders/GLTFLoader.js';
import { TBALoader } from 'three-tba';
const glb = await new GLTFLoader().loadAsync( './jean.glb' );
const tba = await new TBALoader().loadAsync( './dance.tba' );
const clip = tba.clip;
const readyPlayerTarget = glb.scene.children[ 0 ].children[ 1 ];
const mixer = new THREE.AnimationMixer( readyPlayerTarget );
mixer.clipAction( clip ).play();
Install
npm i three-tba
This project is licensed under the MIT License. See the LICENSE
file for details.