[osg-users] Matrix multiplication order

Florian GOLESTIN florian.golestin at gmail.com
Thu Mar 22 02:53:13 PDT 2018

Hi everyone !

I don't get why in GLSL you transform a vertex like this:

vec4 result = matrix * vertex;

While in OSG I have to do it in the reverse order :

osg::Vec4 result = vertex * matrix;

Is it due to the Matrices major mode that are different from OpenGL and OpenSceneGraph ?

Thanks for demystifying me!

Read this topic online here:

More information about the osg-users mailing list