[osg-users] getting translate rotate scale right.

2009-01-15 Thread Dorosky, Christopher G
I thought I understood this just fine, but I apparently don't. I have a model that is half the size it needs to be. So, I need to scale it by 2.0 in all directions. It is also in the wrong position, so I need to translate it out to (1000, 2000, 3000); Once it is translated, I need to rotate

Re: [osg-users] getting translate rotate scale right.

2009-01-15 Thread Dorosky, Christopher G
Subject: [osg-users] getting translate rotate scale right. I thought I understood this just fine, but I apparently don't. I have a model that is half the size it needs to be. So, I need to scale it by 2.0 in all directions. It is also in the wrong position, so I need to translate it out to (1000, 2000

Re: [osg-users] getting translate rotate scale right.

2009-01-15 Thread Gazi Alankus
I can't tell you the right answer, but maybe this might help a little bit. [rant] OSG matrices are not correct homogeneous transformation matrices. They are transposed. When you come up with a solution that involves multiplication of transformation matrices on paper, you have to reverse the order

Re: [osg-users] getting translate rotate scale right.

2009-01-15 Thread Paul Fotheringham
--- On Thu, 15/1/09, Gazi Alankus ala...@gmail.com wrote: From: Gazi Alankus ala...@gmail.com Subject: Re: [osg-users] getting translate rotate scale right. To: OpenSceneGraph Users osg-users@lists.openscenegraph.org Date: Thursday, 15 January, 2009, 6:25 PM I can't tell you the right answer

Re: [osg-users] getting translate rotate scale right.

2009-01-15 Thread Gazi Alankus
A correct transformation matrix (which is a 2D entity) according to math literature: R11 R12 R13 Tx R21 R22 R23 Ty R31 R32 R33 Tz 0 0 0 1 That matrix stored in column-major order in 1D memory: R11 R21 R31 0 R12 R22 R32 0 R13 R23 R33 0 Tx Ty Tz 1 That matrix stored in row-major order in 1D

Re: [osg-users] getting translate rotate scale right.

2009-01-15 Thread Mark Sciabica
Hi Gazi, It is true that OSG differs from your literature. That does not make OSG incorrect. In fact, the literature wasn't always dominated by the format you're promoting. This link http://steve.hollasch.net/cgindex/math/matrix/column-vec.html provides some history on the matter. One

Re: [osg-users] getting translate rotate scale right.

2009-01-15 Thread Gazi Alankus
2009/1/15 Mark Sciabica msciab...@itracs.com Hi Gazi, It is true that OSG differs from your literature. That does not make OSG incorrect. In fact, the literature wasn't always dominated by the format you're promoting. Hi Mark, It's not just my literature, it's the dominant one that