I know it's an old post, but I also had the same problem when trying to load .dae
file using ColladaLoader
, so posting the comment in case someone is banging their head with the same problem.
You can probably load the animation if you have more than 30 bones.
If you look at the ColladaLoader.js
, there is a line:
if(sortedbones.length < maxbones)
and maxbones is set to 30. So, if there aren't more than 30 bones, geometry.morphTargets
is left undefined.
If you don't want to have so many bones, you can hack the ColladaLoader
file and set maxbones to 1.
Adding to my comment.
I figure, newer version of the ColladaLoader don't have this problem. I'm not sure where I got the old files from...
You can get the newest files from GitHub. https://github.com/mrdoob/three.js