Jump to content

  • Log In with Google      Sign In   
  • Create Account

post-multiply matrices?


Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
2 replies to this topic

#1   Members   

122
Like
0Likes
Like

Posted 24 April 2007 - 05:07 AM

In openGL, what does post-multiplying matrices mean?

#2   Moderators   

10106
Like
0Likes
Like

Posted 24 April 2007 - 07:04 AM

It means the matrix created by the command called is multiplied with the current matrix from the right. If M is the current matrix and you call, say, glRotate (which creates the matrix R), the new matrix is M*R.

#3   Members   

1315
Like
0Likes
Like

Posted 24 April 2007 - 07:19 AM

you distinguish between pre-multiply and post-multiply because matrix multiplication is not commutative (i.e. A*B != B*A).

Explained practically: if you rotate around the global X then the global Y then the global Z you'll get a totally different resultant orientation than if you go Z -> Y -> X.

http://en.wikipedia.org/wiki/Matrix_(mathematics)#Matrix_multiplication

-me




Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.