[osg-users] Loading Z-up FBX models

OpenSceneGraph Users osg-users at lists.openscenegraph.org
Fri Jul 31 02:46:20 PDT 2020


Hi,

you can use pseudo loader to rotate the model.
osgviewer myfile.fbx.(90,0,0).rot

On Thu, Jul 30, 2020 at 9:53 PM Ellery Chan <ellery.chan at gmail.com> wrote:

> 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
> <https://groups.google.com/d/msgid/osg-users/6f42aab9-77ce-4163-8316-f08a92b89595o%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
trajce nikolov nick

-- 
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/CAO-%2Bzi%3DJBAG3WAEqr%2Bjg%2BWMw2%2Bqga3BGCb-LUaOYQHpfWm7r8g%40mail.gmail.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20200731/2fb3e2fa/attachment.html>


More information about the osg-users mailing list