PDA

View Full Version : OpenGL move the camera



rullzer
25th February 2008, 12:25
Hi,

I'm trying to create an object in 3D. This all works but I want to change the camera. Not the object. So there is a static room and I'm walking trough it.

I tried to use GluLookAt in the helloGL example on in the qt examples but nothing seems to happen.

Any ideas?

thnx in advance,
rullzer

ToddAtWSU
25th February 2008, 20:22
You would probably be better served asking this question in the OpenGL forums located at www.opengl.org. Qt only provides the context to render the OpenGL code inside but everything else is dealt with OpenGL data and has nothing to do with Qt.

Unfortunately, I personally have never used gluLookAt, I just deal with changing my glViewport and glOrtho to draw my data.

jacek
26th February 2008, 20:39
When did you call qluLookAt? Before you draw anything or after?