If that's not possible either, are there properties in the tree that I can use for this purpose? Also, I see that sun-angle-rad is updated quite often, isn't binding an effect to that property going to be heavy as the range animation?
Here's my XML file:
- Code: Select all
<?xml version="1.0"?>
<PropertyList>
<path>LIPY_terminalOld.ac</path>
<effect>
<object-name>facciate</object-name>
<object-name>dettagli</object-name>
<inherits-from>Effects/lightmap</inherits-from>
<parameters>
<texture n="1">
<image>TEXTURE LIPY 2_L.png</image>
</texture>
<!--
<condition>
<greater-than>
<property>/sim/time/sun-angle-rad</property>
<value>1.48</value>
</greater-than>
</condition>
-->
<factor>
<use>/sim/time/sun-angle-rad</use>
<interpolation>
<entry>
<ind> 0.0</ind>
<dep> 0.0</dep>
</entry>
<entry>
<ind> 1.48</ind>
<dep> 0.0</dep>
</entry>
<entry>
<ind> 1.66</ind>
<dep> 1.0</dep>
</entry>
<entry>
<ind> 3.14</ind>
<dep> 1.0</dep>
</entry>
</interpolation>
</factor>
</parameters>
</effect>
</PropertyList>
Thanks for any help.