question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Animations do not export well if the mesh and armature have different origins

See original GitHub issue

A Blender project where I imported an OBJ+MTL file, rigged the model, and animated it, fails to texture when loaded in three.js. Additionally the animation has vertex errors when played. When exported using the Khronos exporter, the model textures, and the animation has no noticeable errors.

The raw blender project is located here https://github.com/sctincman/gameoff2017/blob/master/src/blender/fox.blend, the original OBJ mesh used was taken from here, and imported into blender.

A modified three.js example is attached (exported model expected at “models/gltf/fox/” relative to html file.

demo.zip

Additionally, the GLTF export appears to have extra nodes. There are 3 copies of the Fox node “Fox, Fox.001, Fox.002”, and the top-level scene contains an extra “Root” scene node below it.

+ Scene
|-- + Scene_Root
    | -- Fox
    | -- Camera
    | -- Sun

fox.gltf.zip

Kupoman exported screenshot from 2017-11-21 20-21-59

Khronos exported screenshot from 2017-11-21 20-19-02

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:18 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
Kupomancommented, Feb 2, 2018

@tkazik The errors were unrelated to this bug, but they should be fixed now.

0reactions
Kupomancommented, Jan 31, 2018

@tkazik Thanks for testing it. I’ll take a look at it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bone Constraints and Drivers not exporting correctly on FBX
I'm currently trying to export my armature + mesh to Unity, however, the animations did not seem to export correctly (FBX). The armature's...
Read more >
No luck importing animations separately from mesh
So the problem is definitely that one has an "Armature" bone that's the root of the other bones. The animation on "anims" targets...
Read more >
Export Armature and Animations Only - Exclude Mesh #822
I select armature ONLY to export but the exporter only saves bone nodes and animations but excludes skin which ties the other two...
Read more >
Animations distorted when exported :: Blender Source Tools
I don't think you can. Just make sure that you don't have multiple copies of the same armature from different sources. If you...
Read more >
Blender export with atmature / animation - Babylon.js Forum
Is it possible from that GLTF file ? I believe that it will help to make armature as a child of mesh (see...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found