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

## 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 on other sites
Quote:
 Original post by me_here_meHi, 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 on other sites
Quote:
 Original post by me_here_meHi, 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 on other sites
Quote:
Original post by Sneftel
Quote:
 Original post by me_here_meHi, 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.

best wishes

1. 1
Rutin
19
2. 2
3. 3
JoeJ
15
4. 4
5. 5

• 18
• 19
• 10
• 13
• 17
• ### Forum Statistics

• Total Topics
631694
• Total Posts
3001751
×