up!

From: [EMAIL PROTECTED]
To: osg-users@lists.openscenegraph.org
Date: Wed, 24 Sep 2008 14:51:28 +0200
Subject: [osg-users] matrix transformation order








Hi, right now i have a matrix which contains N transformations. One of these is 
a scale, and i want to modify that scale

i call the decompose method of the matrix  

matrix.decompose(traslation, rotation_quat, scale, scale_orientation);

then i modify the scale with the new value and when i try to "compose" the 
matrix back i´m not sure about the order of matrix multiplying i should use to 
get the same transformated object than before with the new scale applied

what looks ok to me is osg::Matrix(scale_orientation) * scale * 
osg::Matrix(rotation_quat) * traslation, but this is not working so if anyone 
have any idea it will be appreciated

i´ve also tried with scale * osg::Matrix(rotation_quat) * traslation

the rotation and scale should both be around the object space origin and the 
original object matrix was built using scale * rotation * translate

thanks



La cartera, las gafas. ¿te falta algo?   Ahora llévate Messenger en tu móvil

_________________________________________________________________
¿Sigue el calor? Consulta MSN El tiempo
http://eltiempo.es.msn.com/
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to