Jump to content
  • Advertisement
Sign in to follow this  
pressgreen

row major vs column major and multiply direction

This topic is 1862 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

When I am using matrices in my opengl program I have been doing multiples left to right.

 

so say M is my original matrix. if i want to apply a rotation to M i would multiple the rotation matrix R to M in this fation

 

 Mrotated =M*R

 

does it mater whether I am using a row major system vs column major system when it come to the direction of my multiply? meaning

 

this, applying a rotation to M:      M*R

 

versus

 

this, applying a rotation to M:      R*M

 

 

or are these two separate issues?

Share this post


Link to post
Share on other sites
Advertisement

It does matter. If you transpose row major matrix you get column major matrix and multiplication order becomes reversed.

Share this post


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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!