PDA

View Full Version : Camera focal length



glnoob_andre
04-10-2012, 11:53 AM
How do you find the focal length of a camera in opengl, that is from the eye to the focal point.

Thank you.

Aleksandar
04-10-2012, 01:24 PM
focalLength = senzorSize / (2 * tan(FOV/2))

But that is a common equation. OpenGL does not impose any restriction to that calculation.