PDA

View Full Version : OpenGL panning and rotating



bob2012
30th July 2012, 15:11
Hi,

I am having trouble with some panning in my scene. The problem is i am trying to pan the camera left or right with a mouse drag. This is working but as soon as i rotate the scene the panning is all messed up.
If i drag the mouse left to right before any rotations it works, if i say rotate on the x axis 90 degrees the panning is now wrong. I have included a very basic project that illustrates my problem.

I have also checked a few Qt demo's out but i can't find any that have camera panning. Please do point out if there is.

Many thanks to anyone who helps out.

Regards,

Bob

8065