PDA

View Full Version : How to rotate a view point in the scene ?



08-13-2001, 06:38 PM
Hi all,
How do I rotate a view point in the scene ?,
Actually, my requirement is that I have to move around the object, ie, I want to place a cursor on the window(specifying center of the scene) and use arrow keys to move forward/backward/left/right in the
direction of the cursor - the movement should be free in 3D space. For this, I am using gluLookAt() and am stuck with calculating the center of the scene and up vector.

regards,
Sanjay.

Evil-Dog
08-14-2001, 01:17 PM
The only way that I figured out ( And I don't like that method ) is to move the whole scene with the well-known glTranslate and glRotate command

I hope I answered your question right !