The latitude can be changed by editing <latitude> 40.6 </latitude>.
Which affects the length of the shadows and the change in the position of the sun in each season. However, I have questions about the weather change.
I analyzed the file and I can see that there are cloud presets which are then used to define the weather. However, I don't quite understand all the code. Example for spring:
Code: Select all
<season name="spring">
<object typeName="SUN" class="WeatherObject" weight="8">
<variation weight="1" minHours="6" maxHours="12" minTemperature="14" maxTemperature="18">
<clouds presetId="SUNNY_BLUE_SKY" />
<wind angle="194" speed="4" cirrusSpeedFactor="0.80" />
</variation>
<variation weight="1" minHours="6" maxHours="12" minTemperature="12" maxTemperature="17">
<clouds presetId="SUNNY_LIGHT_CLOUDS_1" />
<wind angle="218" speed="8" cirrusSpeedFactor="0.80" />
</variation>
<variation weight="1" minHours="8" maxHours="12" minTemperature="11" maxTemperature="16">
<clouds presetId="SUNNY_LIGHT_CLOUDS_2" />
<wind angle="227" speed="10" cirrusSpeedFactor="0.80" />
</variation>
<variation weight="1" minHours="8" maxHours="12" minTemperature="10" maxTemperature="15">
<clouds presetId="SUNNY_LIGHT_CLOUDS_3" />
<wind angle="172" speed="13" cirrusSpeedFactor="0.80" />
</variation>
</object>
<object typeName="CLOUDY" class="WeatherObject" weight="8">
<variation weight="1" minHours="5" maxHours="10" minTemperature="11" maxTemperature="16">
<clouds presetId="CLOUDY_LIGHT" />
<wind angle="274" speed="17" cirrusSpeedFactor="0.80" />
</variation>
<variation weight="1" minHours="5" maxHours="10" minTemperature="10" maxTemperature="15">
<clouds presetId="CLOUDY" />
<wind angle="294" speed="21" cirrusSpeedFactor="0.80" />
</variation>
<variation weight="1" minHours="5" maxHours="10" minTemperature="9" maxTemperature="14">
<clouds presetId="CLOUDY_MEDIUM" />
<wind angle="333" speed="24" cirrusSpeedFactor="0.80" />
</variation>
<variation weight="1" minHours="5" maxHours="10" minTemperature="8" maxTemperature="13">
<clouds presetId="CLOUDY_DENSE" />
<wind angle="316" speed="28" cirrusSpeedFactor="0.80" />
</variation>
</object>
<object typeName="RAIN" class="WeatherObjectRain" weight="4">
<rain filename="$data/sky/rain.i3d" />
<variation weight="1" minHours="1" maxHours="3" minTemperature="9" maxTemperature="15">
<clouds presetId="RAIN_1" />
<rain dropScale="0.5" />
<wind angle="2" speed="38" cirrusSpeedFactor="0.80" />
</variation>
<variation weight="1" minHours="1" maxHours="3" minTemperature="8" maxTemperature="14">
<clouds presetId="RAIN_2" />
<rain dropScale="0.8" />
<wind angle="23" speed="44" cirrusSpeedFactor="0.80" />
</variation>
<variation weight="1" minHours="1" maxHours="3" minTemperature="7" maxTemperature="13">
<clouds presetId="RAIN_3" />
<rain dropScale="1" />
<wind angle="47" speed="57" cirrusSpeedFactor="0.80" />
</variation>
<variation weight="1" minHours="1" maxHours="3" minTemperature="6" maxTemperature="12">
<clouds presetId="RAIN_4" />
<rain dropScale="1" />
<wind angle="72" speed="68" cirrusSpeedFactor="0.80" />
</variation>
</object>
</season>
The probability of clouds, rain and sun is defined there.
I wonder what the next values mean:
-> weight (I understand that this value represents the probability of a given variaton. The higher the weight value, the greater the probability?)
-> minHours and maxHours - do I understand correctly that this is the minimum and maximum number of hours a given variation can last?