[osg-users] Trouble with transitioning to OSG
sam
brkopac at gmail.com
Wed Jun 24 15:29:50 PDT 2015
I thought that would be taken care of when I do:
auto pos = osg::Vec3(relPos[0], relPos[2], relPos[1]);
That should swap the Z accordingly? Or am I missing the boat on this one.
On Wed, Jun 24, 2015 at 3:25 PM, Jan Ciger <jan.ciger at gmail.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 25/06/15 00:13, sam wrote:
> > Ah, I see. Throwing the parent matrix at the end of the
> > multiplication puts the debug data in the correct place! Thanks,
> > Jan. Only other issue is the model is coming in on its side
> > compared to the basic viewer camera.
> >
>
> OSG uses z-up convention, likely your model is exported y-up. You may
> want to rotate it by 90 degrees around the x axis.
>
> Regards,
>
> J.
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2
>
> iD8DBQFViy5nn11XseNj94gRApweAKDIAGNUw4sUIb/OxJg5yB9fK3GB3gCfeUxN
> B75nRtPoU+Eibxo0W+tvnwY=
> =HlPi
> -----END PGP SIGNATURE-----
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20150624/41c11750/attachment-0003.htm>
More information about the osg-users
mailing list