# OpenGL eyeX,Y,Z / centerX,Y,Z / upX,Y,Z

This topic is 3875 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

I have a final tomorrow, can someone tell me what the purpose of eyeX,Y,Z / centerX,Y,Z / upX,Y,Z are in the gluLookAt command in OpenGL. Respond ASAP Thanks

##### Share on other sites
eyeX,Y,Z / centerX,Y,Z / upX,Y,Z

the first three are the position vector of the observer's eye,
the second three are the point at which the eye is looking at (the center of the scene), and the upX, Y, Z are the coordinates of the up vector, which typically points up (along positive Y), so it's {0.0, 1.0, 0.0} in most cases (it must not be parallel to the line of sight from the eye to the point it's looking at)

you are fucked.

##### Share on other sites
To elaborate a little on what wlw_wl said, the up vector, if I recall correctly, defines the camera's sense of "up", and through it, the camera's roll.

For example, an up vector that points to one side should produce a camera that is viewing the scene sideways.

##### Share on other sites
Quote:
 Original post by ThaumaturgeTo elaborate a little on what wlw_wl said, the up vector, if I recall correctly, defines the camera's sense of "up", and through it, the camera's roll.For example, an up vector that points to one side should produce a camera that is viewing the scene sideways.

isn't it yaw, actually? It's the vector around which the scene will be rotated to simulate the camera position, as described here

##### Share on other sites
Quote:
 Original post by ibebrettyou are fucked.

i concur

##### Share on other sites
Quote:
Original post by wlw_wl
Quote:
 Original post by ThaumaturgeTo elaborate a little on what wlw_wl said, the up vector, if I recall correctly, defines the camera's sense of "up", and through it, the camera's roll.For example, an up vector that points to one side should produce a camera that is viewing the scene sideways.

isn't it yaw, actually? It's the vector around which the scene will be rotated to simulate the camera position, as described here

You are both correct but talking about different things. Changing the up-vector will roll the viewpoint. Rotating about the up-vector is yaw.

##### Share on other sites
Thanks to you 3 for helping me out.

Eric

1. 1
2. 2
3. 3
Rutin
16
4. 4
5. 5
A4L
12

• 11
• 26
• 10
• 11
• 9
• ### Forum Statistics

• Total Topics
633723
• Total Posts
3013541
×