Archived

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

TonyZahn

Arbitrary Matrix rotations

Recommended Posts

TonyZahn    122
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
grhodes_at_work    1385
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