This page has been translated automatically.
Video Tutorials
Interface
Essentials
Advanced
How To
Professional (SIM)
UnigineEditor
Interface Overview
Assets Workflow
Settings and Preferences
Working With Projects
Adjusting Node Parameters
Setting Up Materials
Setting Up Properties
Lighting
Landscape Tool
Sandworm
Using Editor Tools for Specific Tasks
Extending Editor Functionality
Built-in Node Types
Nodes
Objects
Effects
Decals
Light Sources
Geodetics
World Nodes
Sound Objects
Pathfinding Objects
Players
Programming
Fundamentals
Setting Up Development Environment
Usage Examples
C++
C#
UnigineScript
UUSL (Unified UNIGINE Shader Language)
Plugins
File Formats
Materials and Shaders
Rebuilding the Engine Tools
GUI
Double Precision Coordinates
API
Containers
Common Functionality
Controls-Related Classes
Engine-Related Classes
Filesystem Functionality
GUI-Related Classes
Math Functionality
Node-Related Classes
Objects-Related Classes
Networking Functionality
Pathfinding-Related Classes
Physics-Related Classes
Plugins-Related Classes
IG Plugin
CIGIConnector Plugin
Rendering-Related Classes
Content Creation
Content Optimization
Materials
Material Nodes Library
Miscellaneous
Input
Math
Matrix
Textures
Art Samples
Tutorials
Warning! This version of documentation is OUTDATED, as it describes an older SDK version! Please switch to the documentation for the latest SDK version.
Warning! This version of documentation describes an old SDK version which is no longer supported! Please upgrade to the latest SDK version.

Creating Weather Effects

Creating atmospheric effects is essentially an artistic task. You can simulate different weather conditions using only the UnigineEditor functionality, unless you need some kind of interaction or complex smooth transitions. This article describes common ways to create such effects in UNIGINE.

Cloudy Sky#

Most weather effects require the overcast sky. In some cases, changing the sky color is enough, but you can also use various types of clouds available out of the box.

Raindrops and Snowfall#

Raindrops and snowfall effects are similar and usually simulated using Particle Systems.

Check out the particles_rain_effect world of the Art Samples demo (the art_samples > particles > particles_rain_effect world) showcasing a rain effect. You can open it in UnigineEditor and see how it is made. For optimization purposes, this sample controls attachment of the particle systems to the camera via scripting to spawn raindrops only in some local area around the player.

Lightning#

Lightning can be simulated in many ways; the most common approach is an emissive Billboard or a mesh depending on the required level of quality. To emulate randomly occuring lightning strikes, you can configure a random Period for billboard-based particles and use a Texture Atlas containing different lightning images.

A more complex solution, including shaders and programming, may be required to simulate how highly-detailed lightning affects the scene lighting.

Fog#

To simulate fog, take a look at the Environment Haze settings. This feature is great for enriching the scene with mist and dense fog with support for height-dependent density.

Storm#

Stormy sea can be implemented using the Global Water waves: you can use a set of predefined Beaufort waves with a smooth transition between the sea states, or customize waves according to your needs.

Waves can also be controlled via code. A set of the Water Global samples in the CPP Samples suite included in the SDK demonstrates how to use C++ API to control Global Water and fetch water level at a given point simulating a water splash at a point of contact with a boat or another object.

Wind#

Wind is a rather compound effect; there are no global wind settings affecting all the content in the project world. The wind effect could be broken into the following components:

  1. Vegetation animation. There are several approaches to animate plants affected by wind requiring certain adjustments when modeling geometry. Check out these tutorials:

  2. Physical Wind affecting physical objects and particles with mass.
  3. Dust and small flying props can also be made via Particle Systems.
  4. Storm at water and movement of clouds is done in the settings of these objects and their materials.

Complex Effects#

More complex effects like water droplets and streaks on the camera lens, splashes in puddles, screen frost, and windshield wiper effect require shader coding and are provided in the Weather Add-on available starting with the Engineering SDK (Windows only).

Last update: 2022-04-07
Build: ()