Hi
what am i doing wrong? I get effects like earth rotating around the sun etc. But of course the terrain should rotate around me.
Many thanks
Michael
glMatrixMode(GL_MODELVIEW);
glPushMatrix();
glLoadIdentity();
glTranslatef(0, -30, -64);//??
glRotatef(GetDataf(phi), 0, 0, 1);
glRotatef(GetDataf(theta), -1, 0, 0);
glRotatef(GetDataf(psi), 0, 1, 0);
glTranslatef(0, 30, 64);//???
glScalef( 1, -0.5, 1 );//flip terrain
drawTerrain();