cant think of what is wrong
I am still having a little trouble with rotations.
Here is some psuedocode, and the results of what is happening when i implement that version of the code.
Version 1:
glPushMatrix();
translate to the pivot point
rotate
glPopMatrix();
result: works as if glPushMatrix() and glPopMatrix never even occurred. it translates based off its world coordinate and rotates based off of its world coordinate.
Version 2:
glPushMatrix();
glLoadIdentity();
translate
rotate
glPopMatrix();
result: rotates around "me" (being the viewer, or person walking around the world, as in a first person shooter).
Version 3:
glPushMatrix();
load the mesh's matrix
translate
rotate
glPopMatrix();
result: the same as version 2
i just cant figure out what is wrong...anybody have an idea?