Skip to content

sunag/three.js-tba

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Three.js Binary Animation(TBA) file.

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

Open Editor

image

Example

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();

Getting Started

Install

npm i three-tba

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

Three.js Binary Animation(TBA) file. Retargeting animation with ~16% the size of a JSON file.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published