(30 Nov 10, 10:44PM)Kirin Wrote: what's the use in those clumsy sens scalings? use /autoscopesens 1, it accurately scales sensitivity to fit with the zoom fov using trigonometrics (which is the only right way)
linearly correlating fov and sensitivity alters the ratio between the quantity of image seen and sensitivity, so please avoid doing this: newsensitivity=sensitivity/fov*zfov
it's horribly wrong!!
What is "zfov" in your formula?
Is it "new fov" or "difference beetwen prev_fov and actual_fov"?
I figured out that I need:
scopesensscale 0.5 for scopefov 50
scopesensscale 0.1 for scopefov 5
I'm testing my zoom-scope script now
and I set scope sens. in it in very simple way:
scopesensscale (divf $scopefov 100);
and it works nice, but at max zoom is 0.5, not 0.1,
but it's not a problem.
Kirin Wrote:the correct relationship is this: newsensitivity=sensitivity/tan(fov/2)*tan(zfov/2)
and you can obtain it at no cost by using this parameter: /autoscopesens 1
zfov is "new fov"?
if so:
newsensitivity = 0.5 / tan(50/2) * tan(5/2) = 0.0468 ~ 0.05
It looks like "my fov/100" :)
(maybe due to that for "small" values of x tan(x) ~= x)
autoscopesens sucks - for 2 reasons:
- you have to get used
- sens. vary with scopefov - its too sens. form me when scopefov is near min