PDA

View Full Version : is there a function?



lee
01-31-2001, 09:23 AM
is there any function in open gl that will return the coordinates of the current eye position? or is there any simple way to get these values from the current matrix?

Thaellin
01-31-2001, 09:51 AM
Hello,

Since you have to know where the camera is located in order to proceed with any rendering, it is easier to track the 'eye position' within your application than to attmpet to deduce it from the current OpenGL state.

By default, your eye position is at 0,0,0, staring down the negative 'Z' axis, with a 0,1,0 'up' vector.

-- Jeff