• Advertisement
Sign in to follow this  

Equation of rotation

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

Could anyone help me in finding the equation for rotation around ANY vector?? I need it for my camera in OGL...

Share this post


Link to post
Share on other sites
Advertisement
Try quaternions. They have a good tut over at gametutorials.com

http://www.gametutorials.com/Tutorials/opengl/OpenGL_Pg4.htm

or try ultimatgameprogramming.com

http://www.ultimategameprogramming.com/Tutorial.php?category=OpenGL&page=3

dimebag

Share this post


Link to post
Share on other sites
OK and is this possible that my view cannot rotate more than 90 deg up and down because of the "up direction"vector?? Can this be the reason??

Share this post


Link to post
Share on other sites
You should rotate your "up" vector along with the camera position.

Share this post


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

  • Advertisement