Precipitation Tutorial¶
Overview¶
Precipitation is controlled by cloud keyframes under the Weather Effects section in the Properties window of the selected cloud keyframe. Precipitation is bounded in trueSKY, and there are two main categories: cloud window and regional. This is controlled by the ‘Regional’ checkbox. A cloud window bounding means that the precipitation will fall across the scene. The regional bounding limits the range and position of the precipitation; these are called precipitation that is regions. A Cloud Map Texture, which are explained later, also act to bound the precipitation by defining the shape of the cloud (see section on Cloud Map Texture).
Precipitation regions are associated with their keyframe and their parameters, such as Radius, Strength and Rain - Snow, along with their position on the globe are interpolated over time. Precipitation regions can be position through the Cloud Window.
Editing in Global View¶
To edit precipitation within the Global View, ensure you are in the precipitation view mode, shown by the raindrop symbol at the top of the view.
After selecting a cloud keyframe from the timeline you wish to modify, it will now show you the areas where precipitation will fall.
To move a precipitation region, simply drag the precipitation region around the cloud window. Remember that the precipitation region’s position is relative to the position of its cloud keyframe, such that moving the cloud keyframe (with Left Click) will also cause the precipitation region move.
The size of precipitation regions is modified by the Radius parameter in the Properties page, and these size changes are reflected in the Cloud Window. The colour will also adjust depending on the rain/snow ratio.
To learn more about the Global View, please view this tutorial.
Cloud Map Texture¶
A cloud map texture can be added to a cloud layer via its Properties window. This acts as a mask for both the cloud and precipitation generation. In terms of precipitation, this mask restricts the area in which precipitation can fall. This mask works in conjunction with the precipitation region to refine further shape of the precipitation volumes.
Wind Speed Affecting Rain¶
Wind speed affects the direction and angle at which the rain will fall within the scene. By altering the wind speed variable within the trueSKY actor, you will be able to alter this.
In addition the control “Precipitation Wind Effect” found within the precipitation section of the trueSKY actor will allow you to set how much the wind affects the precipitation angle.
Precipitation under cover¶
Unreal¶
To prevent precipitation from falling in covered areas, create a SceneCapture2D actor and give it a texture target that contains only a red channel; e.g. RainDepthRT from the trueSKY content. Make the Capture Source “SceneDepth in R”. You don’t need to enable “Capture Every Frame” unless you expect the geometry to change.
Rotate the SceneCapture2D actor to face downwards.
On the trueSKY Sequence Actor, assign the SceneCapture2D actor to the Rain Mask SceneCapture property. Now precipitation will only appear where there is no cover above the SceneCapture actor.