This topic is now archived and is closed to further replies.



Recommended Posts

I''m having some problems with the camera command "gluLookAt". Well not really a problem, it''s more of a lack of information. I was wondering if there might be some page or someone that can explain 2 me what all the numbers inside the function does, well I know what they do, but what they determine. gluLookAt(0.0f, 0.0f, 10.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f); I know that the "10.0f" defines the camera position along the "Z-axis" but what do the other define??

Share this post

Link to post
Share on other sites
Here''s what you need, copy-pasted straight from the documentation:

The gluLookAt function defines a viewing transformation.

void gluLookAt(
GLdouble eyex,
GLdouble eyey,
GLdouble eyez,
GLdouble centerx,
GLdouble centery,
GLdouble centerz,
GLdouble upx,
GLdouble upy,
GLdouble upz

eyex, eyey, eyez
The position of the eye point.
centerx, centery, centerz
The position of the reference point.
upx, upy, upz
The direction of the up vector.

Share this post

Link to post
Share on other sites