Original Post
Hi,
I''d appreciate any help you can offer me solving this little problem.
I am programming a camera system to look around in OpenGL.
For my camera I store its position, a vector which points the way in which the camera looks and its up vector.
I can move my camera around quite easily but I''m having lots of problems rotating the view.
Here is what I''m doing:
A) I calculate how far the mouse has moved from the centre of the screen and reset the cursor to the centre.
B) I use these values to rotate the vector which tells the camera which way it is looking.
The problem is that as I rotate it the axises of the camera change and I can''t use my lovely matrix rotation transformation thing.
How can I effectively look down my vector and rotate it in that axis.
-Meto