Quaternion problems

BlitzMax Forums/OpenGL Module/Quaternion problems

KronosUK(Posted 2010) [#1]
I'm trying to implement quaternions into an opengl project but I am having some problems.

I am using Wavey's quaternion code taken from the archives as a basis. The object should be rotating around its respective axes however it doesn't.

Waveys demo works fine (in blitz3d) so I don't think its a problem with his quaternion code.




slenkar(Posted 2010) [#2]
are you sure you know what you are doing with pushmatrix and popmatrix?

you have to use loadmatrix with an array to get your matrix into opengl, then draw the model's triangles.
If you want a camera you get a matrix for the cameras rotation and load its reverse matrix