Ambient Life – Documentation
Small life around the player, with no placing and no setup: butterflies by day and fireflies at night, flocks of crows and starlings feeding on the ground that take off when you come close, flocks passing overhead, a buzzard circling high above, partridges bursting out of the grass in front of you, and smoke rising from chimneys, camp fires and charcoal pits.
Everything is driven by one world subsystem and drawn by a few instanced static meshes: no actor, no skeleton and no tick per creature, no collision, no shadows. The wings move in the material (vertex animation), so a flock of 26 starlings costs about the same as one.
Contents
- Requirements
- Installation
- Quick start: the demo (2 minutes)
- Concepts and how it works
- What lives where
- Using it in your level
- Where creatures may appear
- Day and night
- Startling the birds
- Smoke
- Blueprint / C++ API reference
- Project settings reference
- Console commands
- Performance
- Your own creatures (meshes and textures)
- The demo map
- Packaging your game
- Troubleshooting
- Known limitations
- Support, licences and credits
1. Requirements
| Engine | Unreal Engine 5.8 |
| Platforms | Windows 64-bit (editor and packaged games) |
| Plugin dependencies | none (engine modules only) |
| Project type | Blueprint-only or C++. No C++ knowledge needed. |
| Level | Works best on a Landscape with a directional light as the sun (both optional, see sections 7 and 8). |
2. Installation
From Fab: install the plugin to your engine from the Fab library (Epic Games Launcher), then enable it in your project: Edit > Plugins > search “Ambient Life” > tick it > restart the editor.
Into one project only: copy the AmbientLife folder to <YourProject>/Plugins/AmbientLife (so that
Plugins/AmbientLife/AmbientLife.uplugin exists) and open the project.
To see the plugin’s assets, tick Settings > Show Plugin Content in the Content Browser; they are under Plugins > Ambient Life Content. That is all: from now on every level you play has ambient life (switch it off in the settings, section 12).
3. Quick start: the demo (2 minutes)
- Open
/AmbientLife/Demo/Maps/AL_Demo(Plugins > Ambient Life Content > Demo > Maps) and press Play. - You walk a 500 m meadow on foot. Keys: WASD + mouse walk, Shift run, Space clap, F partridges in front of you, N night / day, H hides the help. Gamepad: left stick / right stick, L3 run, A clap, X partridges, Y night.
- Look around: butterflies flutter over the grass, crows and starlings feed out on the meadow, a flock crosses the sky, a buzzard circles high up, three cottages and a camp fire smoke, a charcoal pit smokes far away.
- Walk towards a flock on the ground: it takes off when you come within about 22 m (run: farther, stand still: closer). Press Space to make every flock within 60 m take off.
- Walk through the grass: now and then partridges burst out in front of you (or press F).
- Press N: the sun goes down, the butterflies and the birds go, fireflies blink over the grass.
The top line of the screen shows what is out at the moment (the same as the console command AL.Dump).
4. Concepts and how it works
| Part | What it is |
|---|---|
Ambient Life subsystem (UALAmbientLifeSubsystem) |
One per game world. Spawns, moves and removes every creature around the player, writes them into the instanced meshes every frame, runs the smoke columns. |
Settings (UALSettings) |
Project Settings > Plugins > Ambient Life: how many of each, how shy, day and night, where, the wind, the meshes. |
AL Smoke Source (component UALSmokeSourceComponent, actor AALSmokeSourceActor) |
A column of smoke from that point: chimney, camp fire, charcoal pit or your own. |
AL Startles Birds (component UALStartleComponent) |
Birds on the ground take off when this actor comes close (a dog, a horse, an NPC). |
Ambient Life library (UALAmbientLibrary) |
Blueprint functions: Startle, Set Night, enable / disable, spawn a flock or butterflies, partridges now. |
| M_AL_Creature | The creatures’ material: texture, tint, and the wings moved in the vertex shader from per-instance data. |
| M_AL_Smoke | The smoke puffs’ material: soft translucent puffs that fade at the rim and swirl. |
Every frame the subsystem:
- Checks the night (every second), the player’s position, speed and crouch.
- Fills free slots: butterflies or fireflies around the player, ground flocks out of sight 40-140 m away, a flock overhead now and then, the buzzard.
- Moves everything: butterflies flutter and rest, ground birds hop and peck, a frightened flock lifts off together and flies away, partridges burst up and glide back into the grass.
- Removes what the player has left far behind (it comes back near the player instead).
- Writes positions and per-instance data (wing beat, phase, fold, glow) into 6 instanced static mesh components (one per kind), plus one per smoke column.
Nothing is saved: the life is the same kind of life after a load, never the same birds.
5. What lives where
| Creature | When | Where and how |
|---|---|---|
| Butterflies | day | 3-18 m around the player, 25-160 cm above the ground; they flutter between random points, sometimes rest on a flower with the wings up. 8 European species (cabbage white, brimstone, orange tip, common blue, peacock, small tortoiseshell, swallowtail, red admiral). |
| Fireflies | night | 2.5-16 m around the player, 30-220 cm above the ground; drift slowly and blink every 2-4 s. |
| Crows, starlings on the ground | day | Ground Flocks slots: a flock of 5-11 crows or 8-16 starlings lands 40-140 m away, preferably out of view, on open level ground (9 m clear); they hop, peck and look up. When the player or a startler comes close the whole flock lifts off with hard wing beats and flies 260-400 m away. A flock left 240 m behind goes; 12-35 s later a new one comes. |
| Flocks overhead | day | Every ~8 s while the sky has room: 12-26 starlings or 5-9 crows cross the sky 25-60 m up, 320-420 m from the player, flapping and gliding. |
| Buzzard | day | One, circling 70-110 m up on a radius of 45-80 m, slowly following the player’s country. |
| Partridges | day | While the player walks (faster than 1.2 m/s), every Partridge Every to 2.5 x that seconds: 3-6 burst out of the grass 4-9 m ahead, fly low 45-80 m away and drop back into the grass. Only on open landscape. |
| Smoke | always | From every AL Smoke Source and from the smoke rules of the settings (section 10). |
6. Using it in your level
There is nothing to place. Play any level: the subsystem starts with the world (Game and PIE worlds) and follows player 0’s pawn. For the best result:
- a Landscape for the ground (or switch Landscape Only off, section 7);
- a directional light marked Atmosphere Sun Light as the sun, so the night comes by itself (section 8);
- water tagged or named so (section 7);
- AL Smoke Source actors on chimneys and fires (section 10).
To switch it off for one level, call Set Ambient Life Enabled (false) in the Level Blueprint’s Begin Play. To switch it off everywhere, untick Enabled in the settings.
7. Where creatures may appear
Ground flocks land and partridges hide only on open, level, dry ground:
- On a Landscape (Landscape Only, on by default) – never on a roof, a rock, a mesh. Off: on any static surface.
- Not steeper than Max Slope (28 degrees).
- Nothing standing within the spot’s radius (9 m for a flock, 2.5 m for partridges): any static actor other than the landscape counts – houses, trees, fences, rocks.
- Not on water. Water is: actors or components tagged AL_Water, static meshes whose asset name contains one of Water Mesh Names (default “Water”), and the Water plugin’s water bodies. At begin play the water’s triangles are rasterised into a 4 m grid (a mesh without CPU access, e.g. in a packaged game, counts by its bounds – turn on Allow CPU Access on the mesh for the exact shape). Butterflies and fireflies keep off water too.
- Not near actors tagged AL_NoLife – put the tag on anything (a camp, a road, a volume with collision) where birds should not land.
Butterflies and fireflies need only ground under them (any static surface).
8. Day and night
By day: butterflies, birds, partridges. By night: fireflies only. Night Source in the settings:
| Night Source | The night is… |
|---|---|
| Sun (default) | …when the sun is lower than Night Below Sun Angle (-3 degrees). The sun is the directional light used as atmosphere sun light 0 (else the first directional light). Works with any day / night cycle that turns the light. |
| Always Day / Always Night | …never / always. |
| Manual | …what your game says with Set Night (Ambient Life library). |
A moon can be a second directional light with Atmosphere Sun Light Index 1 – it is not taken for the sun.
9. Startling the birds
Birds on the ground take off when one of these comes within its radius:
The player pawn (player 0) – radius by what it is doing (settings, Startle):
| Doing | Radius |
|---|---|
| walking | Walk Radius, 22 m |
| running (faster than Run Speed, 4.2 m/s) | Run Radius, 32 m |
| standing still | Still Radius, 14 m |
| crouched and moving / still (a Character’s crouch) | Crouch Radius 10 m / Crouch Still Radius 7 m |
So a player who crouches can sneak up much closer – nice for a hunter, a photographer or a stealth game.
AL Startles Birds component on any actor (a dog, a horse, an NPC, a cart): Radius (10 m), Fast Radius (18 m) above Fast Speed (3.5 m/s).
Startle (Location, Radius) from Blueprint or C++: every flock within the radius takes off – call it on a gunshot, a bow shot, an explosion, a shout, a falling tree.
Event OnWeaponFired
└─ Startle (Location = Get Actor Location (Self), Radius = 7000)
10. Smoke
AL Smoke Source – as an actor (Place Actors > All Classes > AL Smoke Source) or as a component on your Blueprint (a house, a fire, a ship).
| Property | Default | Meaning |
|---|---|---|
Kind |
Chimney | Chimney, Camp Fire, Charcoal Pit, Custom (below). |
Custom |
– | With Kind = Custom: the look (below). |
Spread |
0 | The smoke seeps out along this line (half length, in the component’s space): a roof ridge, a long fire. |
Smoking |
on | Smoking at the start. Set Smoke Enabled switches it at run time: puffs in the air drift on and fade, new ones stop. |
The kinds:
| Kind | Life | Rise | Puff radius | Opacity | Grey | Puffs | Looks like |
|---|---|---|---|---|---|---|---|
| Chimney | 30 s | 1.2 m/s | 0.6 → 6.5 m | 0.6 | 0.4 | 12 | a steady grey column, 25 m high |
| Camp Fire | 14 s | 1.3 m/s | 0.35 → 3.2 m | 0.5 | 0.45 | 9 | thinner, quicker |
| Charcoal Pit | 36 s | 1 m/s | 1.1 → 10 m | 0.7 | 0.6 | 18 | thick and white, wide |
Custom look: Life (s a puff lives), Rise (cm/s at the source, slows as it cools), Start Radius, End Radius
(cm), Opacity (0-1), Grey (0 black .. 1 white), Puffs (2-64).
The smoke leans with the wind of the settings (Wind Direction, Wind Speed 1.6 m/s) more the higher it rises, and wanders a little. A moving source (a cart, a ship) drags its column along.
Smoke rules (settings) – smoke over meshes already in your levels, without touching them: Mesh Name Starts With (“SM_House”), Kind, Share (0.5 = every second one – always the same ones, picked by their place), Height (0 = middle of the mesh, 1 = top; 0.9 = through a roof), Spread (share of the longer side, 0.4 for a roof ridge). Instanced meshes count per instance. Applied once, a second after the level starts.
11. Blueprint / C++ API reference
Ambient Life library (UALAmbientLibrary) – every function takes a world context:
| Function | Signature | Meaning |
|---|---|---|
| Startle | void Startle(FVector Location, float Radius = 5000) |
Every bird on the ground within Radius (cm) takes off. |
| Set Night | void SetNight(bool bNight) |
With Night Source = Manual. |
| Is Night | bool IsNight() |
What the system thinks now. |
| Set Ambient Life Enabled | void SetAmbientLifeEnabled(bool bEnabled) |
Hide everything and stop spawning (a cutscene, an interior), or bring it back. |
| Spawn Ground Flock | bool SpawnGroundFlock(FVector Location, EALBird Kind = Crow, int32 Count = 8) |
A flock feeding at Location (snapped to the ground), on top of the ones that come by themselves – a field next to a farm, a scene in a cutscene. |
| Spawn Butterflies | int32 SpawnButterflies(FVector Location, int32 Count = 6) |
Butterflies around Location now (by a flower bed). Returns how many came. |
| Flush Partridges | bool FlushPartridges() |
Partridges out of the grass in front of the player now. |
| Describe Ambient Life | FString DescribeAmbientLife() |
What is out now, as text. |
EALBird: Crow, Starling, Partridge, Buzzard (ground flocks: crows and starlings).
AL Smoke Source (UALSmokeSourceComponent): SetSmokeEnabled(bool), IsSmoking(); properties above.
EALSmokeKind: Chimney, CampFire, CharcoalPit, Custom. FALSmokeLook: Life, Rise, StartRadius, EndRadius,
Opacity, Grey, Puffs.
AL Startles Birds (UALStartleComponent): Radius, FastRadius, FastSpeed.
Subsystem (UALAmbientLifeSubsystem, C++; UALAmbientLifeSubsystem::Get(WorldContext)): Startle, SetEnabled,
SetNightOverride(-1 | 0 | 1), PlaceGroundFlock, PlaceButterflies, FlushPartridges, RegisterSmoke /
UnregisterSmoke, counts (CountButterflies, CountFireflies, CountBirds, CountBirdsOfKind, CountSmokeColumns),
IsWater(FVector), Dump().
C++: add "AmbientLife" to your module’s PublicDependencyModuleNames, then:
#include "ALAmbientLifeSubsystem.h"
void AMyGun::Fire()
{
if (UALAmbientLifeSubsystem* Life = UALAmbientLifeSubsystem::Get(this))
{
Life->Startle(GetActorLocation(), 7000.f); // the shot carries 70 m
}
}
Demo classes (used by the demo map, free to reuse): AALDemoGameMode, AALDemoPawn (walker: eye height, walk /
run speed; Clap, Partridges, ToggleNight), AALDemoHUD.
12. Project settings reference
Project Settings > Plugins > Ambient Life (saved in Config/DefaultGame.ini). Counts and assets are read when a
level starts; radii, wind and glow every frame.
| Setting | Default | Meaning |
|---|---|---|
| General | ||
Enabled |
on | Ambient life in every level. |
Density |
1 | All counts are multiplied by this (0.5 for low quality, 2 for a busy world). |
| Butterflies and Fireflies | ||
Butterflies |
36 | By day, around the player. |
Butterfly Scale |
2 | 1 = life size (6 cm); 2 reads well 10 m away. |
Fireflies |
60 | By night. |
Firefly Glow |
30 | Emissive strength at the top of a blink. |
Firefly Scale |
3 | 1 = life size (1.6 cm). |
| Birds | ||
Ground Flocks |
3 | Flocks feeding on the ground at the same time. |
Sky Flocks |
2 | Flocks overhead at the same time. |
Buzzard |
on | |
Partridge Every |
25 s | 0 = never. |
| Startle | Section 9. | |
Walk Radius, Run Radius, Still Radius |
2200, 3200, 1400 cm | |
Crouch Radius, Crouch Still Radius |
1000, 700 cm | |
Run Speed |
420 cm/s | |
| Day and Night | Section 8. | |
Night Source |
Sun | |
Night Below Sun Angle |
-3 degrees | |
| Where | Section 7. | |
Landscape Only |
on | |
Max Slope |
28 degrees | |
Water Mesh Names |
Water | |
| Smoke | Section 10. | |
Wind Direction |
(1, 0.3, 0) | The direction the wind blows to. |
Wind Speed |
160 cm/s | |
Smoke Rules |
none | |
| Assets | Section 15. | |
Crow Mesh … Smoke Puff Mesh |
/AmbientLife/Core/SM_AL_* | |
Butterfly Kinds |
8 | Species tiles side by side in the butterfly texture. |
13. Console commands
| Command | Does |
|---|---|
AL.Dump [smoke] |
Logs what is out now (and every smoke column with smoke). |
AL.Startle [m] |
Every bird on the ground within m (300) of the player takes off. |
AL.Flush |
Partridges in front of the player now. |
AL.Night 1 / 0 / -1 |
Night, day, or what the settings say. |
AL.Enabled 0 / 1 |
Hide everything / bring it back. |
14. Performance
- Drawing: 6 instanced static mesh components for the creatures (crows, starlings, partridges, buzzard, butterflies, fireflies) plus one per smoke column – each a single instanced draw. The meshes are 120-470 triangles, no shadows, no collision, no distance fields, no ray tracing; creatures are culled beyond 60-900 m.
- CPU: one tick of the subsystem for everything (pools of 160 birds, the butterflies and fireflies of the settings; far smoke columns move every 4th frame). No actor and no component ticks per creature. A few line traces per second while it looks for places.
- GPU: the wings move in the vertex shader; the smoke is translucent (lit per pixel) – its cost grows with how much of the screen it covers, so keep Puffs and End Radius modest for many columns close to the camera.
- Memory: about 3 MB of textures and meshes (/AmbientLife/Core).
15. Your own creatures (meshes and textures)
Any static mesh can replace one of the creatures (Assets in the settings) if it follows the conventions of M_AL_Creature (make a material instance of it with your texture, or your own material with the same inputs):
| Channel | Meaning |
|---|---|
| Mesh space | cm, life size, forward +X, up +Z, origin at the feet (the ground). |
| UV 0 | The texture (Atlas parameter). The included birds use a top view in the upper half and a bottom view in the lower half, every flat part built as two one-sided plates. Tiles > 1: the texture holds that many species side by side; each instance shows tile n (the butterflies). |
| UV 1 .x | Signed distance (cm) of a wing vertex from the wing’s hinge line (0 for the body). The flap turns each wing around its hinge. |
| UV 2 .xy, UV 3 .x | Offset (cm) of a wing vertex to its folded pose (birds on the ground fold their wings along the body). |
| Opacity mask | The texture’s alpha. |
Per-instance custom data written by the subsystem: 0-2 tint, 3 phase, 4 wing amplitude (rad), 5 beats per second, 6 wing angle (rad), 7 glow, 8 texture tile, 9 folded (0-1).
The smoke puff is a 50 cm sphere with M_AL_Smoke (custom data: 0 opacity, 1 grey, 2 seed).
16. The demo map
/AmbientLife/Demo – everything only the demo uses: the map AL_Demo (a 500 m Landscape with a pond tagged
AL_Water, grass and flowers as instanced meshes, three cottages with AL Smoke Source actors on the chimneys, a camp fire,
a charcoal pit, sun, moon, sky, clouds and fog), its plants (Meadow) and props (Props). The demo walker is the C++
class AALDemoPawn (in the plugin, so the demo needs no input assets). Delete the Demo folder when you no longer need it;
the system itself lives in /AmbientLife/Core.
17. Packaging your game
The creatures’ meshes are soft references in the settings; the plugin adds /AmbientLife/Core to the cook by itself, so
nothing needs to be set. Water meshes without Allow CPU Access count by their bounds in a packaged game (section 7).
Check a packaged game with AL.Dump in its console.
18. Troubleshooting
Nothing appears. Enabled in the settings; the log says “a mesh of … Assets is missing” if the meshes were moved
or deleted; the level needs a player pawn. AL.Dump shows the counts.
No birds on the ground. They need open, level Landscape 40-140 m away (section 7): a level full of trees, houses or steep slopes leaves no room – switch Landscape Only off on a mesh terrain, or place flocks with Spawn Ground Flock. At night there are none.
Birds land on my river. Tag the water actor AL_Water or add part of its mesh name to Water Mesh Names.
Birds land where they should not (a road, a camp). Tag an actor there AL_NoLife – nothing lands near it.
It is always day / always night. Night Source = Sun needs a directional light marked Atmosphere Sun Light (index 0) that turns with your day / night cycle; or use Manual and Set Night.
The smoke is hard to see. Against a bright sky use a darker Grey (0.3) or more Opacity; Charcoal Pit is the densest kind.
Butterflies or fireflies are hard to see. Butterfly Scale / Firefly Scale and Firefly Glow.
19. Known limitations
- Follows player 0 (split screen: the first player). In multiplayer every client runs its own ambient life (it is cosmetic and not replicated – which is usually what you want).
- Birds do not perch on trees or roofs; flocks feed on the ground and fly.
- No sounds are included (bind your own to Startle or the flock, e.g. with a sound at the startle location).
- Windows 64-bit only in this version.
20. Support, licences and credits
- Support: lozanalekseev@gmail.com (also the Support link on the Fab page and in Edit > Plugins).
- The plugin is distributed under the Fab End User License Agreement (Standard License).
- All meshes, textures and materials were made for this plugin, from code; no third-party content is included.
- Made with the help of AI (Claude by Anthropic) – the code, the art scripts, the documentation and the tools were written together with an AI agent, directed and tested by the author.
