FBX Animation issue

(*** This section is for bug reports and feature requests only. This is NOT a help site. Do not ask help questions here. If you need help, please use stackoverflow. ***)

Description of the problem

I have edited the scene of the FBX loader to try to load model and animatuion from different FBX files. The same works in Unity and PlayCanvas, ie all animations are their own file, and can apply to several Models which are modelled the same.

Any when I play the animation the skinning is all wrong. As you can see here.

https://dl.dropboxusercontent.com/u/1722/three.js/examples/webgl_loader_fbx.html

This is the code I’m using to load the model, and the animation and then apply them to each other once both are loaded.
toon.zip

`

var loader = new THREE.FBXLoader( manager );
loader.load( 'models/fbx/toon.fbx', function( object ) {

	model = object;
	object.mixer = new THREE.AnimationMixer( object );
	mixers.push( object.mixer );

	if (animation !== undefined)
	{
		var action = model.mixer.clipAction( animation.animations[ 0 ] );
		action.play();
	}

	model.scale.x = 0.1;
	model.scale.y = 0.1;
	model.scale.z = 0.1;
	model.rotateX(-Math.PI / 2);

	scene.add( object );
}, onProgress, onError );

loader.load( 'models/fbx/idle.fbx', function( object ) {

	animation = object;

	if (model !== undefined)
	{
		var action = model.mixer.clipAction( animation.animations[ 0 ] );
		action.play();
	}
}, onProgress, onError );

`

Three.js version
  • [ x] Dev
  • r82
Browser
  • All of them
  • Chrome
  • Firefox
  • Internet Explorer
OS
  • All of them
  • Windows
  • Linux
  • Android
  • IOS
Hardware Requirements (graphics card, VR Device, …)

Author: Fantashit

1 thought on “FBX Animation issue

Comments are closed.