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: Relationship between FOV and Camera Position

  1. #1
    Junior Member Newbie
    Join Date
    Aug 2002
    Posts
    2

    Relationship between FOV and Camera Position

    Hi,

    Im trying to automatically adjust my Camera Z Position so that when I change my FOV, the overall size of my object is maintained while the "warp" of the object changes. Is there a mathematical relationship to do this. Has anyone already done anything like this?

    Any help would be appreciated

    Thanks,
    Vishant

  2. #2
    Junior Member Newbie
    Join Date
    Apr 2002
    Posts
    13

    Re: Relationship between FOV and Camera Position

    old FOV = f
    new FOV = f'
    old z distance to object in focus = z
    new z distance to object in focus = z'

    z' = z * tan(f/2) / tan(f'/2)

Posting Permissions

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