View Full Version : gluLookAt() function
11-19-2003, 08:41 AM
hey people, im having difficulty understanding this lookat function. i understand it when it is set by default but what would it mean if it was something like:
gluLookAt (0.0, 0.0, 5.0, 0.0, 0.0, 0.0, 1.0, 1.0, 0.0); ?
someone please help me figure this out! thnx
11-19-2003, 11:41 AM
-> 0,0,-5 : eye position
-> 0,0,0 : where your eyes are watching
-> 0,1,0 : a vector
11-19-2003, 01:51 PM
more specifically, the last 3 values define the "up" vector. if your head is where the camera is located, and the direction you're looking is a vector coming out of your eyes (the vector is the point you're watching minus the point where your head is), then the up vector would be the vector that shoots directly out of the top of your head.
as an aside, this post would've been better off in the beginner forum. i don't mean to be elitist, but gluLookAt is incredibly basic.
[This message has been edited by lost hope (edited 11-19-2003).]
Powered by vBulletin® Version 4.2.3 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.