PDA

View Full Version : Newbie with gluLookAt



tirengarfio
02-07-2007, 12:42 AM
Hi to all,

im making some attempts with gluLookAt.

I have read, the first 3 arguments is the place where im looking at. So if i have drawn something in the center of my space (without any translation operation, of course) and i set those 3 arguments to 0.0, i should see my object. But i dont see anything...

NOTE: No problems to see my object if i compile my code without gluLookAT.

tirengarfio
02-07-2007, 12:46 AM
ups...im sorry...

the place where i look at are the 4th, the 5th and the 6th argument.

plasmonster
02-07-2007, 12:48 AM
Here's a great synopsis (note the caveat in the remarks section):
http://pyopengl.sourceforge.net/documentation/manual/gluLookAt.3G.html

Hope that helps.

Debugger
02-07-2007, 05:43 AM
What about other parameters in your glLookAt()?
by default, the object is drawing at orign and your view point is at orign too, so you will see nothing if calling glLookAt like this scenario:

glLookAt(0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0)because the viewing point and your drawing are at the same plane