rangers99
07-12-2002, 07:34 PM
Hi
I am wanting to navigate a 3D scene using the keyboard.
I use the arrow keys to translate and another couple of keys for rotation on the y-axis.
Before I draw the scene I do the following translations:
glRotatef(rotY, 0, 1.0f, 0);
glTranslatef(posX, posY, posZ);
Is this the correct order for the translations ie. rotaiton, then translation? It doesn't look right somehow.
I am wanting to navigate a 3D scene using the keyboard.
I use the arrow keys to translate and another couple of keys for rotation on the y-axis.
Before I draw the scene I do the following translations:
glRotatef(rotY, 0, 1.0f, 0);
glTranslatef(posX, posY, posZ);
Is this the correct order for the translations ie. rotaiton, then translation? It doesn't look right somehow.