Skip to content
Media 1 for listing Savable Day Night Cycle System

Description

Usage video

Showcase video

Update 1.2 (Only from UE 5.2+):

Replaced deprecated lights components from UE4 with the new UE5 components that the lighting system use.

Exposed the default assets used to the project settings. These are the assets used when you create a blueprint of one of the classes the system use.

Added a world subsystem that help interacting with the day cycle system without the need of keeping a reference to the day cycle updater actor.

Added additional event for climate change.

Added a new parameter 'Atmospheric color multiplier' that help changing the whole atmosphere color. This should hopefully simplify the process of creating particular atmospheres as well as improve night lighting results.

Code improvements.

Update 1.1:

Fixed a compile error when trying to compile the engine that has the plugin installed.

Now interpolations are run in parallel and in a separated thread to avoid blocking the main game thread.

Since now the interpolations use a different thread, timing for interpolations are a bit different.

You might need to change interpolation speeds if you already found your sweet spot values.

A set of actors that can be used to simulate a day/night cycle with different weathers blending into each other.

Make use of ue4 components such as height fog, exponential fog, sky light, etc. but pack them into a small numbers of actors to make things more manageable and intuitive.

The parameters to set a sky condition are split between two structures (Day and Night) held inside a data table. The data table row entry defines the weather condition.

The weather can be changed by simply providing the row entry name to a blueprint function and the sky will naturally blend to the new weather condition at the speed you define inside the properties panel.

Multiple data tables can be added (at the moment is not possible to switch them at runtime but if anyone is interested I will update the code).

In the plugin there are two data tables examples:

the first one, aims to be realistic but a bit excessive in his colors, the second one is an alien planets with green atmosphere.

Finding the correct values to set into the data table is easier thanks to the editor button to switch between current data table night and day conditions, so you can set the values you like in the editor and copy them into the data table.

The object has functions to save and load everything about the day cycle system and can be done both sync and async. A structure is returned from the save function and can be saved in blueprints, the same structure is taken as input in the load function to restore the sky state.

Included formats

  • logo of Unreal Engine format