Jump to content
  • Advertisement
Sign in to follow this  
me_here_me

OpenGL quaternion rotation in openGL

This topic is 3788 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, Is there some built in function in openGL that returns a rotation matrix from a quaternion, or performs rotation, given a quaternion as a parameter. I know how to convert a quaternion into a rotation matrix, i am just curious if there are some functions provided by openGL? regards

Share this post


Link to post
Share on other sites
Advertisement
Quote:
Original post by me_here_me
Hi,
Is there some built in function in openGL that returns a rotation matrix from a quaternion, or performs rotation, given a quaternion as a parameter.

I know how to convert a quaternion into a rotation matrix, i am just curious if there are some functions provided by openGL?
I'm fairly certain that there is no such function (at least in the current specification).

Share this post


Link to post
Share on other sites
Quote:
Original post by me_here_me
Hi,
Is there some built in function in openGL that returns a rotation matrix from a quaternion, or performs rotation, given a quaternion as a parameter.

I know how to convert a quaternion into a rotation matrix, i am just curious if there are some functions provided by openGL?

No. OpenGL, by itself, does not understand quaternions.

Share this post


Link to post
Share on other sites
Quote:
Original post by Sneftel
Quote:
Original post by me_here_me
Hi,
Is there some built in function in openGL that returns a rotation matrix from a quaternion, or performs rotation, given a quaternion as a parameter.

I know how to convert a quaternion into a rotation matrix, i am just curious if there are some functions provided by openGL?

No. OpenGL, by itself, does not understand quaternions.


However, OpenGL does understand Axis-Angle representation (via glRotate*), and Quaternions can be converted to Axis-Angle with little effort.

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!