is there a function?

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?


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