Hi all,
I thought I'd share my experience in trying to enhance night-time flying by
making lights on various objects flash where in the the generic models I was
using they were steadily lit.
First my thanks to all that guided me to the solution.
I have used the generic light house as an example.
I modified the xml file to;
<?xml version="1.0"?>
<PropertyList>
<path>generic-lighthouse.ac</path>
<animation>
<type>range</type>
<min-m>0</min-m>
<max-m>20000</max-m>
</animation>
<!-- Placeholder for a lit lamp -->
<animation>
<name>LampOn</name>
<object-name>Lamp</object-name>
</animation>
<!-- Placeholder for an extinguished lamp -->
<animation>
<name>LampOff</name>
<object-name>Lamp</object-name>
</animation>
<!-- Flashes the lamp -->
<animation>
<type>timed</type>
<object-name>LampOn</object-name>
<object-name>LampOff</object-name>
<use-personality type="bool">true</use-personality>
<!-- LampOff duration -->
<branch-duration-sec>1</branch-duration-sec>
<!-- LampOn Duration -->
<branch-duration-sec>1</branch-duration-sec>
</animation>
<!-- turns the lamps off during the day -->
<!-- to leave the lamps on longer during the day -->
<!-- decrease the number in the value section -->
<animation>
<type>select</type>
<object-name>Lamp</object-name>
<condition>
<greater-than>
<property>/sim/time/sun-angle-rad</property>
<value>1.5</value>
</greater-than>
</condition>
</animation>
</PropertyList>
I then saved the xml file under different names with their own flash
cadences eg;
PencarrowHi.xml uses a 1 sec on/1 sec off
PencarrowLo.xml uses a 2 sec on/1 sec off
changing the references in the relavent stg file to point to the new files.
I now have two light houses close together that turn on just before dusk and
off just after dawn and the higher on flashes 2 on/1 off and the lower
flashes 1 on/1 off.
Next on the light-house to do list is to get the appearance on a rotating
light like the airport beacon.
I have included comments for others so they don't have to spend a weekend
learning from scratch. :-)
Regards
:-D ene
_________________________________________________________________
Need more speed? Get Xtra Broadband @
http://jetstream.xtra.co.nz/chm/0,,202853-1000,00.html
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Flightgear-users mailing list
Flightgear-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-users