If is anyone still interested, here are the formulas I use:
-
Convert *fov* to *zoom*:
zoom = -(Math.log(*fov*/45)-2*Math.log(2))/Math.log(2)
-
Convert *zoom* to *fov*:
fov = 180 / Math.pow(2,*zoom*)
https://stackoverflow.com/a/42319897/4227998
--
You re
Thanks barry. Pretty close! I'm implementing that formula. The only thing
is that the result goes over the limits. But that's not your formula's
fault. That's because the limits for fov are 10 and 120, so there are no
values for some zooms. For example, if the zoom is 0, the right value for
fov
var fov = 3.9018*Math.pow(zoom,2) - 42.432*zoom + 123;
Might be one possible formular.
I used Excel to make that. Plotted your values as a scatter graph.
Add a trendline for the graph (right click the line, and add Trendline)
In the options for the trendline, is an option to display the equation