camera zoom and fov

Blitz3D Forums/Blitz3D Programming/camera zoom and fov

"Ok, great, now that everyone's learned about FOV, focal length, and Xmm lenses, can anyone tell me what FOV *or* focal length blitz's 1x zoom is supposed to simulate."

Well if you take my equation above there...

CameraZoom Camera, 1.0 / Tan(FOV#/2.0)

The important bit:
Zoom = 1.0 / Tan(FOV#/2.0)

We know Blitz' default Zoom is 1.0. So we substitute that into the euqation...

1.0 = 1.0 / Tan(FOV#/2.0)

Then we multiply both sides of the equation by Tan(FOV#/2.0) to simplify it...

Tan(FOV#/2.0) = 1.0

And then we have to get rid of the tan... So we take the arctan of both sides...

arctan(Tan(FOV#/2.0)) = arctan(1.0)

Which ends up being:

FOV#/2.0 = arctan(1.0)

And arctan(1.0) is 45, so...

FOV#/2.0 = 45

And them we multipy both sides by 2.0 to get the result:

FOV# = 90

So there you have it. Blitz's default zoom of 1 is equivalent to a 90 degree FOV.