Newbie with gluLookAt

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.

ups…im sorry…

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

Here’s a great synopsis (note the caveat in the remarks section):

Hope that helps.

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