Animated FBX models not showing

20 views
Skip to first unread message

Wouter Roos

unread,
May 11, 2020, 12:16:02 PM5/11/20
to OpenSceneGraph Users
Hi,
I'm struggling with loading animated FBX that I export from Blender. Nothing is visible, but it seems like something is loaded as I do see the correct number of vertices in the stats overlay. Exporting the model without animations works fine, and the fbx file looks fine in the FBX viewer.

I'm getting "An update callback has no name, it means it could link only with "" named Target, often an error, discard" logs, but I'm not sure why some of the boneAnimations are without a name. I have tried with this (https://sketchfab.com/3d-models/animated-cartoon-skeleton-9550b93d28354568adceb360981caa1b) free model from SketchFab, and same result, an empty viewport (in osgViewer and in osgAnimationViewer) 
After some digging I think the problem is that the bounds of the object are not calculated correctly, and that's why I don't see anything, but I might be wrong. Has anyone experienced the same problem before, or is there something wrong with the models?

OSG Version: 3.6.4 (tried 3.4.0 as well)
FBX SDK 2020.0.1

Wouter Roos

unread,
May 12, 2020, 4:32:45 AM5/12/20
to OpenSceneGraph Users
I've done some more digging, and the problem seems to be with the scaling of the animation. The solution for me is to export the fbx in blender with Apply Scalings set to "FBX All", this fixes the problem with the incorrect bound.
I'm not sure why it doesn't seem to be a problem in the Autodesk fbx viewer, it could be that they don't use the bound of the object to calculate the camera, or there might be something wrong with the osg FBX plugin, but I don't think that is the case, the scaling code does look fine.
Reply all
Reply to author
Forward
0 new messages