PDA

View Full Version : Quats and Shaders



ffelagund
05-17-2005, 10:12 PM
Hello,
I think that the first thing that must come with OpenGL ES 2.0 are shaders. I assume that this will be, so I'm move to the next topic. OpenGL really needs quaternion support. I'm not talking about a library to manage quats, but functions like glRotate that accepts quats. Transformation matrices are useful, but almost all middle-large applications, needs quats (this is applicable to OpenGL 2.1 too...) so, why not include quaternion support? they are equal or more useful than the standar rotation matrices for simple applications, but very powerfull for more complex ones.

[ May 18, 2005: Message edited by: Jacobo Rodriguez ]

gautam
05-19-2005, 02:02 AM
No, opengl is a graphics lib, not a maths lib so quats won't come in. But its not difficult to write a quat lib now is there.

ffelagund
05-19-2005, 05:47 AM
I know that OpenGL is a graphics lib and not a maths lib, but OpenGL comes with some linear algebra operations, and all OpenGL is based on 4x4 transformation matrices. I'm not saying that OpenGL should has a complete quats library but some gl functions that accepts natively quaternions, think in a glRotate version for quaterions, and maybe a mechanish to transform vertices using quaternions instead of the classical matrices.