PDA

View Full Version : Quaternions in OpenGL



Maku
08-07-2001, 04:44 AM
Hi.
Do you know any good Quaternion in OpenGL tutorials ?
Or could you post some code here ?
I found some on gamedev.net but I'm interested to in SLERP and other stuff.

Gavin
08-08-2001, 05:20 AM
I have done some quats in c on the mac for opengl.
What do you want the tutorial for? Understanding quaternians or applying them?

gav

Maku
08-08-2001, 08:00 AM
Whele ,I found a great article at gamasutra with soirce code.
So rather understanding them.

Gavin
08-08-2001, 09:26 AM
How good is your vector math, i.e. normals, planes etc? The concept of a quaternian is pretty simple, possibly simpler than matrix rotation. And the whole point is that they are quicker as to apply a rotation using a quaternian takes less operations than using a mtrix, in some apps this is very important as there are many rotation calculations

gav