Jump to content

View more

Image of the Day

#ld38 #screenshotsaturday Mimosa Fizz action gif #2 https://t.co/TUzdppvfUL
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

post-multiply matrices?

4: Adsense

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 rikun   Members   

122
Like
0Likes
Like

Posted 24 April 2007 - 05:07 AM

In openGL, what does post-multiplying matrices mean?

#2 Brother Bob   Moderators   

10280
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 Palidine   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.