I’m importing an FBX model with an animated camera. All animations work, but the camera looks in the wrong direction. When I play it using Autodesk FBX viewer it works well.
var loader = new THREE.FBXLoader();
loader.load( 'models/Web page design.fbx', function ( object ) {
mixer = new THREE.AnimationMixer( object );
object.traverse(function(child) {
if (child instanceof THREE.PerspectiveCamera) {
camera = child;
camera.far = 2000;
camera.fov = 70;
camera.updateProjectionMatrix();
}
});
var action = mixer.clipAction( object.animations[ 0 ] );
action.play();
scene.add( object );
} );