HOW-TO: Apply weather and environment

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.png


Find environmentParameters, where you can find two 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.

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.


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.

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

See how this works in the video tutorial below:

 

______________________________________
The Witcher 3: Wild Hunt Complete Edition © 2024 CD PROJEKT S.A. Published by CD PROJEKT S.A. Developed by CD PROJEKT RED. CD PROJEKT®, The Witcher®, REDengine® are registered trademarks of CD PROJEKT Capital Group. All rights reserved. The Witcher game is set in the universe created by Andrzej Sapkowski in his series of books. All rights reserved.