rotation, modelview and quaternion

hi,

In my code all objects have a modelview matrix, then after I render it I load the matrix with glLoadMatrix();
it works fine for scaling and translate, but I don’t know how to rotate, using quaternions. I search a bit and I found only tutorials that say what are quaternions and quaternion operations, but I dont find anything about how to build the modelview matrix to represent a rotation using quaternions.
I know some operations like axis to quaternion, matrix to quaternion, but how use it?

anyone know where I can find some info/tutorial about how to build the modelview to rotate an object?

thanks in advance.

why don’t you take a look at the source code of some open source engine? :slight_smile:

I implemented an Arcball class which uses Quaternions to represent orientations and rotations, visit my web and download the demo.
http://www.cos.ufrj.br/~yalmar/