Ogre_glTF
Ogre_glTF copied to clipboard
Failing to load skeleton
Hello, lovely plugin here. I'm just struggling to load a particular mesh:
Walking2.glb.zip (However, CesiumMan works fine)
Basically, I am receiving the following assertion from Ogre:
(!pos.isNaN() && "Invalid vector supplied as parameter"), function setPosition, file .../OgreMain/src/OgreOldNode.cpp, line 391.
https://github.com/Ybalrid/Ogre_glTF/blob/6a59adf2f04253a3afb9459549803ab297932e8d/src/Ogre_glTF_skeletonImporter.cpp#L40
It looks like convertWorldToLocalPosition
is returning NaN values because the scale
of the parent bone is +inf.
If I comment out the following line, the mesh loads fine - however, playing an animation makes everything look awful. I may be mistaken but I believe the scale becomes so small until it reaches a point where _getDerivedScale
starts returning +inf.
https://github.com/Ybalrid/Ogre_glTF/blob/6a59adf2f04253a3afb9459549803ab297932e8d/src/Ogre_glTF_skeletonImporter.cpp#L42
I'm kinda running out of ideas and would appreciate it if I could be pointed in the right direction
Thanks!