FOV Calculations (Complicated Math Version) - For Developers
I wrote this little guide for myself, preparing the arrival of my Dell 2005FPW and of course tweaks for games with proper aspect ratio. The easiest way to use this is pick the RESOLUTION for your game and follow the formula. Also copying and pasting this to NOTEPAD with MONOSPACED fonts will make it more READ-ABLE =)
I hope it helps people out. And for the record 1280x768 is 16:9.6 Aspect Ratio according to my calculations. Please don't bash me if any information is wrong. I'll correct them if proven wrong.
FOV Conversion (By Resolution/Ratio)
Resolutions: 1280x800 / 1680x1050 / 1920x1200
16:10 = 19.2:12
4:3 = 16.0:12
FOV = 2 * INVTAN[(19.20/16.00)*TAN(90/2)]
= 2 * INVTAN[1.2*1]
= 2 * 50.194428907734805993720510180702
= 100.388857815469611987441020361400
Resolutions: 1280x768 / 1600x960 / 1920x1152
16:9.6 = 16.00:9.6
4:3 = 12.80:9.6
FOV = 2 * INVTAN[(16.00/12.80)*TAN(90/2)]
= 2 * INVTAN[1.25*1]
= 2 * 51.340191745909909395994137664827
= 102.680383491819818791988275329650
Resolutions: 1280x720 / 1600x900 / 1920x1080
16:9 = 16:9
4:3 = 12:9
FOV = 2 * INVTAN[(16.00/12.00)*TAN(90/2)]
= 2 * INVTAN[1.333333333333333333333333*1]
= 2 * 53.130102354155978703144387440907
= 106.260204708311957406288774881810
FOV Conversion (Game Examples)
UT / UT2003 / UT2004
Default FOV = 90
16:10 FOV = 100.38886
16:9.6 FOV = 102.68038
FullscreenViewportX = 1680
FullscreenViewportY = 1050
MenuViewportX = 1280
MenuViewportY = 720
Call of Duty
Default FOV = 80
16:10 FOV = 90.395093
16:9.6 FOV = 92.732987
seta r_customwidth = 1680
seta r_customheight = 1050
seta r_mode = -1
seta cg_fov = 90.395093
com_introplayed = 1