[osg-users] Trouble with transitioning to OSG

sam brkopac at gmail.com
Wed Jun 24 15:13:10 PDT 2015


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.

On Wed, Jun 24, 2015 at 2:47 PM, Jan Ciger <jan.ciger at gmail.com> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 24/06/15 22:50, sam wrote:
> > Hi All,
> >
> > I have a snippet of code that I am trying to reproduce using OSG,
> > it was originally written in pretty raw gl with glm. You can view
> > it here: http://pastebin.com/PYphHLYE
> >
> > I currently have the following snippet and the geometry references
> > are all over the place. If somebody could take a quick look and see
> > if I'm missing something fundamental, that would be great:
> >
> > http://pastebin.com/nhSzZGdu
>
> If nothing else, be careful that OSG uses row major matrices and
> premultiplies - if v is a vertex, then its transformation is usually
> expressed as v' = M * v but in OSG you will have it as v' = v * M (and
> the matrices are transposed).
>
> J.
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2
>
> iD8DBQFViyWFn11XseNj94gRAtTeAKCWh8pvzgVV/NKtNEBXpo0G2Ug0nwCeK2C+
> 3y37pxcENvMBY2614Z4DvSA=
> =/ff0
> -----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/bb34b8eb/attachment-0003.htm>


More information about the osg-users mailing list