So today I tried to implement the rotateable camera, but all I was able to achieve was the rotation of the camera according to the focused object, with one line of code:
Using java Syntax Highlighting
pGL.glRotatef(rotation, 0, 0, 1);
Parsed in 0.029 seconds, using
GeSHi 1.0.8.4
but since the mMaxY,mMaxX etc. camera coordinates are unchanged, the image is skewed and stretches as the camera rotates. I was trying to fix this with the transformation equations here
http://mathcentral.uregina.ca/QQ/databa ... aham1.html but with no luck.. the camera started rotating wildly. Nicolas if you could give me a hint as how to solve this I think I could do it for you

Thanks,
Paul