I’m trying to use the gluLookAt function to set up the correct view transformation for the camera’s position and orientation. In my program there is a sphere centered in the origin and when the arrows key are pressed the camera moves according (left, right, up and down) around the sphere.
I tried to use this transformation: gluLookAt(xc, yc, zc, 0.0, 0.0, 0.0, 0.0, 1,0, 0,0);
To verify its correctness I printed out the three axes. It doesn’t seem to properly work. When I move up and down the y axis doesn’t seem to move.
Can you help understand what is wrong with that transformation?