Three.js: ColladaLoader not importing animations

Created on 30 Nov 2019  路  6Comments  路  Source: mrdoob/three.js

Description of the problem

riven.zip
The mesh loads and everything, and the animation's tracks doesn't and its duration is 0, this happens on some models

Three.js version
  • [ ] Dev
  • [x] r111
  • [ ] ...
Browser
  • [x] All of them
  • [ ] Chrome
  • [ ] Firefox
  • [ ] Internet Explorer
OS
  • [x] All of them
  • [ ] Windows
  • [ ] macOS
  • [ ] Linux
  • [ ] Android
  • [ ] iOS
Duplicate

Most helpful comment

The loader can't handle the file because it is unable to parse nested animations: #13981

Besides, the loader only supports the matrix transform type. Your file however does use different types like scale.

I think it's unlikely that the loader will support these features in the next time so it's probably better to convert your asset to glTF instead.

https://github.com/KhronosGroup/COLLADA2GLTF

Or, if possible, export to glTF in the first place.

All 6 comments

Um, I'm not able to unzip your file on my iMac. Can you also share the file via e.g. Google Drive?

The loader can't handle the file because it is unable to parse nested animations: #13981

Besides, the loader only supports the matrix transform type. Your file however does use different types like scale.

I think it's unlikely that the loader will support these features in the next time so it's probably better to convert your asset to glTF instead.

https://github.com/KhronosGroup/COLLADA2GLTF

Or, if possible, export to glTF in the first place.

Yep, i did convert it, but the model gets mutated / ruined ?

Um, probably because of the special transform types. I've once tried to convert the old pump Collada model which was used in our keyframe animation example. We had to completely replace it because I've found no tool that could convert the model to glTF.

Unfortunately, this part of the Collada spec is very complex and hard to map on three.js's animation system. Hence, I doubt ColladaLoader will ever be able to handle such files.

Closing. I'll mark this issue as a duplicate of #13981. Implementing nested animations is the first step that needs to solved.

Was this page helpful?
0 / 5 - 0 ratings