Babylon.js: Animations are not exported by GLTF2Export

Created on 26 Jul 2019  路  7Comments  路  Source: BabylonJS/Babylon.js

Feature request

  • Link to forum discussion about the feature:
    https://forum.babylonjs.com/t/animations-lost-when-exported-with-gltf2export-glbasync/4460
  • Feature description:
  • I get models from BJS github, or oher model archive
  • then import into this PG and exported it with the code. (Then put it into a public github repository to import below again)
  • Then imported to another PG, or an app with BJS scene which is on my _localhost_, but animations are gone, no _Animation Groups_ section in _Scene Explorer_ or visible animation.
    Also when I download and import the original github models to my BSJ scene they also work.
    Something happens when I run export methods.

Acording to recent conversation in _forum_ in above link exporting skins is not implemented yet.

  • Additional links that could help implementing the feature:
duplicate enhancement exporters glTF

Most helpful comment

I started by creating this test harness so I can quickly evaluate glTF sample models:
https://playground.babylonjs.com/#T087A8#6

Testing this asset import->export->import round trip with AnimatedCube, I can see that our node animation export works fine. That's somewhat of a relief, as I'm not too worried about glTF animation accessor and samplers being properly setup.

Looking back at the forum post, I can see that we're testing against alien from our meshes library, which also includes Morph target and skeletal animation. I'll update my PG to use this asset instead, as its pretty comprehensive as far as export capabilities go.

All 7 comments

thanks a lot for this request. @Drigax will look at it (but not now as he already has a lot to deal with exporters :))

Feel free to help if you want

thanks. I would love to. What kind of task is at hand? Can I getr some leads while I go into codebase to look around?
I think serializers/ and serializers/glTF is a good place to start with.

This is the right place

any news?

Unfortunately not any so far. Only if I had the time these recently. :|

I started by creating this test harness so I can quickly evaluate glTF sample models:
https://playground.babylonjs.com/#T087A8#6

Testing this asset import->export->import round trip with AnimatedCube, I can see that our node animation export works fine. That's somewhat of a relief, as I'm not too worried about glTF animation accessor and samplers being properly setup.

Looking back at the forum post, I can see that we're testing against alien from our meshes library, which also includes Morph target and skeletal animation. I'll update my PG to use this asset instead, as its pretty comprehensive as far as export capabilities go.

Alien test bench has been completed. Going to close this issue to roll into #5100

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sebavan picture sebavan  路  4Comments

CadsoftBrianW picture CadsoftBrianW  路  3Comments

Bloadrick picture Bloadrick  路  5Comments

phuein picture phuein  路  3Comments

emackey picture emackey  路  5Comments