Hi JD
I hope that i can help you with gluLookAt so let me begin:
In a room you are moving only along the x and z axis (until you will also move up or down). So you have e.g. float x = 0, z = 0, and angle = 0; angle is where you are looking at.
If you would like to move UP then you can compute it like this: z -= cos(angle), x += sin(angle). If you would like to move DOWN then use z += cos(angle), x -= sin(angle). To turn LEFT use: angle += (PI / 180.0f) * 1; if (angle > (PI * 2.0f)) angle = 0.0f; Zhis will turn you one degree clockwise and to turn RIGHT use: angle -= (PI / 180.0f) * 1; if (angle < 0.0f) angle = (PI * 2.0f); The only thing left is calling gluLookAt. This will lokk like this: gluLookAt(x, 0, z, x + sin(angle), 0, z - cos(angle), 0, 1, 0);
Try it...
VirtualNext