There are two main methods of achieving rain within CRYENGINE. The Rain Entity was introduced in version 3.3 and has been updated with several new features in 3.5. This entity has the advantage of handling object occlusion and applying a wet effect to all affected areas of the world.
Alternatively, if you want more control over the visual look of the rain in the world then it is still possible to add rain to the world using a particle effect with the correct configuration.
The Rain entity is found under the Environment folder in the Entity Rollup Bar.
Property | Description |
---|---|
UmbrellaRadius | DEPRECATED - Can be used to create an umbrella around the player/camera shielding them from the rain. |
RainDropsSpeed | Set the speed at which the rain drops travel. |
RainDropsLighting | Set the brightness or backlighting of the rain drops. |
RainDropsAmount | Set the amount of rain drops that can be seen in the air. |
Radius | Set the radius, or coverage area, of the rain effect. |
PuddlesRippleAmount | Set the strength and frequency of the puddles generated by the rain (offset PuddlesAmount). |
PuddlesMaskAmount | Set the strength of the puddle mask to balance different puddle results. |
PuddlesAmount | Set the strength (depth and brightness) of puddles generated by the rain. |
MistHeight | DEPRECATED - Set the maximum height at which mist can appear on distant surfaces. |
MistAmount | DEPRECATED - Set the amount of mist that appears on surfaces (distant, subtle effect). |
IgnoreVisareas | Continue to render rain when player is inside a visarea. |
FakeReflectionsAmount | DEPRECATED - Set the amount of reflection that is applied to the surfaces in the world. |
FakeGlossiness | DEPRECATED - Set the amount of glossiness/wetness that is applied to the surfaces in the world. |
Enabled | Set this to true/false to turn the rain effect on/off. |
DisableOcclusion | Don't check if object should be occluded from rain (is under cover). |
Color | DEPRECATED - This sets the color of the rain effect. |
Amount | Set the overall amount of the rain entity's various effects. |
PuddlesMaskAmount = 0 | PuddlesMaskAmount = 1 |
---|
PuddlesRippleAmount = 2 | PuddlesRippleAmount = 100 |
---|
DisableOcclusion = False | DisableOcclusion = True |
---|
SplashesAmount = 1.3 | SplashesAmount = 1000 |
---|
MistAmount = 3 | MistAmount = 1000 (background rocks) |
---|
Drag and drop the ParticleEffect entity into your level from the Particle tab of the DataBase View: weather.Rain.space_loop
The settings for how the particle functions can be adjusted via its property settings on the Particle tab of the DataBase View.
Adjust the Count, Emitter Life Time, Spawn Delay and other properties to adjust the size and speed of the rain particles.
If you wish to limit rain to certain areas of your level, simply trigger the Particle Effect via Flow Graph and an area trigger so that when the player enters/leaves an area, it enables/disables the particle.