Jump to content
• Advertisement

# gluLookAt

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

If you intended to correct an error in the post then please contact us.

## Recommended Posts

Hi I have a question about gluLookAt. O.k. I have the function anb the first three values give me the position of my camera The second three values say where I lokk at and the last three arguments give the normal vector of the camera. I hope it is correct so far. So here is my question. With the first 6 Argumens I give in my opinion a clear direction of the view. And I cannot figure out for what I need the normalvector. this vector results from the other two vectors because it is orthogonal. MFG chewbo

#### Share this post

##### Share on other sites
Advertisement
Quote:
 Original post by chewboHi I have a question about gluLookAt. O.k. I have the function anb the first three values give me the position of my cameraThe second three values say where I lokk at and the last three arguments give the normal vector of the camera.I hope it is correct so far.So here is my question. With the first 6 Argumens I give in my opinion a clear direction of the view. And I cannot figure out for what I need the normalvector. this vector results from the other two vectors because it is orthogonal. MFGchewbo
The first three and second three arguments give two points, not vectors. The last three give an up vector. Internally gluLookAt calculates the forward vector from the eye point to the center point (ie: the first six parameters only give one vector and the camera's position in space, which isn't enough to construct a coordinate system). It then calculates a side vector by taking the cross product of the forward vector and the up vector. Then it calculates the true up vector by taking the cross product of the side and forward vectors.

#### Share this post

##### Share on other sites

• Advertisement
• Advertisement

• ### Popular Contributors

1. 1
2. 2
Rutin
19
3. 3
4. 4
khawk
14
5. 5
A4L
13
• Advertisement

• 13
• 26
• 10
• 11
• 44
• ### Forum Statistics

• Total Topics
633743
• Total Posts
3013643
×

## Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!