quaternion rotation in openGL
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
Quote:Original post by me_here_meI'm fairly certain that there is no such function (at least in the current specification).
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?
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.
Quote:Original post by SneftelQuote: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.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement