Drawscene()
{
glTranslatef(-1myposx,-1myposy,-1*mypoz);
glPushMatrix();
glRotatef(theta,0,1,0);
drawWorld(); //draws the world
glPopMatrix();
}
should that appear as if I I was standing at myposx, myposy, myposz looking in the theta direction… but that doesn’t happen, instead of that… the whole world moves around the original origin (before glTranslate) instead of after the translate… I can work around this problem with gluLookAt, but it’s not ALWAYS the best solution, I don’t want to neglect glRotatef and glTranslate… could anyone tell me what I am doing wrong?