Josh Babcock wrote:
> Frederic Bouvier wrote:

OK, aside from the scaling thing, this is working great. But, to make it
work nicely, I tried to integrate it with Melchior's dist-scale
animation from fgfs-export.py:

   <LIT-LandingXparams>
      <light-near>0.4</light-near>
      <light-med>0.8</light-med>
      <light-far>10</light-far>
   </LIT-LandingXparams>

   <animation>
      <type>dist-scale</type>
      <object-name>LIT-LandingX0</object-name>
      <interpolation>
         <entry>
            <ind>0</ind>
            <dep alias="../../../../LIT-LandingXparams/light-near"/>
         </entry>
         <entry>
            <ind>500</ind>
            <dep alias="../../../../LIT-LandingXparams/light-med"/>
         </entry>
         <entry>
            <ind>16000</ind>
            <dep alias="../../../../LIT-LandingXparams/light-far"/>
         </entry>
      </interpolation>
   </animation>

   <animation>
      <type>flash</type>
      <object-name>LIT-LandingX0</object-name>
      <center>
         <x-m>7.676509</x-m>
         <y-m>9.219258</y-m>
         <z-m>0.974499</z-m>
      </center>
      <axis>
         <x>-1</x>
         <y>0</y>
         <z>0</z>
      </axis>
      <power>5</power>
      <factor>1</factor>
      <offset>0</offset>
      <two-sides type="bool">false</two-sides>
      <min>0</min>
      <max>1</max>
   </animation>

The problem is that dist scale doesn't just scale the object, it moves it:

http://jrbabcock.home.comcast.net/flightgear/fgfs-screen-006.jpg
http://jrbabcock.home.comcast.net/flightgear/fgfs-screen-007.jpg
http://jrbabcock.home.comcast.net/flightgear/fgfs-screen-008.jpg
http://jrbabcock.home.comcast.net/flightgear/fgfs-screen-009.jpg
http://jrbabcock.home.comcast.net/flightgear/fgfs-screen-010.jpg

Is this a bug? I would think so, there doesn't seem to be any reason for
a scaling function to move an object. It seems to have the same behavior
if I reverse the order of the animations. There are no other animations
touching this object, and it is a member of no groups. Oddly, it seems
to put it in the right spot at a range of just about 1km.

Josh


-------------------------------------------------------
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!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to