Flying Donkey Tempest

Sky, weather and ocean in one toolkit: the sun, moon and stars, climates and storms carried by the wind, an ocean of real waves with surf, tides and wakes, lakes that freeze, snow, rain, frost and dust on the ground, smoke and the weather's sound. The same on every machine, and on servers with no GPU.

Flying Donkey Tempest gives a level its whole outdoors from one clock and one profile: the date and the sun, moon and stars over your latitude; climates laid over the world, with storms born of them and carried by the wind; the rain, snow, hail, fog, dust and lightning those storms bring, and the clouds overhead; an ocean whose waves the wind raises, breaking as surf on your beaches, rising and falling with the tide; lakes that freeze in winter; snow that lies and takes footprints, wet ground and puddles, frost, black ice and dust; smoke carried by the wind; and the weather heard. Everything is worked out from the clock, the world's seed and a short log of changes, so every machine shows the same sky and sea, and a server with no GPU knows the weather and the waves as well as a player sees them. This guide installs the plugin, sets a level up and shows a first storm in ten minutes, explains every page of its window, each part of the weather and the water, how gameplay reads them, and every message the checks can give.

About Tempest · Tempest on Fab · Download the guide as a PDF

Install and set up

Flying Donkey Tempest is one plugin: the clock, the sky, the weather and the sea for the game, what draws and sounds them, and the editor window this guide comes back to again and again. It needs no other product. This chapter installs it, says what your project needs, and shows where the examples are.

Requirements

Engine Unreal Engine 5.8.
Platform Built and tested with the Windows editor, DirectX 12.
Engine plugins None to switch on: Tempest uses only what every project has.
Other products None. Everything in this guide is part of Flying Donkey Tempest.
Project type Blueprint or C++. Installed from Fab, the plugin comes built and works in a Blueprint project's editor. Packaging a game needs Visual Studio 2022 with its C++ tools, whatever the project type: Unreal compiles the plugin into your game. A C++ project is needed to build the plugin from its source (copied into the project's Plugins folder).
Project settings For the sea to break against rocks and piers, Generate Mesh Distance Fields must be on (it is whenever Lumen is). Everything else works as a new project comes.

Names in the code

The plugin's folder, its .uplugin file and its content root are FlyingDonkeyTempest. Its modules are FDTempest (the clock, the weather and the sea: no rendering, so a server has it too), FDTempestRender (the sky, the ocean, the effects and the sound) and FDTempestEditor (the window). Its C++ classes start with FDTempest; in the editor's lists the actors are named Tempest Sky, Tempest Ocean and so on.

Install and enable

  1. Install Flying Donkey Tempest from Fab (the Epic Games Launcher › Fab Library › Flying Donkey Tempest › Install to Engine). Or copy the plugin's FlyingDonkeyTempest folder into your project's Plugins folder: it is then built from its source with your project, which must be a C++ project.
  2. Open your project. In Edit›Plugins, search for Flying Donkey Tempest and tick Enabled.
  3. Restart the editor when it asks. The first start compiles Tempest's shaders, which takes a few minutes once.
  4. Open the window from Tools›Flying Donkey Tempest.

Your own C++: the Build.cs modules

Blueprints need none of this. When C++ of your own uses Tempest's classes, list the modules it uses in your module's Build.cs file, then build the project:

PublicDependencyModuleNames.AddRange(new string[]
{
    "Core", "CoreUObject", "Engine",
    "FDTempest", "FDTempestRender"
});
Module Add it when your code uses
FDTempest The weather and the sea: the subsystem's queries, the profile and climates, buoyancy, shores, saving, the calendar's events. A dedicated server needs only this one.
FDTempestRender The sky, the ocean and lake actors, snow prints, wakes, ripples and splashes, smoke, the cutscene director.
FDTempestEditor Editor scripts only: setting a level up, the checks, the preview's moment.

What comes with it

In the Content Browser, open Settings and tick Show Plugin Content. The plugin's content is under Plugins › Flying Donkey Tempest (the path is /FlyingDonkeyTempest).

Where What it is
Examples › C_Temperate, C_Nordic, C_Tropical, C_Arid, C_Maritime Five climates, their values and seas from their real counterparts: a temperate coast, a Nordic one, the tropics, a desert and the open ocean.
Examples › P_TemperateIsles A profile: temperate islands with the open ocean's climate round them, so storms out at sea take the deep ocean's dark water.
Examples › P_NordicFjords A profile with winter gales: the first three weeks of winter in four years of five, storms twice as often and a third stronger.
Examples › P_TropicalArchipelago A profile of tropical islands.
Examples › L_TempestLook The built-in look as an asset, to copy and change.
Surfaces › MF_TempestSnow, MF_TempestWet, MF_TempestDust The functions your own materials call for snow, wet ground and puddles with frost and ice, and dust (chapter 10).
Surfaces › M_TempestSnowDemo, M_TempestWetDemo Two materials that show them on a plain grey surface: put one on a floor to see the ground's weather. The snow demo is tessellated: on a Nanite mesh the snow raises the surface.
Ocean › M_TempestOcean, M_TempestLake The ocean's and the lakes' materials.
Ocean › MF_TempestSea The sea's wave function, for a material of your own (chapter 8).

Everything Tempest draws is its own: its textures and its sounds are generated, and nothing in it is a recording or a photograph.

Project settings

Edit›Project Settings›Plugins›Flying Donkey Tempest holds what is the project's rather than a level's:

Setting What it does
Default Profile The profile a level uses when its Tempest World names none. Empty: the built-in defaults (a temperate climate at 52° north).
Fixed Seed A seed every new world uses, for worlds that come out the same every time. 0: each new world draws its own.
Low, Medium, High, Epic The quality tiers' values (chapter 14).
Budgets What Tempest may cost a frame, which the measure checks against.
Players Swim Each player's character is given a Tempest Swimming (and its wake), so players swim in Tempest's water. On by default; turn it off when your game swims its own way (chapter 8).

They are saved to Config/DefaultGame.ini.

A first storm in ten minutes

The quickest way to see what Tempest does is to set a level up and call a storm. Here you give a new level Tempest's sky and ocean, watch a day and its weather pass in the editor, then play and bring in a gale with lightning.

  1. Make a level. File›New Level›Basic. It has the engine's own sun, sky and fog, and a floor.
  2. Set it up. Open Tools›Flying Donkey Tempest. On the Overview page press Set up this level. It places a Tempest World (the clock and the level's profile) and a Tempest Sky (the sun, moon, sky, clouds, fog, rain and sound), and turns off the level's own sun, sky light, atmosphere, fog, clouds and sky dome (the template's SM_SkySphere). They stay in the level, turned off, so nothing is lost: delete them once you are happy. One Ctrl+Z undoes it all.
  3. Give it a profile. Press Create a profile. A profile of your own is made under /Game/Tempest, with the built-in values, and the level's Tempest World uses it. The other pages of the window now edit it.
Figure 1. The Overview page after Set up this level: a Tempest World and a Tempest Sky placed, the level's own sky turned off, and a profile created for the level.
  1. Add the sea. Open Window›Place Actors, search for Tempest Ocean and drag one into the level. The ocean is drawn at sea level round the view, out past the horizon, wherever you place it.
  2. Lift the floor. The Basic level's floor lies at sea level. Select it and the Player Start together and raise them by 10 m (1000 on Location Z, or drag them up), so the floor stands over the sea like a pier, above even a gale's waves, and you start on it.
  3. Watch a day pass. In the window's bottom strip drag Hour: the viewport's sun moves and the light follows it. Press 600x (ten game minutes a second) and open the Climate and Weather page: storms drift across its map with the wind. Press Pause when you have seen enough.
  4. Play. Press Play. Open the console with the tilde key (~) and type tempest.Hold 15 0 6 1 20: rain at 15 mm an hour, no snow, six strokes of lightning a minute, a full overcast and a 20 m/s gale. The weather eases into it.
  5. Let the sea build. The sea takes hours of game time to follow the wind, as a real sea does. Type tempest.Time 15 to jump to three in the afternoon: the gale has been blowing for hours, and the sea is up.
  6. Give the weather back. Type tempest.Release. The weather eases back to its own, and the sea goes down as slowly as it rose.
Figure 2. A gale at sea: the clouds, the light and the waves all come from the weather at the view.

That is the whole loop: a profile says what the world's weather is like, the Tempest World keeps the time, and the Tempest Sky and Ocean show the weather at the view. Everything else in this guide is about shaping those, and about reading the weather in your game.

What Tempest is

Tempest works out a world's sky, weather and sea from four things: its profile, its seed, its clock and a short log of changes. Nothing is random at run time and nothing is simulated step by step, so every machine that knows those four things shows the same sky, the same storms and the same waves, and can say what the weather was or will be at any place and time.

The parts

Part Where it lives What it does
Profile An asset (FDTempestProfile) The world's calendar and clock, its latitude and moon, its climates and where they lie, how the weather moves, its sea, its seasonal events and its snowy places.
Climate An asset (FDTempestClimate) What the weather is like in one kind of place: its temperatures, cloud, fog, dust, wind, storms and its sea's look. A profile lays climates over the world.
Look An asset (FDTempestSkyLook) How the sky is lit and drawn: curves over the sun's height for the light, the fog and the exposure, and the materials of the rain, splashes, rain shafts, bolts, clouds and night sky. Empty: the built-in look.
Tempest World An actor, one a level Keeps the clock, the seed and the change log, and names the level's profile. The server's copy is the one that counts; clients follow it.
Tempest Sky An actor, one a level Draws and sounds the weather at the view: sun, moon, sky, clouds, fog, exposure, rain, snow, hail, lightning and the weather's sound. In the editor it previews any moment.
Tempest Ocean An actor Draws the sea round the view, with its foam, spray, ripples and underwater view.
Tempest Shore, Tempest Lake, Tempest Calm Zone Actors Give an island its surf, a lake its own water, and a harbour its shelter.
The subsystem FDTempestSubsystem, in every world Answers every question about the weather and the water, raises the lightning and calendar events, and takes the changes.

The same on every machine

The server keeps the clock and the change log, and sends them to the clients: a few bytes when something changes. Each machine then works out everything else itself. A dedicated server, with no GPU, knows the weather, the snow lying and the height of the sea at any place, exactly as a player's machine draws them, so a boat floats the same on both and lightning that strikes a tree strikes it everywhere.

The change log is the weather's history of what people did to it: a storm called in, a held weather, storms made more frequent. A saved game keeps the clock, the seed and that log, and nothing else is needed to bring the world's weather back as it was.

The window

Tempest's window, Tools›Flying Donkey Tempest, sets a level up, edits its profile and its look in place, shows the weather to come, and checks the level for what would go wrong in play. Its sections are down the left; along the bottom is the time, which every page shares.

Figure 3. The window, open on its Overview page.
PartWhat it is for
1SectionsThe window's pages. Click one to show it; the one shown is in bold. User Guide, at the foot of the list, opens this guide at the page about the section shown.
2The pageThe section shown: the level's status, the profile's or the look's settings, the map, the shores or the checks.
3The timePause and the three speeds, the date shown, and the day and hour to show. The level's Tempest Sky shows this moment in the editor.
4The coming weatherThree days of weather at the editor's camera from the day shown: cloud, storm, rain, snow and lightning in bands, the temperature and the wind as lines. Click or drag in it to show that moment.

The time strip

The bottom strip is the moment the level's Tempest Sky shows in the editor, and the weather to come at the editor's camera.

Control What it does
Pause Holds the moment shown.
1x, 60x, 600x Plays the clock: at its own pace, a game minute a second, or ten game minutes a second (watch a storm cross).
Day, Hour The day (since the world began) and the hour to show. Dragging Hour moves the sun.
The bands Three days from the day shown: cloud (grey), storm (red), rain (blue), snow (white) and lightning (yellow) in bands, the temperature (orange) and the wind (green) as lines. Click or drag in them to show that moment.

The moment is the Tempest Sky's preview (its Preview Day and Preview Hour): it changes nothing in play, where the world's own clock runs.

The Overview page

The level's status and its setup:

Line or button What it shows or does
Level The level open in the editor.
Tempest World placed, or not placed: then one is made in play, with the project's default profile.
Tempest Sky placed, or missing: then nothing draws Tempest's sky in this level.
Profile, Look The profile and the look the level uses, or the built-in ones.
Set up this level Adds a Tempest World and a Tempest Sky where they are missing, and turns off the level's own sun, sky light, atmosphere, fog, clouds and sky dome (any mesh drawn as the sky), kept in the level, not deleted. One undo step.
Create a profile Makes a profile asset under /Game/Tempest for the level's Tempest World (or for the project, when the level has no Tempest World). Greyed when the level already has a profile.
Create a look Makes a look asset under /Game/Tempest, starting from the built-in look, for the level's Tempest Sky. Greyed when the sky already has one.

The built-in profile and look are shown as they are on the other pages but can't be changed there: create your own to edit them.

The Time and Sky page

Figure 4. Time and Sky: the profile's calendar and globe above, the look's sun, sky, moon, exposure, fog, weather, clouds and night below.

Above, the profile's Calendar (its seasons and clock) and Sky (its latitude, north and moon). Below, the look's Sun, Sky, Moon, Exposure, Fog, Weather, Clouds and Night: curves and values for how the sky is lit. Chapter 5 explains each.

The Climate and Weather page

Figure 5. Climate and Weather: the profile's weather, its seasonal events this year, and the map of the climates, storms and wind round the camera.

On the left, the profile's Weather (its own Climate, the Regions that lay other climates over it, how the weather moves, and its Seasonal Events) and its Snow Regions; below them, the look's Snow Height, the most lying snow stands on a surface that rises with it (chapter 10). Under them, the seasonal events in the year shown: when each comes, or not this year.

On the right, the map of the weather round the editor's camera at the moment shown:

  • the cloud, white by its cover, red where storms are and blue where it rains or snows;
  • each climate region's outline (with its fade, fainter), numbered, with its climate's name;
  • each storm's rain as a red ring, with its whole track; storms added to the preview in orange;
  • the wind as arrows, longer as it blows harder;
  • the editor's camera (view) and a scale bar.

The mouse wheel zooms and a right drag pans. Zooming out stops at 256 km across: to see further, pan. (Each time the map is drawn it works out every storm in view and its whole track; a view a continent wide would hold so many that the editor would stall.) Drag a region or an orange storm to move it (one undo step each). Click a place to read its weather there: temperature, humidity, pressure, cloud, fog, how far one can see, rain, snow, wind and gusts, and lightning.

The Effects page

Figure 6. Effects: the look's rain, snow, hail, splashes, rain shafts and lightning.

The look's Precipitation: the materials of the rain, snow and hail, the splashes and the rain shafts; the curves that turn a rate of rain or snow into a share of the drops drawn; how fast each kind falls, how large it is and how solid; the box of it round the view; and how near storms hang their shafts. Its Lightning: the bolt's material and width, how near strokes are shown, the flash's light on the world, on the cloud and on the sky, its colour, and whether flashes cast shadows (striking, at the cost of a second shadowing light while they last).

The Sound page

Figure 7. Sound: the volume of each layer of the weather's sound.

The look's Sound: the volume of the whole, the wind, the rain and the thunder.

The Sea page

Figure 8. Sea: the profile's sea, with the tide table from the moment shown.

The profile's Sea: its waves, swell, currents and tides (chapter 8). Under it, the Tide table: the next high and low waters from the moment shown, when and how high (with tides off it says so); and a word on what floats and swims in it (Tempest Buoyancy and Tempest Swimming).

The Shores page

Figure 9. Shores: add a shore over the selected island, bake them, and the level's shores listed.

The level's Tempest Shores, each with its map, its size and cells, and Bake and Select. Add a shore over the selection places a shore over the island whose ground is selected and bakes it; Bake all bakes every shore again (after you change an island). Chapter 9 explains shores.

The Performance page

Figure 10. Performance: each part's tier now and where it comes from, Measure in play, and the tiers and budgets.

The tier each part runs at now (clouds, rain and snow, lightning, the ocean, smoke) and where it comes from: its own setting or the engine's scalability. Measure in play measures what Tempest costs on this machine while the level plays. On the right, the tiers' values and the budgets, saved to DefaultGame.ini. Chapter 14 explains them.

The Checks page

Figure 11. Checks: one note for this level, its tropical climate never snowing at sea level.

Run the checks looks over the level, its profile and its look for what would go wrong in play (it runs each time the page opens), and lists what it finds as errors, warnings and notes. Nothing found means the level is ready. Chapter 15 lists every message and what to do about it.

Time, sun and sky

A Tempest world has a calendar of its own: days, seasons and years, a moon with its phases, and a sun that rises and sets as it would at the world's latitude. This chapter covers the profile's calendar and sky, and the look that lights the scene from them.

The calendar and the clock

The profile's Calendar (Time and Sky page):

Setting What it does As it comes
Days Per Season Game days in each of the four seasons; the year is four times this. 7
Seasons On: the date moves through the seasons. Off: the year holds still, and each climate keeps its own time of year. On
Start Day Of Year The day of the year a new world starts on (0: the first day of spring). 0
Fixed Year Fraction Where the year holds with seasons off: 0 the spring equinox, 0.25 midsummer, 0.5 the autumn equinox, 0.75 midwinter. 0.375
Day Minutes Per Hour Real minutes one game hour takes by day. 2.5 (an hour a game day)
Night Minutes Per Hour Real minutes one game hour takes by night; 0 runs nights at the day's pace. Shorter nights pass quicker. 0
Start Hour The hour a new world starts at. 9

The calendar runs on backwards before the world's first day, so the weather a new world starts with has a past: the snow lying on day one fell in the winter before it.

Where the world is

The profile's Sky:

Setting What it does As it comes
Latitude Degrees north of the equator (negative: south). The sun's path and the length of the days follow from it and the date: long summer days far north, the midnight sun past the Arctic circle, twelve-hour days at the equator. 52
North Yaw The world yaw that points north. East is 90° further. 0
Moon Cycle Days Game days from one new moon to the next. 8
Start Moon Phase The moon's phase on a new world's first day: 0 new, 0.5 full. 0.5

The look

The look lights the scene from the sun's height: each curve in it runs over the sun's height in degrees (below zero is twilight and night), so dawn, noon, dusk and night each take their part of the curve. Make one with Create a look on the Overview page and change it on the Time and Sky page:

Section What it holds
Sun The sun's brightness (lux) and colour temperature over its height, warm and low at dawn and dusk; its size.
Sky The sky light over the sun's height; the night keeps a floor so it stays readable.
Moon The full moon's light and colour (its phase scales it), and the moonless nights.
Exposure The exposure offset and the lowest brightness the eye adapts to, over the sun's height: night stays dark rather than adapting back to day.
Fog Haze Scale: the height fog hides what the weather says one can see (fog, falling and blowing snow, rain, dust), 1 as measured, more or less for taste.
Weather What full overcast or a storm does to the light: how much the sun dims and how large it grows (softening its shadows), how much of its shadow remains, how much the sky light dims, and the exposure's offset.
Clouds The cloud material, the layer's base and depth, the cloud map kept round the view, and how dark the layer's underside is.
Night The sky dome's material, the stars' brightness and twinkle, the moon's disc size, brightness and earthshine, and how far from the equator aurora show.
Figure 12. Dusk over a still lake: the sun, sky and fog from the look's curves over the sun's height.

The night

The night is drawn by Tempest's sky: stars turning about the celestial pole your latitude sets, twinkling more in damp air; a milky-way band; the moon as a disc lit by its phase, with earthshine; and, far north or south on clear nights, aurora curtains.

Indoors

The sky lights the whole level. When the view goes somewhere the sky can't reach (a dungeon, a cave), call Set Enclosed on the Tempest Sky (Blueprint): on that machine the sun, moon, sky light and atmosphere go off and the place's own post process sets the exposure. Call it again with false on coming out. Rain needs no setup indoors: a picture taken from above the view keeps it off roofs and canopies, and the weather's sound drums on the roof and muffles the rest when the listener is under one.

Climates and weather

A world's weather comes from its climates. Each climate says what the weather is like in one kind of place; the profile lays them over the world as regions, and storms are born of them, grow, drift with the wind and die. This chapter covers climates, regions, how the weather moves, the seasonal events, and changing the weather while the game runs.

Climates

A climate is an asset (FDTempestClimate). Start from one of the examples: duplicate it in the Content Browser, rename it, and give it to the profile.

Setting What it does
Mean Celsius, Seasonal Swing Celsius, Daily Swing Celsius The year's mean temperature at sea level, how far the warmest time of year sits above it (and the coldest below), and how much warmer a clear afternoon is than the dawn before it. The air cools with height (Lapse Celsius Per Km in the profile's weather).
Humidity How damp the air is, 0 dry to 1 saturated.
Cloud, Cloud Variation Cloud cover on an ordinary day, and how far days wander from it.
Drizzle Millimetres Per Hour Rain from heavy ordinary cloud, with no storm.
Fog Chance How many still, damp dawns turn foggy.
Dustiness, Dust Color How much dust the land gives up in dry weather (0 green land, 1 a desert's), and its colour on the ground and in a dust storm.
Wind Speed, Gustiness The usual wind at sea level, and how gusty it is.
Storms Per Day Storms born each game day over every 1000 km², by season.
Storm Radius Min/Max Km, Storm Life Min/Max Hours A storm's rain at its height, and how long it lives.
Storm Rain Millimetres Per Hour, Storm Wind Speed, Storm Cooling Celsius A full-strength storm's rain at its heart, the wind it adds at its edge, how much colder the air under it is.
Thunder Chance The share of storms that bring thunder and lightning.
Storm Cloud Tint The colour the climate's storm and heavy overcast clouds take (white leaves them as the sky lights them): the open ocean's storms read slate blue.
Water How this climate's sea looks (chapter 8).

Rain falls as snow when the air is cold enough, as sleet between, and as hail in a thunderstorm's heaviest rain.

Regions

The profile's Climate is the world's own (the open sea, say). Each of its Regions lays another climate over it: a box with a Center (world X and Y, cm), a Half Size Meters, a Yaw, and a Blend Meters over which it fades out past its edge. Later regions lie over earlier ones. Everything about the weather blends across them, so a coast's weather turns into the open sea's over the blend.

Drag a region on the map to move it.

How the weather moves

The profile's Weather:

Setting What it does As it comes
Prevailing From Degrees The direction the prevailing wind blows from, clockwise from north. 225 (south-west)
Wander Degrees How far the wind's direction wanders either side of it. 60
Change Hours Game hours between the steering wind's changes; it eases from one to the next. 6
Storm Drift Km Per Hour How far storms drift in a game hour with the steering wind at its usual strength. 1.5
Storm Cell Km, Storm Slot Hours Storms are born in squares this wide, at most one in a square each birth slot. 16, 3
Max Storm Radius Km, Max Storm Life Hours No storm grows wider or lives longer than these, whatever its climate says. 10, 24
Sea Level Z The height of the sea in the world (cm). The air cools with height above it. 0
Lapse Celsius Per Km How much colder the air is for each kilometre above the sea. 6.5

Each storm is born of the climate where it starts, grows to its height and dies away as it drifts. Its rain is heaviest at its heart; its wind rises toward its edge; a thunderstorm's lightning strikes most often near its heart. How far one can see is part of the weather too: fog, falling snow, rain and snow the wind lifts close the distance in, down to a few metres in a blizzard.

Figure 13. Heavy snow in a strong wind: the flakes tossed by its gusts and the distance closing in.

Seasonal events

A world's own seasons: a festival's snow, the autumn gales, a monsoon. Each entry of the profile's Seasonal Events (they need seasons on):

Setting What it does
Name Its name, as its calendar events carry it.
Season, Start Day, Length Days The season it comes in, the day of that season it begins, and how long it lasts (it may run on into the next season).
Ease Days How many days it takes to ease in at its start and out at its end.
Chance Per Year The share of years it comes, each year drawn from the world's seed: 1 every year.
Whole World, or its region Over the whole world, or over a box (centre, half size, yaw, blend) as a climate's region.
Storm Frequency, Severity While it is on, storms are born this many times as often, and this many times as strong, where it is.
Hold Weather, Hold, Hold Share It eases the weather part of the way (or all the way) to a held weather while it is on.

Each begins and ends as a calendar event (chapter 12), and the Climate and Weather page lists when they come in the year shown.

Changing the weather in play

On the server, the subsystem changes the weather from now on (each change goes into the log, so every machine and every saved game agrees):

Function What it does
Hold Weather (Hold, Fade Game Seconds) The weather everywhere eases to a held weather (cloud, rain, snow, fog, wind, lightning, and a murk of its own) and stays there until released.
Release Weather (Fade Game Seconds) The weather eases back to its own.
Add Storm (Location, Radius Km, Strength, Life Hours, In Game Seconds, Thunder) A storm born at a place, now or later, that drifts with the wind like any other.
Set Storm Frequency (Multiplier) Storms are born this many times as often from now on.
Set Severity (Multiplier) Storms are this many times as strong from now on, easing in over half a game hour.

The same from the console, on the server, while you work:

Command What it does
tempest.Hold <rain mm/h> [snow mm/h] [lightning a minute] [cloud 0-1] [wind m/s] [ease game seconds] [murk m] Holds the weather everywhere. The murk is the visibility the hold alone would leave: tempest.Hold 0 8 0 1 12 0 5 is heavy snow in a strong wind with 5 m to see.
tempest.Release [ease game seconds] Gives the weather back.
tempest.Time <hour> Sets the hour of the current day.

The weather on screen and heard

The Tempest Sky draws the weather at the view: the clouds overhead, the rain, snow and hail falling round the camera, the rain shafts under distant storms, lightning, and the weather's sound. This chapter covers what it draws and the settings players may want.

Clouds

The clouds are the weather's. A map of the weather's cover, storms and precipitation round the view drives Tempest's own volumetric cloud material: scattered clouds and open sky at partial cover, a bright grey deck when overcast, towers over storms, and their shadows on the ground. A climate's Storm Cloud Tint colours its storms and heavy overcast.

Rain, snow, sleet and hail

They fall round the view from the weather there. The GPU moves every drop and flake; nothing is done for them on the CPU. A picture taken from above keeps them off roofs, canopies and overhangs, and sets the splashes where they land. Snowflakes are clumps of crystals, turning and tumbling and tossed by the gusts; heavy snow is several times denser than a steady fall. Rain shafts hang under the storms in sight.

Lightning

Each thunderstorm strikes on a schedule drawn from the world's seed, most often at its heart, so every machine sees the same strokes in the same places. On screen: a branching bolt (drawn from the stroke's seed: the same bolt everywhere), a flash on the world, the cloud glowing round it, the sky brightening toward it, and the rain catching the light. On the server a ground stroke near a player raises an event with what it hit (chapter 12).

The sound

The weather is heard, synthesised by Tempest with no recordings: wind that swells with its gusts and rises in tone as it strengthens; rain's hiss and drops by its rate, drumming on the roof when the listener is under one, with the rest muffled; and the thunder of every stroke shown, a crack near and a rolling rumble far, arriving at its distance over the speed of sound. The Tempest Sky's Sound component plays it in a game; each layer's volume is on the Sound page.

Settings for players

Console variable What it does
tempest.Lightning.Flash 0 A steady, dim glow instead of the flash's flicker, for players sensitive to flashing light.
tempest.Precipitation.Density (0 to 1) Thins the rain and snow.

Set them from your game's options (Execute Console Command in Blueprint).

The ocean

Tempest's sea is the same on every machine and on a server with no GPU: the waves are fixed by the world's seed, the wind at each place raises them, and storms send swell ahead of them. The Tempest Ocean draws exactly that sea, out past the horizon, with foam, spray, ripples and its underwater view, and boats float on it with the Tempest Buoyancy component.

Placing it

Place one Tempest Ocean in the level (Window›Place Actors, search for Tempest Ocean). It draws the sea round the view at the profile's sea level, out at least 40 km, rising and falling with the tide; where you place it doesn't matter. It casts no shadow and has no collision: whatever floats asks Tempest's queries.

Figure 14. A gale over the open sea from a cliff: the long crests running with the wind, the chop crossing them, whitecaps breaking and their foam eroding to lace along the wind.

The sea

The profile's Sea (the Sea page):

Setting What it does As it comes
Bands, Directions Wavelength bands from the longest to the shortest, each with waves round the circle. 16, 8
Longest Wavelength Meters, Shortest Wavelength Meters The longest swell and the shortest wave the sea's sum carries (finer chop is drawn). 600, 1.5
Fetch Km The open water the wind blows over to raise its sea: shorter raises a smaller, shorter sea. 300
Peak Sharpness, Spread How peaked the wind sea's spectrum is, and how closely its waves run with the wind at its peak: waves longer or shorter than the peak's fan out wider, the short chop widest. 3.3, 3.5
Choppiness, Storm Choppiness How peaked the crests are (never folding over), rising to Storm Choppiness in a 25 m/s gale. 0.6, 2.2
Detail Chop How much fine chop the drawn detail lays over the shortest waves. 0.35
Swell Height Meters, Swell Period Seconds, Swell Heading Degrees An old swell from far-off weather, present even in a calm. 0.5, 11, 35
Height Scale Scales every wave: a dial for gameplay (storms that stay sailable). 1
Follow Hours Game hours the sea takes to follow the wind: a gale's sea builds over this and dies away as slowly. 3
Wind Drift The share of the wind's speed the surface water drifts with. 0.03
Currents Currents through the world's waters (below). none
Tides, Tide Range Meters The tide, and its spring range (below). off, 1.5

Storms send swell ahead of them: the long swell arrives first, so a rising swell tells of a storm before it comes.

How it looks

Each climate's Water is its sea's look: how the water absorbs and scatters light (its colour and clarity), its roughness and foam colour, how readily it foams, how brightly its crests glow, and how much storms cloud it. The look blends across regions with the rest of the climate, and the weather at the view stirs it: a gale's breaking waves and a downpour cloud and darken it.

The rest is drawn from the sea itself:

  • Whitecaps where the waves break, as much of the sea as the wind breaks, from a few in a fresh breeze to a tenth of the sea in a gale. Fresh whitewater is bright and dense with broken edges; the foam it leaves drifts with the water as one web of strands, dimmer and drawn out along the wind, its holes widening as it ages until only filaments are left, then nothing. Foam never fades: it erodes.
  • Spray torn off breaking crests from 9 m/s of wind, in full from 20 m/s.
  • Light through thin crests against a low sun.
  • Fine detail and ripples that the wind raises, and the rings of raindrops on the water.
Figure 15. A gale's foam at eye height: fresh whitewater solid and bright, the foam it leaves a web of strands drawn out along the wind, thinning to filaments.

Under the water

When the view goes under, the surface is seen from below (the sky through Snell's window), the water fogs and colours by depth, light shafts and caustics move below the surface, bubbles burst round the view on going under, and drops run down the lens on coming up. Nothing of it costs anything above the water.

Figure 16. Under the water at dusk: the surface from below, the light shafts and the sun through Snell's window.

The sea against things

Anything standing in the water (a rock, a pillar, a pier's piles, a moored hull) meets the sea with no setup: the water hugs it with a line of foam, washes up its face, breaks against it where the waves drive in, throws spray up it, and leaves foam drifting off it. Tempest finds them in the scene's distance field, so the project needs Generate Mesh Distance Fields on (as Lumen does).

Figure 17. The sea against things in a gale, with no setup: foam hugging what stands in the water and washing up its weather side.

Floating: Tempest Buoyancy

Add a Tempest Buoyancy component to a boat, a crate or a raft, and it floats from its own collision, cut into cells, each held up by the water it displaces and dragged through the water and the current.

Setting What it does
Mode Physics pushes a simulating body (the engine's physics replication keeps machines in step). Presentation keeps a kinematic owner level, for steering and collision, while its visuals heave, pitch and roll.
Hull Component The hull: a primitive component by name; none, the root.
Pontoons Spheres that float in place of the hull's collision.
Cell Size The size of the hull's cells: smaller is truer and dearer.
Water The water's density and its drag; Drag Scale sets the drag along the hull, across it and up and down (a keel makes the drag across about 8 times the drag along).
Sails Sails the weather's wind pushes (Physics mode): each a place, a facing, an area and a set (0 furled, 1 full), which your game trims and reefs.
Full Detail Meters Farther than this from every player's view, three points stand for the hull.
Moved Component, Mass, Max Tilt Presentation: the component the sea moves, the mass riding the water, and the most it tips.

A 4 × 1.5 m boat in 25 cm cells costs about 0.12 ms a physics step.

Swimming: Tempest Swimming

Players swim in Tempest's water as soon as the plugin is on: each player's character is given a Tempest Swimming component (Project Settings›Plugins›Flying Donkey Tempest, Players Swim; turn it off when your game swims its own way). Add it to any other character yourself, or call Add Swimming To.

Chest deep in the sea or a lake, the character swims:

Key What it does
its own move keys (W A S D) Swim, the way the camera faces.
Shift Swim faster.
Space Rise; it stops at the surface.
C Dive.

Let go, and it floats with its head and shoulders out, riding the waves; a diver comes back up. Where the water shallows it walks out on its feet, and swimming into a ledge (a quay, a rock, a boat's side) up to 1.5 m over the water it pulls itself out onto it. Under a pier or a hull the water goes on; a cave or a cellar under the water's level is dry inside (its roof over a metre under the surface, a floor to stand on).

Setting What it does
Swim Speed, Fast Swim Speed How fast it swims, and with the fast key (300 and 600 cm/s).
Swim Depth, Wade Depth How deep the water lifts the body off its feet, and how shallow before it stands again, as shares of its height (0.6 and 0.45).
Float Depth How far under the surface its middle floats, as a share of its half height (0.5: head and shoulders out).
Climb Out Height The highest ledge over the water it pulls itself out onto (150 cm; 0: never).
Water Braking How quickly the water stops a body that falls or runs in.
Read Keys, Up Key, Down Key, Fast Key The keys read on the owning player's machine (Space, C, Left Shift), whatever input system the game uses. Turn Read Keys off and call Set Swim Input from your own bindings (a gamepad, AI).
Add Wake Gives the character a Tempest Swimmer too: its wake, strokes and splashes.

It swims through the character's own movement component (in its flying mode, at the speeds above) and gives back what it changed when the swim ends. Only a character walking or falling takes to the water: one whose movement is switched off, or in a movement of your game's own, is left alone. In multiplayer it runs on the server and on the owning player's machine, and the fast key is sent to the server. No animations come with it: the character keeps its own.

ab
Figure 18. (a) Floating in the sea with Tempest Swimming: head and shoulders out, riding the waves. (b) Swum to a dock 50 cm over the water and pulled out onto it.

Wakes, swimmers, splashes and ripples

These are drawn only: the queries and buoyancy never see them, and a dedicated server does nothing for them.

Add What it does
Tempest Wake component on a boat (or Add Wake To) Along the hull's keel (Hull Length, Hull Beam, Draft): as the boat moves through the water it raises the wake real water makes (the bow wave, the waves behind and the V of waves at about 19.5° to its track) and churns white water behind its stern that lingers for half a minute. Strength scales it for taste.
Tempest Swimmer component (or Add Swimmer To) A swimmer's small wake, strokes and splashes (Tempest Swimming adds one).
Splash (Location, Radius, Speed) on the ripples subsystem Anything striking the water: its ring, white water round it and a burst of drops.
Add Impulse (Location, Radius, Strength) Rings spreading over the water from a point, as real water's do.
Figure 19. A small boat at 4 m/s, from above: the white water it churns behind its stern lingers along its track.

Currents, calm zones and tides

Currents in the profile's sea are boxes where the water flows (a strait, a race): a centre, half a length and width, the way it flows, a blend, a speed, and a Tidal Speed that runs with the tide, along its way while the tide rises and against it while it falls. Buoyancy, wakes and the foam's drift all take them.

A Tempest Calm Zone actor shelters a harbour: inside its radius the open sea's waves fall to a share of themselves (Floor), coming back over its falloff.

Tides (on in the profile's sea): the sea rises and falls with the moon and the sun twice a lunar day, springs at new and full moon, neaps at the quarters. Only Tempest's sea follows the tide, so water a level draws for itself stays where it is: tides are off unless you want them. The Sea page shows the tide table; on a coast with a Tempest Shore the beach the tide leaves is wet (chapter 10).

The sea in a material of your own

The sea's wave function is MF_TempestSea, for a material that needs the waves (a hull's waterline, foam of your own). From C++, call Use on the ocean subsystem (UFDTempestOceanSubsystem) while you draw, and give your material instance its parameters each frame with SetMaterialParameters. In the material, feed the function (Absolute World Position − TempestSeaOrigin) ÷ 100, and a Previous Frame Switch for its Previous input. It gives the displacement in metres and the normal, the same as the Tempest Ocean draws.

Shores and lakes

Out at sea the waves run free. Near an island the sea feels the bottom: its waves slow, shorten, turn to meet the beach and break as surf, and a harbour behind its headlands lies calm. A Tempest Shore gives an island that. Lakes are their own water, with waves from the wind across them, and ice in winter.

Shores

A Tempest Shore holds a shore map: a grid over an island and its shallows of the depth, the distance to the shoreline, the surf's timing, and how open each place is to the sea from every direction. Inside it, the sea's waves fade where the water grows too shallow for them and where land shelters the place; their energy goes into surf that grows as the water shallows, steepens, and breaks where it reaches about four fifths of the depth. Each wave sends a sheet of water up the beach that drains back slowly.

Each beach breaks its surf its own way, by its slope against the steepness of the sea arriving (the surf similarity number). A gentle beach's waves spill: the crest leans forward as it nears breaking and its foam runs down the face, with spray off the lip. A steeper beach's plunge: the crest pitches forward hardest and throws a lip that curls over into a tube and crashes down ahead of the wave in a burst of foam and spray. A steep shore's surge: the wave hardly breaks and runs up the shore as swell. The same beach can do all three as the sea changes, and Get Surf tells which it is doing where.

The plunging lips are drawn within 300 m of the view, on every crest that plunges there (tempest.Ocean.Breakers 2, the default), on the nearest crest only (1) or not at all (0). They are a drawn thing only: the water's height, the surf's push and everything the queries know are the same with them off, so a server never runs them.

Figure 20. A plunging breaker on a steep reef, from beside the breaking line: the crest comes in clean, the lip pitches over it as a thin green sheet and crashes into whitewater ahead.
  1. Select the island's ground in the level: its landscape, or its meshes.
  2. On the Shores page press Add a shore over the selection. A shore is placed over it, reaching a quarter of the island's size past it each way (at least 200 m) to open water, with its own map asset in a ShoreMaps folder beside the level, and baked. A 2 km island in 2 m cells bakes in about a second.
  3. Save the level and the new map asset.
  4. After changing the island, bake again: Bake on its row, or Bake all.
Figure 21. Surf on a gentle beach in a gale, from a Tempest Shore: the waves slowing, steepening and spilling as the water shallows, the whitewater grading to froth at its edges.

The shore's settings:

Setting What it does As it comes
Map The shore map asset it bakes into and uses.
Size Meters The square a bake covers, centred on the actor. 1024
Cell Meters The map's cells: 2 to 4 m suits the surf's crests and a harbour's mouth. 2
Exposure Step How often (in cells) the openness to the sea is kept. 4
Open Depth Meters How deep the sea is taken to be where the bake finds no ground below. 200

The bake traces the world's ground straight down at each cell, from the profile's sea level. Bake it out to water deep enough for the longest swell (about 120 m deep for a 16 s swell, 70 m for 12 s), or the map's edge shows in the waves: the checks warn when it would.

The tide's wet beach

With tides on, the beach the tide leaves is wet: the ground covered in the past three hours, drying from the top down, with a line between the damp and the dry moving down the beach as it dries. MF_TempestWet draws it; Get Wetness knows it.

Figure 22. The tide going out: the beach it leaves is wet, drying from the top.

Lakes

Place a Tempest Lake for each lake. Its shore is a closed spline (a round pond to start from: edit its points), and its water's level is where the actor stands.

Setting What it does
Shore The closed loop round the water.
Look How its water looks (a freshwater lake's by default: darker and browner than the sea), stirred by the weather at the lake.
Wave Scale Scales its waves.
Material The material drawing it (M_TempestLake).
Spacing Meters The mesh's spacing; 0 picks it from the lake's size.

Its waves come from the wind across it, limited by the lake's length along the wind: a pond stays glassy and a long lake in a gale runs a short chop. Inside its shore the water queries answer with the lake's water, so buoyancy works on it as on the sea. Call Rebuild after changing its shore while the game runs.

Ice grows from the weather at the lake over the past months, as lake ice is measured: once the water has given up its warmth, it thickens with the frost (about 27 cm in ten days at −10 °C), slower under snow, and thaws above freezing. Thin ice closes in from the shore and covers the whole lake from 5 cm; from 10 cm it bears a person. The lake draws it by its thickness: new ice dark with the water seen through it, thickening to white. Get Ice Thickness tells how thick it is anywhere.

Figure 23. A lake frozen thick enough to walk on.

Snow, wet ground, frost and dust

The ground has its weather too: snow that lies, takes footprints and melts; rain that wets surfaces, fills puddles and dries; frost after a clear, still night, black ice, frozen puddles; and dust settling in dry weather. The game knows all of it at any place, a server too. Your materials draw it by calling three material functions.

What the game knows

Each is worked out from the weather at the place over the past days or months, so every machine agrees whenever it asks:

Function What it gives
Get Snow Depth The snow lying at a place, cm: fresh snow settling and melting by degree-days, faster under rain.
Get Wetness, Get Rain Wetness How wet open ground is, 0 dry to 1 wet (with the tide's wet beach, or the rain's alone).
Get Puddle Fill How full the hollows are with standing water.
Get Frost, Get Ground Ice, Get Puddle Ice Hoar frost, black ice, and how frozen the puddles are.
Get Dust How dusty open ground is.

None lies under snow. Snow Regions in the profile (Climate and Weather page) keep places snowy whatever the weather: a box with a depth, fading past its edge, for a Nordic island or a mountain pass.

Drawing it: the material functions

Three functions in Surfaces, called in your own materials. Each takes the surface as it would be without the weather and gives it back with the weather on it:

Function Inputs Outputs
MF_TempestDust Position, WorldNormal, BaseColor, Roughness, TangentNormal BaseColor, Roughness, Normal, Amount
MF_TempestWet the same, and Porosity (0 metal or glazed stone, 1 soil) BaseColor, Roughness, Normal, Wet, Puddle, Ice, Frost
MF_TempestSnow Position, WorldNormal, BaseColor, Roughness, TangentNormal, and Magnitude (for Displacement) BaseColor, Roughness, Normal, Amount, Pressed, Height, Displacement
  1. Open your material. Add a MaterialFunctionCall for MF_TempestWet (or drag the function in from the Content Browser).
  2. Feed it Absolute World Position (Position), Vertex Normal WS (WorldNormal), and what you would have given the material's own pins: its colour, roughness and normal.
  3. Connect its BaseColor, Roughness and Normal outputs to the material's.
  4. To chain them, feed one's outputs into the next: dust, then wet, then snow, as M_TempestWetDemo does.

The Tempest Sky fills MPC_TempestSurfaces with the weather at the view each frame; the functions read it, so there is nothing to wire. Everything lies only where the sky can reach: a picture taken from above keeps it off what lies under a roof or a canopy.

Nanite meshes

A material of your own calling these functions on a Nanite mesh needs Used with Nanite ticked in its details, as any material on a Nanite mesh does. Without it the game draws the engine's default material there. The demo materials have it.

Snow

Snow lies on gentle slopes, in drifting patches while thin and whole by about 8 cm; fresh snow is bright and rough, older snow greyer and glazed.

Figure 24. Snow lying 30 cm deep, drawn with MF_TempestSnow on every surface.

Snow with height

On a Nanite mesh the snow can raise the surface itself, so that feet and legs stand in it and a trail through deep snow is a real trench. M_TempestSnowDemo does this; in a material of your own:

  1. In the material's details, under Nanite, tick Enable Tessellation, and set Displacement's Center to 0 and its Magnitude to 40.
  2. Give MF_TempestSnow's Magnitude input the same 40, and connect its Displacement output to the material's Displacement.
  3. Use the material on a Nanite mesh (a Nanite landscape too).

The magnitude is in the mesh's own units, since Nanite displaces before the mesh's scale: 40 lets a mesh at scale 1 rise 40 cm, and a landscape at scale 100 needs 0.4 (in both places). Collision stays on the ground underneath, so a character's legs sink into the snow.

The look's Snow Height (30 cm; on the Climate and Weather page) is the most the snow stands: deeper snow looks that deep, and footprints and trails press down by their share of it. Keep the material's magnitude a little over it, for the snow a trench heaps up beside it. 0 keeps the snow flat everywhere.

Figure 25. Snow 30 cm high on a tessellated Nanite floor (M_TempestSnowDemo): the legs stand in it to the shin, in boot-shaped postholes.

Tessellation costs about 0.45 ms at 1920 × 1080 on an RTX 4090 with a snow floor filling the view (Nanite's raster and the shadows), the same with no snow lying, since the mesh is tessellated either way; r.Nanite.DicingRate 4 brings it to about 0.3 ms. A mesh without Nanite can take Height (cm) instead, as World Position Offset along its vertex normal, where it has the vertices for it.

Footprints and trails

Put a Tempest Snow Prints component on a character (or call Add Snow Prints To). In shallow snow each foot leaves a boot print where it comes to rest, pointing from its ankle toward its toes (the sockets foot_l, foot_r, ball_l and ball_r by default: set Feet for others; hooves and paws can be rounds). In snow deeper than Deep Cm (25 cm, about a shin) each boot plunges in instead: a posthole the boot's shape, drawn out where the toe dragged free, its wall ragged and the broken snow heaped round it (rounds for hooves and paws). The body ploughs a trench its capsule's width between them through the top of the snow, its walls ragged, its floor rising and falling, and the snow it pushed aside heaped along it. Fresh snowfall fills them all, the wind drifts them full, and they fade over a few minutes. From Blueprint, Add Footprint, Add Round, Add Trench and Add Posthole press the snow directly.

ab
Figure 26. (a) Boot prints in shallow snow. (b) Deep snow with height: the legs stand in it, a boot's posthole at each step and the trench the body ploughs between them, its walls ragged and the snow it pushed aside heaped along it.

Prints are drawn only; nothing is done for them on a dedicated server. tempest.Snow.Trails 0 turns them off.

Wet ground and puddles

Rain wets a surface's film, darker by its porosity and glossier. The ground soaks up what it can; what it can't runs into the hollows and stands there as puddles, the deepest first, that last hours after a downpour. They dry as water does: within the hour after a shower in sun and a breeze, slowly through a still, humid night. Standing water is a dark mirror with the raindrops' rings.

ab
Figure 27. (a) In a shower: the ground darkened and glossy, the puddles filling in its hollows. (b) After it, in sun: the ground drying, the puddles lasting longer.

Frost and ice

On a clear, still night a surface radiates its warmth to the sky and lies a few degrees under the air: near freezing it frosts over by dawn, unless cloud, a breeze or dry air keep the frost off, and the morning sun takes it. A wet film freezes within the hour on ground below freezing (black ice, a darker gloss), rain on frozen ground freezes as it lands, and puddles skin over more slowly.

ab
Figure 28. (a) Dawn after rain and a clear, still night: hoar frost, the puddles frozen and the ground glazed. (b) The same ground later in the morning, as the sun thaws it.

Dust

A climate's Dustiness settles dust on dry surfaces (a desert's ground wholly dusted in a day and a half) and rain washes it off. From 8 m/s the wind lifts it: a dust storm, with a few hundred metres to see at 15 m/s and tens in a gale, the fog taking the dust's colour.

Figure 29. A dust storm: a gale lifting the dust a dry climate laid, the fog taking its colour.

Smoke and the air

Smoke from a campfire, a chimney or a hot spring rises with its heat and goes where the wind takes it, slower near the ground, and swirls where someone walks through it.

Smoke

Put a Tempest Smoke component where smoke leaves (or call Add Smoke To). Choose its Preset: Campfire, Chimney, Steam, Mist, or Custom (puffs a second, how fast they rise and how long the heat lasts, size and growth, life, colour, thickness, spread). Above Ground is a chimney's height, since the wind a puff meets is reckoned from the ground. Smoking turns it on and off.

Figure 30. Smoke from a chimney carried off by the wind, lit by a low sun.

Every puff in view lives in one pool on the GPU, stepped in one pass and drawn in one draw call, however many sources there are; the nearest 32 sources within 150 m of the view give off smoke. Nothing is done per puff on the CPU, and nothing on a dedicated server.

The air near the ground

A Tempest Air Push component on a character, a horse or a cart (or Add Air Push To) drags the air along its motion and sheds eddies that drift downwind, so smoke it passes through swirls and trails after it. The air's flow is off at the Low tier.

Gameplay: reading the weather

Everything the window shows, the game can ask: the weather anywhere, now or at any time, the sea's height, the snow lying, the coming storms. This chapter lists the questions, the events, and how saving, multiplayer and servers split into zones work.

Asking

The questions are on the Tempest subsystem: in a Blueprint, right-click and search for Tempest Subsystem to get it, then drag from it. In C++, GetWorld()->GetSubsystem<UFDTempestSubsystem>().

Function What it gives
Get Weather (Location) The weather there now: temperature, humidity, pressure, cloud, fog, visibility, rain, snow, wind, storm, lightning.
Get Weather At (Location, Game Seconds) The same at any time, past or coming.
Get Wind (Location) The wind there now with its gust, m/s in world X and Y.
Get Forecast (Location, Hours, Step Minutes) The coming weather, step by step.
Get Hours Until Storm (Location, Within Hours, Strength) A storm warning: game hours until a storm reaches the place, negative when none comes.
Get Storms Near (Location, Radius Km) The storms whose reach comes near.
Get Date, Get Game Seconds, Get Daylight The date, the clock, and 1 in full day to 0 in full night.
Get Sun, Get Moon, Get Moon Phase, Get Sun Direction Where the sun and moon are.
Get Sea Height, Get Sea Normal, Get Sea Velocity, Get Sea Current The sea's surface over a place, and how its water moves.
Get Water Level, Is Underwater The level of the water at a place (a lake's inside its shore), and whether a point is under it.
Get Sea Report The sea as a sailor reports it: wave height, period, heading, the storms' swell, the current.
Get Surf Inside a shore map: the depth, the surf's height and whether it breaks, how it breaks (spilling, plunging or surging, with its surf similarity number), the run-up, and its push on a swimmer or a small boat.
Get Tide Table (Hours) Each high and low water over the coming hours.
Get Snow Depth, Get Wetness, Get Puddle Fill, Get Frost, Get Ground Ice, Get Dust, Get Ice Thickness The ground's weather (chapter 10) and a lake's ice.
Get Seasonal Events (Location) The seasonal events on at a place now, and how far on each is.

Events

Event When
On Lightning Strike A stroke to the ground near a player's pawn, or near an actor you watch (Add Strike Watcher: a ship, a village, a tall tree): the stroke and what it hit. On the server for gameplay (fire, damage), on clients for their own effects. Trace Strike finds where any stroke meets the world.
On Calendar Event Sunrise, sunset, a new day, season or year, a new or full moon, and each seasonal event's beginning and end, as each machine's clock passes it. When the clock jumps on (a sleep), only the last two days' are raised, and none when it is set back.

Time

On the server: Set Time (game seconds since the world began: sleeping through the night is Set Time to the next morning) and Set Paused.

Saving

Capture Save gives the clock, the seed and the change log; Restore Save (on the server) brings them back. Store it in your save game, and the weather, the snow lying, the sea and the tides all come back as they were.

Multiplayer

The Tempest World replicates the clock and the change log; there is nothing to set up. Change the weather and the time on the server: the functions that change them return false on a client. A client works out the weather itself, the same as the server's.

Servers split into zones

A world across several servers shows one sky, one weather and one sea, since everything is a function of the profile, the seed, the clock and the change log:

  • lay each zone's level at its true place in one world, on the same profile;
  • give every zone the same seed (the project's Fixed Seed, or the seed in a shared save) and the same clock: Use Shared Clock (Epoch Utc, Game Seconds At Epoch) runs a server's clock from real (UTC) time, so every zone keeps the same time and its waves the same phase;
  • send each change a zone makes (On Override Added) to the zones it reaches (Override Reaches, with each zone's bounds), and there call Receive Override: it keeps the change's own time and takes it once;
  • shore maps and lakes on a border go in both zones' levels.

The network between servers is your game's own. Two zones side by side show the same weather, sea, tide, snow and wet ground all along their border.

Cutscenes

A cutscene can direct the weather and the time: place a Tempest Director and key its weather and its day and hour in a Level Sequence.

  1. Place a Tempest Director in the level (Window›Place Actors, search for Tempest Director).
  2. Add it to your Level Sequence (drag it from the Outliner onto the Sequencer).
  3. Add tracks for its properties and key them: Direct Weather on for the scene's length, then Cloud, Rain, Snow, Fog, Wind Speed and Lightning; Direct Time with Day and Hour.
  4. Scrub the sequence: the level's Tempest Sky shows the scene in the editor.

While Direct Weather is keyed on, the weather everywhere is the director's: the sky, the sea (it follows the directed wind) and lightning, on every machine. Nothing enters the change log until it is keyed off. Then, with Keep After on, the directed weather stays as a held weather, so the world agrees with the scene afterwards; with it off, the weather is given back. While Direct Time is on, the clock is set to its day and hour whenever they change, and runs on between keys.

Call Strike from an event track for a stroke of lightning a given distance ahead of the view: it is logged once, so every machine sees the same bolt.

From code: Set Directed Weather and End Directed Weather on the subsystem.

Performance and quality

Clouds, rain and snow, lightning, the ocean and smoke each run at their own quality tier, Low to Epic, and Tempest can measure what it costs on any machine.

Tiers

Each part follows the engine's scalability (Effects quality for clouds, rain, snow and smoke; Shading for the ocean; Shadows for lightning) unless set by its console variable, 0 (Low) to 3 (Epic):

Console variable Part
tempest.Quality.Clouds The clouds and their shadows.
tempest.Quality.Precipitation Rain, snow, hail and splashes.
tempest.Quality.Lightning Bolts, the flash and the cloud's glow.
tempest.Quality.Ocean The ocean's mesh, its foam and ripples.
tempest.Quality.Smoke The smoke pool and the air's flow.

Epic is the full look. Lower tiers trace the clouds with fewer samples, draw fewer drops and fewer puffs of smoke, take the roof picture smaller and less often, and lay the ocean's mesh coarser; Low also drops cloud shadows, rain shafts, the cloud glow, the sea's fine detail and the air's flow. The tiers' values are on the Performance page and in the project settings.

Measuring

Press Measure in play on the Performance page while the level plays, or type tempest.Measure. Keep the view still: the Tempest Sky shows, in turn, broken cloud, the same with the sky hidden, overcast, a storm, snow, and the sea shown and hidden, for about seven seconds each, and works out each part's cost from the differences, set against its budget. Nothing enters the world's change log, and everything is put back after. stat Tempest shows Tempest's game-thread time, the sky's parts each on its own line. Measures in the editor's play session run higher than in a game, since the editor's own work is in the frame.

What it costs

Measured in a game at 1920 × 1080 on an RTX 4090 (Lumen, virtual shadow maps), milliseconds a frame:

Tier Sky and clouds A storm Snow The sea, drawn The sea's maps and foam Game thread
Epic 0.89 0.09 0.11 0.63 0.27 0.16
High 0.53 0.10 0.08 0.65 0.17 0.16
Medium 0.38 0.13 0.10 0.68 0.10 0.17
Low 0.29 0.11 0.14 0.61 0.07 0.16

Smoke costs about 0.1 to 0.2 ms however many sources there are; under the water about 0.2 to 0.3 ms more; a lake filling the view about 0.2 ms; a shore map in view about 0.25 ms more of the sea's maps; snow with height on a Nanite floor filling the view about 0.45 ms, snow or none (chapter 10). Differences under about 0.05 ms are within the noise.

For pictures and profiling

Console variable What it does
tempest.Ocean.Shores 0 Draws the open sea everywhere (the queries keep the shores).
tempest.Ocean.Spray 0, tempest.Ocean.Obstacles 0 No spray; no sea against things.
tempest.Ocean.Foam, tempest.Ocean.Ripples, tempest.Ocean.Detail 1 forces the foam map, the ripples or the fine detail on, 0 off.
tempest.Ocean.Underwater 0 No underwater view.
tempest.Precipitation.Cover 0 No roof picture: rain and snow fall through roofs.
tempest.Sky.Present 0 The sky stops updating its lights, exposure and fog.

Every check's message

The Checks page lists what would go wrong in play. Here is every message it can give, and what to do.

The level

Message What to do
No Tempest World is placed: one is made in play with the project's default profile. (note) Nothing, if the project's default profile suits the level. To give the level its own, press Set up this level and set its profile.
More than one Tempest World: only one keeps the clock. (error) Delete all but one.
No Tempest Sky: nothing draws Tempest's sky, clouds or weather in this level. (warning) Press Set up this level.
More than one Tempest Sky: each lights the level. (error) Delete all but one.
The level's own … is still on beside the Tempest Sky, so there are two. (warning) Press Set up this level: it turns the level's own sun, sky light, atmosphere, fog or clouds off.
The project's default profile … is missing. (error) Set Default Profile again in Project Settings › Plugins › Flying Donkey Tempest (the asset was moved or deleted).

Climates and weather

Message What to do
Region N has no climate: it changes nothing. (warning) Give the region a climate, or remove it.
Region N has no size: give it a half size above zero. (error) Set its Half Size Meters.
…: its smallest storms are larger than its largest. (error) In that climate, make Storm Radius Min Km no larger than Max.
…: its shortest storms live longer than its longest. (error) Make Storm Life Min Hours no longer than Max.
…: storms up to … km are capped at the weather's largest storm. (warning) Raise the profile's Max Storm Radius Km, or lower the climate's.
…: storms living … hours are cut short at the weather's longest. (warning) Raise Max Storm Life Hours, or lower the climate's.
… never snows at sea level: even its coldest nights stay above freezing. (note) Nothing, for a warm climate. Its snow can still fall on high ground, where the air is colder.
… never rains at sea level: it stays below freezing all year. (note) Nothing, for a polar climate.
… has no storms: only the day's own cloud, drizzle and fog. (note) Give it Storms Per Day, if it should have storms.

The look

Message What to do
The look has no … material: they are not drawn. (note) Nothing, if you meant it (no rain shafts, say). Otherwise set the material in the look.
The look's … material … is missing. (error) Set it again: the material was moved or deleted.

Shores

Message What to do
Tempest Shore "…" has no shore map: it gives the sea nothing. (error) Give it a map asset and bake it (Add a shore over the selection does both).
Tempest Shores "…" and "…" share the map …: each bake overwrites the other's. (warning) Give each its own map.
Tempest Shore "…"'s map … isn't baked. (warning) Bake it.
Tempest Shore "…": its map's edge stands in water about … m deep, where the profile's … s swell feels the bottom. (warning) Raise its Size Meters so it reaches deeper water, and bake again.
Tempest Shore "…": its map's cells of … m are coarse. (note) Bake it in 2 to 4 m cells.
Tempest Shore "…": its shelter is kept every … m, coarse for a harbour's mouth. (note) Lower its Exposure Step or its cells, so the shelter is kept every 16 m or finer.
"…" reaches the sea outside every shore map: no surf there. (warning) Place a shore over that island (select its ground, Add a shore over the selection).

Tips

When something looks wrong

What you see Why, and what to do
Two suns, or the sky far too bright The level's own sky is still on beside Tempest's. Press Set up this level.
The sea doesn't rise in a gale The sea takes Follow Hours of game time to follow the wind. Wait, or jump the clock on.
A straight edge in the waves near an island The shore map ends in shallow water. Bake it over a wider square (the checks say so).
A material draws grey on a Nanite mesh It calls Tempest's surface functions without Used with Nanite. Tick it.
No foam against rocks Generate Mesh Distance Fields is off in the project, or the rock was loaded a moment ago and isn't in the distance field yet.
No prints, smoke or wakes on a server They are drawn only: a dedicated server does nothing for them, and needs nothing.
The tide doesn't move the level's own water Only Tempest's sea follows the tide.

Good habits

  • Make a profile of your own for each kind of world, and lay its climates as regions; keep the examples as they come, to compare with.
  • Scrub the window's time and watch the bands before playing: the weather to come at the camera tells you whether a profile is wet, windy or calm enough.
  • Change the weather in play through the subsystem or the console, never by setting the sky's preview: the preview is the editor's only.
  • Run the checks before you ship a level.