Now, with
distance as a constant we should re-think the formulas:
ALPHA
= ARCTAN ( BASE VARIABLE/ DISTANCE CONSTANT)
ZOOM = 1 / TAN(ALPHA)
So
now we can "reduce" the width of our picture in, let's
say 2 TG units per frame (at target distance), which is actually
linear but as things get closer you might get the impression that
it is zooming faster.
Using
this approach, although the zoom is linear it is perceptually accelerating,
an effect known as the "bungee effect". In order to deal
with this we’re going to make a little change in the base
width calculation: Instead of increasing or decreasing it in constant
steps in TG units (eg. two at the time) we’re going to increase
it or decrease it in a constant percentage from the last frame:
Frame 1: base = 160
Frame 2: base = 160 – (2% of 160) = 147.2
Frame 3: base = 147.2 – (2% of 147.2) = 135.2
Frame 4: base = 135.2 – (2% of 135.2) = 124.6
And so on…
This not only
gives a better impression of linearity but also has the advantage
of enabling as to make an infinite zoom, because the base value
will decrease in ever smaller steps but will never reach 0, although
we should take into account that the max zoom value within TG is
256, I don't know if via script it can be even higher...
|