Three.js: FBX 2018 format animation issue

Created on 8 May 2019  Â·  5Comments  Â·  Source: mrdoob/three.js

I bought a 3D model with animation online, which is .max file format. I just got Autodesk 3DS MAX 2018, so I exported it as FBX 2018 format. Whether I baked animation or not, the model could be shown fine in the scene but the animation could not be played at all. The code that I loaded the model is shown as below, which is the same as the threejs example:

`

      var loader = new THREE.FBXLoader();
      loader.load( 'angel/angel2.FBX', function ( object ) {

          mixer = new THREE.AnimationMixer( object );

          var action = mixer.clipAction( object.animations[ 0 ] );
          action.play();

          object.traverse( function ( child ) {

            if ( child.isMesh ) {

            child.castShadow = true;
            child.receiveShadow = true;

            }

            } );
          object.position.y = 200;
          object.scale.set( 50, 50, 50 );
          scene.add( object );
    } );

`

Three.js version
  • [x] Dev
  • [ ] r104
  • [ ] ...
Browser
  • [x] All of them
  • [ ] Chrome
  • [ ] Firefox
  • [ ] Internet Explorer
OS
  • [ ] All of them
  • [ ] Windows
  • [x] macOS
  • [ ] Linux
  • [ ] Android
  • [ ] iOS

Most helpful comment

Thanks very much. I have posted the progress and closed the issue. Thanks
for sharing your loader website!

On Thu, May 9, 2019 at 2:32 AM Lewy Blue notifications@github.com wrote:

The animation plays fine on my loader
https://discoverthreejs.com/apps/loader/, using the latest version of
the FBXLoader.

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/mrdoob/three.js/issues/16406#issuecomment-490709233,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABBB35CKYPVZ4AF56TE4ANTPUN5L3ANCNFSM4HLVNUMQ
.

--
Best Wishes!


Bingwei Chen

Department of Computer Science and Technology
Tsinghua University

Department of Research and Development
National Supercomputer Center in Wuxi

Email: [email protected]
Tel: +86 13671213508

All 5 comments

The animation plays fine on my loader, using the latest version of the FBXLoader.

Thanks for your reply and sharing your website. Everything is fine in your website, but my website still didn't work even I used the latest FBXLoader. And then I used https://threejs.org/examples/webgl_loader_fbx.html to loader my model. I just downloaded it and modified the path but it still didn't work.

So, what magic do you use in your loader website to be more powerful than the example? I saw you used threejs cache, are there any other things? Since the source code is a min file I could not totally understand it in such a short time.

Although the https://threejs.org/examples/webgl_loader_fbx.html could not still load my model correctly but to my surprise my own website works well now according to modify the animate function the same as webgl_loader_fbx. So this was sure to be not a bug.

Thanks very much. I have posted the progress and closed the issue. Thanks
for sharing your loader website!

On Thu, May 9, 2019 at 2:32 AM Lewy Blue notifications@github.com wrote:

The animation plays fine on my loader
https://discoverthreejs.com/apps/loader/, using the latest version of
the FBXLoader.

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/mrdoob/three.js/issues/16406#issuecomment-490709233,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABBB35CKYPVZ4AF56TE4ANTPUN5L3ANCNFSM4HLVNUMQ
.

--
Best Wishes!


Bingwei Chen

Department of Computer Science and Technology
Tsinghua University

Department of Research and Development
National Supercomputer Center in Wuxi

Email: [email protected]
Tel: +86 13671213508

If any admin comes here, I request this issue to be deleted permanently because I realise there are some files that are not suitable to be uploaded here although I have deleted these links they might exist in the revision history.

Was this page helpful?
0 / 5 - 0 ratings