Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
day-night.jpg

Here’s how to apply weather to your world and environment settings (like the day and night cycle).

Applying weather to your world relies on a few things which you need to set first. Follow the steps explained below.


Environment parameters

Go to the World tab in the Panel area (right side of the main Editor screen).

image-20240124-104019.pngimage-20240124-104035.png


Find environmentParameters, where you can find two vital important values:

  • in environmentDefinition -you can set the general mood of your level (what kind of light and colour settings will be used.

  • in weatherTemplate - you can check what are the possible weather templates that can be used for your level. This is a 2d array: each level has dynamic properties already set and they can be later used in your environment editor.


Add environment and weather

Let’s search for available environment files in the Asset Browser (CTRL+A) and set it in the environmentDefinition (.env files) - when you click a file in the Asset Browser, use the green arrow to add it to this field.

image (164).png

The same works for the weatherTemplate. Go ahead and search for weather in your Asset Browser (these are .csv “weather” files). After you add the file, you should see a 2D arraywhere you can paste to the cell value.

image (163).png

World Environment Editor

Once you hook these two up, open the World Environment Editor where you can set the weather be choosing from available presets (such as: “clear”, “clouds_fog”, “storm” etc.) and check how a preset will look at different times of day and night.

2024-02-06_13-58_1.png2024-02-06_13-59.png

Weather presets get data from a csv table which you can open After pressing the Open WT button.

weathcvs.png

See how this works in the video tutorial below:

2023-09-05 11-35-26.mkv

Table of contents:

Table of Contents
minLevel3
maxLevel6
outlinefalse
typelist
printablefalse