David Goering wrote:
Hello,
Sorry for this dumb question, but somehow I cant find the answer in the 
archives or I am just searching for the wrong thing.

Anyway, I want to transform my coordinates with a Matrix.
I have a matrixTransform (lets call it T) and I need to multiply that with a 
MatrixTransform (lets call it M) that rotates by lets say 45° around the X-Axis 
and then scales the X,Y and Z values. But lets just concentrate on the rotation 
for now.

How about this?

T->setMatrix(M->getMatrix() * T->getMatrix());


In general, the Matrix class will tend to be much more flexible than the MatrixTransform class. All the MatrixTransform class was designed to do was to place a transformation matrix in the scene.


--"J"

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

Reply via email to