Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: Camera focal length

  1. #1
    Junior Member Newbie
    Join Date
    Jan 2012
    Posts
    26

    Camera focal length

    How do you find the focal length of a camera in opengl, that is from the eye to the focal point.

    Thank you.

  2. #2
    Advanced Member Frequent Contributor Aleksandar's Avatar
    Join Date
    Jul 2009
    Posts
    948

    Re: Camera focal length

    focalLength = senzorSize / (2 * tan(FOV/2))

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •