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.

On Monday, May 11, 2020 at 6:16:02 PM UTC+2, Wouter Roos wrote:
>
> 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
>

-- 
You received this message because you are subscribed to the Google Groups 
"OpenSceneGraph Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to osg-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/osg-users/daf5b5dd-7617-445a-8274-853edc8a9e56%40googlegroups.com.
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to