Hello,

I try to multiply a vector by a matrix. The look like the following lines:

osg::Matrix matrix = osg::Matrix(...);
osg::Vec4 vector = osg::Vec4(...);

osg::Vec4 result = matrix * vector;

Now, it doesn't work. But when I try to invert the matrix and the vector it works. Is the order transpose in terms of multiplications? For example I would calculate the projection pipeline like the following line:

result = projectionMatrix * viewMatrix * vertex

But in OSG I must write:

result = vertex * viewMatrix * projectionMatrix

But why?

Cheers,

Martin


_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to