I am currently working with three.js in a mobile application that is built using JavaScript. I am trying to incorporate a 3D model using an .fbx file, but I am facing issues with the binary format not being supported by FBXLoader. As someone who doesn't have much knowledge about 3D models and formats, any guidance or assistance on this matter would be greatly appreciated.
Error message in console: "FBXLoader: !!! FBX Binary format not supported !!!"
Below is the code snippet where I attempt to load the .fbx file:
var loader = new THREE.FBXLoader( manager );
// alert(loader);
loader.load( 'img/watcher.FBX', function( object ) {
alert(object);
object.traverse( function( child ) {
if ( child instanceof THREE.Mesh ) {
// pass
}
if ( child instanceof THREE.SkinnedMesh ) {
if ( child.geometry.animations !== undefined || child.geometry.morphAnimations !== undefined ) {
child.mixer = new THREE.AnimationMixer( child );
mixers.push( child.mixer );
var action = child.mixer.clipAction( child.geometry.animations[0] );
action.play();
}
}
} );
scene.add( object );
}, onProgress, onError );