I need help creating a first person camera control which can pan 360 degrees. Y is taking as the up direction. If it was birds eye view it would be an easy case of xcosa and ysina. I am using glutPassiveMouseFunc to return the mouse co-ordinates of the screen and calibrated it to take the centre point of the screen as (0,0). I know how to rotate the camera (by changing lookat point in glulookat) for a half-sphere but not the full sphere. (purely problem is the z direction) I don't mind encountering gimbal lock.
Just to emphasise the camera works, its jsut an algorithm or mathematical expression calculating the new camera points from an (x,y) co-ordinate.
Thanks for any help you can other guys