I am trying to get the SeattleSpaceNeedle.ac light on when dark.
I made use of suggestions contained in model-howto.html
Now I have a .xml file with the following content, but that does not
work correctly.
I want a part of the SpaceNeedle to emit red light at night, and then
emit no light in the morning.
I've set two animations with one condition each; the conditions compare
the current sun-angle-rad with a fixed value; one condition should make
the Needle light on, the second condition should bring the Needle back
to no emission.
Result is the Needle lights on correctly when sun-angle-rad is greater
then 1.57 but it remains that emissive even when sun-angle-rad is back
smaller then 1.57.
Am I doing something wrong?
Roberto
<?xml version="1.0"?>
<PropertyList>
<path>SeattleSpaceNeedle.ac</path>
<animation>
<type>material</type>
<object-name>pCylinder1_group5.0</object-name>
<condition>
<greater-than>
<property>/sim/time/sun-angle-rad</property>
<value>1.57</value>
</greater-than>
</condition>
<emission>
<red>1.0</red>
<green>0.2</green>
<blue>0.0</blue>
</emission>
</animation>
<animation>
<type>material</type>
<object-name>pCylinder1_group5.0</object-name>
<condition>
<less-than>
<property>/sim/time/sun-angle-rad</property>
<value>1.57</value>
</less-than>
</condition>
<emission>
<red>0.0</red>
<green>0.0</green>
<blue>0.0</blue>
</emission>
</animation>
</PropertyList>
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Flightgear-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/flightgear-devel