Broken blender export with animation (demos and blends are provided)

Description of the problem

PR #8412 updated blender export and now there are no way to export mesh with skinned animation.
I have tested with women model and with monster model, which is imported from collada examples/models/collada/monster/monster.dae. I have build demos with the same main.js but with different json files.

Demos

Settings for mesh export (Scene is unchecked, using THREE.JSONLoader):

Image of settings

Only mesh with new export – women (4MB)

Image of Women Mesh New

Only mesh with old export – women (4MB)

Image of Women Mesh Old

Only mesh with new export – monster (242KB)

Image of Monster Mesh New

There is another option and another problem: export with checked “Scene” and using THREE.ObjectLoader:
Image of settings
But with this option animation does not work correctly in both versions:

Scene with new export – monster (285KB)
Scene with old export – monster (284KB)
Image of Monster Scene

I have worked with old exporter and noticed that vertices values in json are bigger with Scene checked then with unchecked version. I have tried to replace this array in json file and animation becomes work properly. I can not figure out what is the problem with exporter with checked Scene.

Files

Exports have been done with reset transforms of bones before each export.

Three.js version
  • Dev
  • r75
Browser
  • Chrome
  • Firefox

Author: Fantashit

1 thought on “Broken blender export with animation (demos and blends are provided)

  1. FYI I’ve tested both of the OP models (monster.blend and women.blend) with the glTF Blender exporter and the results work in THREE.GLTFLoader correctly. Might need some tweaks on your materials to match the PBR workflow glTF uses, but the animation looks right.

    001a1cdf-9a58-4844-a1af-0f5761897d39-92650-0000f3cdeeca3115

Comments are closed.