-----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 [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

