Advertisement

gluLookAt

Started by April 25, 2001 10:25 AM
2 comments, last by Cybrosys 23 years, 9 months ago
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??
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
);

Parameters
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.


--BerLan
Advertisement
What document??
You can find the Documentation at opengl.org.
gluLookat is at http://trant.sgi.com/opengl/docs/man_pages/hardcopy/GL/html/glu/lookat.html

This topic is closed to new replies.

Advertisement