Hi
This may be a very basic question, but I do not know how to do this.
I am trying to make a fps type camera and I am using following code to move and setting orientation of the camera
glMatrixMode( GL_MODELVIEW );
glLoadIdentity();
glRotatef(rollValue, 0, 0, 1); // roll
glRotatef(yawValue, 0, 1, 0); // yaw
glRotatef(pitchValue, 1, 0, 0); // pitch
glTranslatef(x, y, .z); // to move
// then draw shapes
The problem is I can move the camera but not to the direction it points to.
Could you please tell me how to do that?