Sign in to follow this  
me_here_me

OpenGL quaternion rotation in openGL

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this