2009-09-11 20:11:58 UTC
Hi all,
I'm having a small problem integrating the Arcball class into a project of mine. Specifically, when I try to apply the inertia, I get a strange wobble.
I don't think this would be a hard problem to solve for someone very experienced with matrix math.
Also, I'm a bit confused by the quat class. For some reason, this works:
mat4 tmprot = arcball->qnow.tomat4();
glMultMatrixf( (float*) &tmprot[0][0] );
...but this doesn't:
glRotatef(qnow.getangle(), qnow.getaxis()[0], qnow.getaxis()[1], qnow.getaxis()[2]);
I would think these two snippets should yield exactly the same result, but they do not. Does anyone know why?
Thank you very much for reading, and if you think you can help, please do contact me.
Kind regards,
-joshua