That would be very kind of you.
Are all objects in each AC file meant to have the texture changed at night ?
Not all however I can just move all that do require it into another directory along with the texture files.
How are the default textures and night textures named ?
All named different however all night textures end with _LIT.png.
One example ..
railway_LIT.png -->night texture
railway.png -->day texture
The texture filename for the daytime texture is always in the .ac file
Also, I need the one XML file you already made.
Here it is, this was the first one I made. All models have just one object so no need to search for multiple objects in model file.
- Code: Select all
<PropertyList>
<path>railway.obj.ac</path>
<animation>
<type>material</type>
<object-name>OBJ0</object-name>
<condition>
<greater-than>
<property>/sim/time/sun-angle-rad</property>
<value>1.49</value>
</greater-than>
</condition>
<emission>
<red>1</red>
<green>1</green>
<blue>1</blue>
</emission>
<texture>railway_LIT.png</texture>
</animation>
<animation>
<type>material</type>
<object-name>OBJ0</object-name>
<condition>
<less-than-equals>
<property>/sim/time/sun-angle-rad</property>
<value>1.49</value>
</less-than-equals>
</condition>
<emission>
<red>0</red>
<green>0</green>
<blue>0</blue>
</emission>
<texture>railway.png</texture>
</animation>
</PropertyList>