[osg-users] Loading Z-up FBX models

OpenSceneGraph Users osg-users at lists.openscenegraph.org
Thu Jul 30 09:30:26 PDT 2020


I am having difficulty loading Z-up FBX models into *osgviewer*.  They get 
re-oriented to Y-up.  While examining the code I discovered there is even a 
*ZUp* option that the FBX importer recognizes, though it is not advertised 
in the interface.  However, *ZUp* causes my Z-up models to display Z-down.

It looks like there was a little discussion about this problem back in 
2009-2010:

https://groups.google.com/d/msg/osg-users/NsXWvx0z7pI/ACrv21RDNdsJ

https://groups.google.com/d/msg/osg-users/VEBQhl65OsI/z3rqyC34imsJ

https://groups.google.com/d/msg/osg-users/7C2XFmHLOEQ/GgvYHTGqMEQJ

but as far as I can tell, nothing has been done.  I'm surprised there 
hasn't been more discussion about this.  Do other people not have problems 
with this?  Do they have Y-up models?  Do they add a rotation after the 
models are loaded?  

I ended up adding a *noRotation* flag to the FBX importer.  The OBJ 
importer also has a *noRotation* flag (apparently it assumes the incoming 
model is Y-up and rotates it to Z-up?), so it seemed consistent to do the 
same for FBX.

-ellery-

-- 
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+unsubscribe at googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/osg-users/6f42aab9-77ce-4163-8316-f08a92b89595o%40googlegroups.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20200730/f8dca01f/attachment.html>


More information about the osg-users mailing list