I have a problem with the decompose method of osg::Matrix in combination with 
non-uniform scaling.  I create a matrix with osg::matrix::scale(100, 100, 1) 
and even though the matrix seems correct (100, 0, 0, 0, 0, 100, 0, 0, 0, 0, 1, 
0, 0, 0, 0, 1)  the decompose method returns a scale = (100, 1, 100) and a 
scale orientation of (0.707, 0, 0, 0.707). I have tried to apply the scale 
orientation transform to the scale but there is no way i can get it back to 
(100, 100, 1). 

Also if one component of the scale is negative decompose will return negative 
values for all components.

How is this supposed to work? Is it a bug or am I making some incorrect 
assumtions here?

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

Reply via email to