Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Three.js Error: no keyframes in track named [objectname].position #11427

Closed
4 of 13 tasks
xbeat opened this issue May 31, 2017 · 5 comments
Closed
4 of 13 tasks

Three.js Error: no keyframes in track named [objectname].position #11427

xbeat opened this issue May 31, 2017 · 5 comments

Comments

@xbeat
Copy link

xbeat commented May 31, 2017

Description of the problem

Exporting from Blender this animation in three.js format i get this error: "Error: no keyframes in track named Mesh.position". The Blender file have all the orphan data purged. I noticed that at bottom of exported json file there's a section with a empty animations:

"animations":[{
    "tracks":[{
        "type":"vector3",
        "name":"Mesh.position",
        "keys":[]
    },{
        "type":"vector3",
        "name":"Mesh.scale",
        "keys":[]
    },{
        "type":"quaternion",
        "name":"Mesh.quaternion",
        "keys":[]
    }],
    "name":"default",
    "fps":30
}]

If removed all worked correctly: it's a bug in the exporter or some parameters that i missing in the Blender file?

Parameters used for exportation:

exportparams

Three.js version
  • Dev
  • r85
  • ...
Browser
  • All of them
  • Safari
  • Chrome
  • Firefox
  • Internet Explorer
OS
  • [] All of them
  • Windows
  • macOS
  • Linux
  • Android
  • iOS
Hardware Requirements (graphics card, VR Device, ...)
@Awea
Copy link

Awea commented Nov 22, 2017

@xbeat I got the same problem when trying to export a model with an armature animation children of the mesh:

step1

To fix this you can remove the animation from your mesh by selecting the mesh in Object Mode and click the X in the Action Editor while in Animation Layout:

step2

@mrdoob
Copy link
Owner

mrdoob commented Nov 24, 2017

Have you guys tried exporting to gltf instead?

@enjinstudios
Copy link

Any solutions to this? The keys in the tracks always shows up empty.

"animations":[{ "name":"default", "tracks":[{ "type":"vector3", "name":"Gunnar.position", "keys":[] },{ "type":"vector3", "name":"Gunnar.scale", "keys":[] },{ "type":"quaternion", "name":"Gunnar.quaternion", "keys":[] }], "fps":24 }]

@donmccurdy
Copy link
Collaborator

Have you guys tried exporting to gltf instead?

Tested this model in two Blender glTF exporters, with THREE.GLTFLoader:

https://github.com/KhronosGroup/glTF-Blender-Exporter/ — only the active animation exports, as multiple actions are not yet supported. But otherwise everything looks right.

https://github.com/Kupoman/blendergltf — all animations export correctly, if you select "all available" in the export settings. Unfortunately materials do not export correctly, I had to delete them to get the model to render. The author has been very responsive to issues, so if you file an issue you may get some help with that.

Once you have a model you can test the animations easily with https://gltf-viewer.donmccurdy.com/.

@Mugen87
Copy link
Collaborator

Mugen87 commented May 31, 2018

The JSON Blender exporter has been removed with R93 (#14117).

Also see: https://threejs.org/docs/#manual/introduction/Loading-3D-models

@Mugen87 Mugen87 closed this as completed May 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants