Field of View

From Valve Developer Community
Revision as of 07:57, 10 April 2008 by Beeswax (talk | contribs)
Jump to navigation Jump to search

Field of view (FOV) is the maximum angle between the peripherals of a person's or camera's vision.

In HL2 the Player Character's Horizontal Field of View is set to 75 degrees. Screen settings aspect ratios are achieved by cropping the top and bottom of the image (ie reducing the vertical FOV).

The NPC FOV angle determines the 'scope' of their Viewcone.

Optimising Player FOV

  • Motion Sickness : Smaller FOVs tend to exaggerate camera movement, whilst larger FOVs tend to minimise its effect on the image. Thus setting a wider FOV can sometimes help to reduce Motion Sickness during gameplay. If you are experiencing such problems in Half-Life 2, try changing the FOV to 90 using the command "sv_cheats 1;fov 90" in the console.
  • Perspective Distortion : Wider FOVs introduce more Perspective Distortion into a image, whereas small FOVs tend to flatten perspective. The distortion is caused by projecting (spherical) optical geometry onto a flat screen - that's why IMAX Dome screens are curved. Like all optical artifacts, perspective distortion is much more noticeable in still images than in the moving images of FPS gameplay. For making more cinematic screenshots, use a smaller FOV and a larger camera-object distance.
  • Theoretically, an optically correct perspective can be obtained by matching the Camera's angle of view to the angle between the Player's eye and the edges of the image on his screen. Obviously this angle varies according to the actual size of the Player's screen and how far away from the screen he is actually sitting. Most players will be sitting close to a fairly small screen and unconsciously move their head position to obtain the most comfortable perspective. However, if using an unusually large screen (eg Overhead Projection) a suitable seat position can be calculated with :
viewer distance = (screenwidth)/(2*tan(FOV/2))

so where the FOV is 75 degrees:

viewer distance = (screenwidth * 0.652)

FOV calculations

  • A useful rule of thumb: an object will appear twice as tall and twice as wide if the camera-to-object distance is halved. This is true for any FOV. This may be helpful when working with LOD distances such as making LOD Models, MIP Mapping textures, and setting Fade Distances.

See also