Hi,
 
I'm in the progress of developing some scene manipulation widgets. When implementing a scale manipulator I found out that the decomposition behaves not as I expected.
If I try to decompose 2 Matrices which are nearly the same I get a result scale vector that has switch axis. Here's an example:
 
Matrix 1:
   1.040   -1.040    0.000    0.000
   0.707    0.707    0.000    0.000
   0.000    0.000    1.000    0.000
   0.000    0.000    0.000    1.000
 
Result 1:
  Rotation 0, 0, 45
  Scale 1.47031, 1, 1
  Scale Orientation 0, 0, -0.382683, 0.92388
 
 
Matrix 2:
   1.046   -1.046    0.000    0.000
   0.707    0.707    0.000    0.000
   0.000    0.000    1.000    0.000
   0.000    0.000    0.000    1.000
 
Result 2:
  Rotation: 0, 0, 45
  Scale: 1, 1.47986, 1
  Scale Orientation: 0, 0, 0.382683, 0.92388
 
Has someone an explanation for this?
 
Thanks,
Michael
 
------------------------------------------------------------------------------
_______________________________________________
Opensg-users mailing list
Opensg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to