i am studying game design in holland, now i am working on a project in opengl but i am having a problem with glrotatef().
as far as i know the latest 3 value’s in glrotate is a vector.
the function will make it rotate an x amount degrees around that vector.
so the following code should rotate it around the worlds x,y,z coordinates. but it is not. the latest so z axis is rotating around the local axis and x rotation seems to be world axis and y is just weard.
can anyone help me with this isue ?
glLoadIdentity(); gluLookAt(ex,ey,ez,cx,cy,cz,ux,uy,uz); glTranslatef(c,c,c); glRotatef(xr,1.0f,0.0f,0.0f); glRotatef(yr,0.0f,1.0f,0.0f); glRotatef(zr,0.0f,0.0f,1.0f);