Jump to content

  • Log In with Google      Sign In   
  • Create Account

Interested in a FREE copy of HTML5 game maker Construct 2?

We'll be giving away three Personal Edition licences in next Tuesday's GDNet Direct email newsletter!

Sign up from the right-hand sidebar on our homepage and read Tuesday's newsletter for details!


We're also offering banner ads on our site from just $5! 1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


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 rikun   Members   -  Reputation: 122

Like
0Likes
Like

Posted 24 April 2007 - 05:07 AM

In openGL, what does post-multiplying matrices mean?

Sponsor:

#2 Brother Bob   Moderators   -  Reputation: 8428

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   -  Reputation: 1279

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.



PARTNERS