Josh Babcock wrote :
> Can anyone explain to me how the flash animation works? It seems to be
> undocumented and I think it is what I need. I am trying to animate some
> landing light halos, and I want to make them get dim as the view gets
> off-axis.

The flash animation can be found in the beacon model.

<!-- not specified - default values
  <two-sides type="bool">false</two-sides>

It computes a scale factor applied to the object from the cosine of the
angle between the axis provided in the animation and the view vector. :

scale = factor * pow( cosine, power ) + offset

scale is then clamped between min and max.

and this scale factor is applied to the object, from the center
specified. It works best if scale is less than 1. Otherwise, there will
be clipping issues.

if two-sides is false, nothing is drawn if the cosine is negative.

Of course, this animation can be combined with another. In the case of
the beacon, there is a rotation just before that create the current effect.


This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
Flightgear-devel mailing list

Reply via email to