Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

TonyZahn

Arbitrary Matrix rotations

This topic is 6153 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, I''ve been working on introducing myself to OpenGL programming and have realized that I''m a little lacking in the math department. I''m trying to work on a base class for objects on 3d space. This class would store the location and orientation of a specific object. My algebra is too rusty to hand;e quaternions just yet, so I''m using matrices. My question is this: what''s the equation for rotating a matrix around an arbitrary vector? Basically I need an explination of how glRotate works. Thanks in advance.

Share this post


Link to post
Share on other sites
Advertisement
The OpenGL red book (official Programming Guide has an appendix answering this exact question. It is appendix F (in the third edition).

Graham Rhodes
Senior Scientist
Applied Research Associates, Inc.

Share this post


Link to post
Share on other sites

  • 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!