Mixamo animations in three.js
Merge your character and its animation FBXs into one GLB, then play each named clip withAnimationMixerin three.js. Try the working example or start with your own files.
Run the animated GLB example
Orbit is an original sample robot. The GLB on this page is the converter’s output from a skinned character FBX and separate Idle and Wave animation FBXs.
Orbit · Idle and Wave
Download GLBLoad it in your scene
With three installed, put orbit.glb at /models/orbit.glb on your server. Use this in a scene with a camera and renderer. If you have a render loop, add mixer.update(delta) there.
import { AnimationMixer } from 'three';
import { GLTFLoader } from 'three/addons/loaders/GLTFLoader.js';
const gltf = await new GLTFLoader().loadAsync('/models/orbit.glb');
scene.add(gltf.scene);
const mixer = new AnimationMixer(gltf.scene);
console.log(gltf.animations.map(clip => clip.name));
const wave = gltf.animations.find(clip => clip.name === 'Wave');
if (wave) mixer.clipAction(wave).play();
let previous;
renderer.setAnimationLoop(now => {
const delta = previous === undefined ? 0 : (now - previous) / 1000;
previous = now;
mixer.update(Math.min(delta, 0.1));
renderer.render(scene, camera);
});Convert your own Mixamo character
- Download the character from Mixamo as FBX Binary, With Skin. A T-pose works.
- Download each animation for the same character as FBX Binary, Without Skin. Rename the files to the clip names you want, for example
Running.fbx. - Select the character and all its animations together in the Mixamo to GLB converter. Check the clips in the preview, click Convert to GLB, then Download GLB. Your files stay in your browser.
- Use your GLB path and clip name in the example. For a single animated FBX, use the FBX to GLB converter.
If the character drifts, choose In Place in Mixamo when the animation supports it, or move the character in game code. The converter keeps the source’s root motion.