team des =FRA= team FR battlefield 3 battlefield 2 battlefield
Loading images...

/* simple FOV calculator for BF:BC2
* author:
* use/abuse as needed, no credits wanted

if (isset($_POST[‘submit’])) {
$onload= » »;
if (isset($_POST[‘height’]) && is_numeric($_POST[‘height’]) &&
isset($_POST[‘width’]) && is_numeric($_POST[‘width’]) &&
isset($_POST[‘hfov’]) && is_numeric($_POST[‘hfov’])
) {
$height = intval($_POST[‘height’]);
$width = intval($_POST[‘width’]);
$hfov = intval($_POST[‘hfov’]);

// convert to radians
$hfovRad = deg2rad($hfov);

// calculate vfov
$vfovRad = 2*atan(tan($hfovRad/2)*($height/$width));

// convert back to degrees
$vfov = rad2deg($vfovRad);

// round up
$vfov = ceil($vfov);
$message = ‘Calculated vertical FOV setting: ‘ . $vfov . ‘‘;
else {
$message = ‘You must complete all fields!‘;
else {
$onload = ‘ onload= »init(); »‘;




Battlefield: BC2 FOV Calculator

> pixels or aspect ratio


« > degrees


FOV (Field of View) determines how much of your surrounding area you can see without turning.

Usually in FPS games where this is configurable, you adjust the horizontal field of view so you can see more to the left and right. Battlefield: Bad Company 2 uses vertical FOV instead, so it’s a little harder to work out what you need to set it to. Here’s the formula, bearing in mind it works in radians, not degrees:

Not really something you can do in your head, huh? 😀 So, simply enter your in-game screen resolution (or aspect ratio) and preferred horizontal FOV above and click the calculate button.

There’s currently no way to change this setting in-game, so you’ll need to update your settings.ini file manually. The default location is « My Documents\BFBC2 ». Open it with notepad and find the line that says something like « fov=55 », change the number and save the file. If you can’t find this line, you’ll need to add it yourself. Just make sure it’s somewhere under « [Graphics] ».

Note: You’ll need to restart BC2 before it starts working.


The source code for this PHP page is available here.

Did you find this page useful? Click here to buy me a pint:

Cheers, Rich aka Rulesy 😀


Team Video