Jump to content
  • Advertisement
Sign in to follow this  
Butabah

OpenGL Which is the proper OpenGL matrix?

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

Hi there, I'm working on some rotations and translations, and would like to know, is the OpenGL matrix structure

m[0] m[1]
m[2] m[3]

or

m[0] m[2]
m[1] m[3]

Share this post


Link to post
Share on other sites
Advertisement
The standard in old OpenGL are are column major, so it's your second option.

But the more general, and actually correct answer is; it depends on what convention you use. When you use shaders and your own matrix computations, you decide the order or everything.

Share this post


Link to post
Share on other sites

The standard in old OpenGL are are column major, so it's your second option.

But the more general, and actually correct answer is; it depends on what convention you use. When you use shaders and your own matrix computations, you decide the order or everything.


Okay cool, thank you very much!

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!