in raw openGL, when you rotate something, there's a matrix multiplication going on. if you rotate twice, the results can be different, because the multiplication isn't commutative, means A*B is NOT equal to B*A. it looks like, the rotation axes have been rotated as well with the first rotation (or second one, dunno
![Confused :?](./images/smilies/icon_confused.gif)
Code: Select all
GLfloat M[16];
switch (key)
{
case GLUT_KEY_LEFT:
glGetFloatv(GL_MODELVIEW_MATRIX , M );
glLoadIdentity();
glRotatef(angle,0,0,1);
glMultMatrixf(M);
break;
...
![Rolling Eyes :roll:](./images/smilies/icon_rolleyes.gif)
but if you're looking onto an area from above, you might wanna remove the matrix storage in the left/right directions, that might look more natural.