• Advertisement
Sign in to follow this  

Differences in forms of transformations.

This topic is 2029 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

1) Vector * Transformation => 2nd Vector
2) Transformation * Transformation => 2nd Transformation
3) Transformation + Transformation => 2nd Transformation
4) Vector * (Transformation * Transformation) => 2nd Vector
5) Vector * (Transformation + Transformation) => 2nd Vector

a) What is the difference between 2) + 3)?
b) What is the difference between 4) + 5)?

Share this post


Link to post
Share on other sites
Advertisement

a) What is the difference between 2) + 3)?
b) What is the difference between 4) + 5)?

blink.png Well, one is an addition, the other a multiplication. In 3d math multiplications of transformations are more common, because when you have a homogeneous matrix (most likely your transformation), then the multiplication is like executing the transformation in a sequence.

Extended example:
Take the coffee cup in front of you, you are the center. Now move it away from you (first: translation), then rotate it around youself (second: rotation), and eventually move it closer to yourself (third: translation). This can be described as three transformation matrices:
translation_1
rotation
translation_2

The final trnasformation is
final_transformation = translation_2 * rotation * translation_1

That is the final position and orientation of your coffee cup wink.png Edited by Ashaman73

Share this post


Link to post
Share on other sites
To concatenate (append together) transforms, you multiply the matrices together.

Adding two transformation matrices together has no meaning -- the results aren't useful. So, I've never seen (3) and (5) used in a game. Edited by Hodgman

Share this post


Link to post
Share on other sites
As far as I know, a rotation matrix consists of different components sin(theta) cos(theta) at different positions affecting different things.
So I also think addition is superflourous.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement