Blender > fbx imported in threejs - error

Hi,
I have a problem with the FBX importer. When I load an exported, animated model from Blender, the model is not displayed and this message appears:

three.module.js:42485 Uncaught (in promise) Error: THREE.KeyframeTrack: no keyframes in track named Cube.quaternion
    at new KeyframeTrack (three.module.js:42485:58)
    at new QuaternionKeyframeTrack (three.module.js:42993:1)
    at AnimationParser.generateRotationTrack (FBXLoader.js:2848:37)
    at AnimationParser.generateTracks (FBXLoader.js:2777:31)
    at FBXLoader.js:2748:34
    at Array.forEach (<anonymous>)
    at AnimationParser.addClip (FBXLoader.js:2746:17)
    at AnimationParser.parse (FBXLoader.js:2456:23)
    at FBXTreeParser.parseScene (FBXLoader.js:926:44)
    at FBXTreeParser.parse (FBXLoader.js:171:8)

See the attached fbx testfile:
BlenderTest.fbx (18.8 KB)

You can simple import it in the threejs editor and it will show the error.

Is there any solution for this? We stumbled across this problem when we upgraded an existing application to the latest threejs version, from v136 to v160. In the old version we were able to load the models without errors. As we have a large database of animated models in fbx format already in the system we are looking for a solution.

Thank you very much for your help
Mario

hm looks like it’s a blender problem? an animated model from 3ds Max is loaded without error.
Unfortunately we have many models exported from blender in a database. Is it possible to customize the fbx loader so that it can still load the blender models?

I’ve investigated your issue and it seems this is a regression in FBXLoader which was introduced in r159 by this PR:

Do you mind filing an issue at GitHub?

hi Mugen, thx for your help! Sure, i opened a new issue on GitHub here:

I hope its ok like that, it was my first issue I opend on GitHub :wink:

1 Like