Weather Display

The mud client can display weather as specified by the weather 3d tags from the mud. It can display fog, clouds, wind and rain. For example:

files/weatherfog.jpg
files/weathersunny.jpg
files/weatherclouds.jpg

The weather 3d tags start with the 'w' character and have the subtags 'r' for rain, 'c' for clouds, 'w' for wind and 'f' for fog. After the subtag there is always an integer between 0 and 10 such as {wf10} for fog strength 10 out of 10.

The 3D mud client display clouds, wind and rain. The mud can specify weather using the 'w' 3D tag (weather) with the subtag 'c' for clouds, 'r' for rain and 'w' for wind, 'f' for fog.

When the mud client receives a weather tag it doesnt automatically pop say the cloud cover to the new state. Instead it is gradual. Read the transition to mud state document for more information.

Weather Sounds
The sound of wind is specified by the 'name' attribute of WIND in weather. It links to sounds. Likewise for the sound of rain. The mud client will change the volume of the sounds depending on the strength of the rain and wind.

Clouds
In the Shattered World a cloud box is constructed in the config file as a normal object:

<OBJECT name="cloud" caminvariancemode="position" heightcalculation="none">

<PLANE width="2000" height="2000" z="50" turn="90" pitch="-90" description="top" texture="textures\clouds.jpg" cloud="textures\clouds.jpg"/>
<PLANE width="2000" height="25" z="40" turn="90" x="1000" cloud="textures\gradient.tga" texture="textures\gradient.tga"/>
<PLANE width="2000" height="25" z="40" turn="270" x="-1000" texture="textures\gradient.tga"/>
<PLANE width="2000" height="25" z="40" turn="0" y="1000" texture="textures\gradient.tga"/>
<PLANE width="2000" height="25" z="40" turn="180" y="-1000" texture="textures\gradient.tga" />

</OBJECT>

The plane element has a special attribute 'cloud' that is used by the weather to determine what what the cloud texture is so that it can change the transparency of the texture based upon the cloud level. The 'cloud' texture is also used when displaying wind where the cloud speed increases as the wind speed increases.

Fog Colors
The color of fog at different times of the day can be specified in the FOG element of backgroundcolors. Thus fog can appear darker at night that during the day.