Skip to content

Effects

Particle effects are data-driven: each effect has up to eight emitters. An emitter throws particles from a shape, moves them with forces, and changes their size, colour and glow over their life. Particles can be lit cubes and spheres or textured billboards (flames, smoke, sparks, leaves), bounce off the ground, leave trails and spawn other particles where they die. GPU emitters draw tens of thousands of particles at once for rain, snow and swarms. An effect can also flash a light and play a sound. Decals lay marks such as scorches, cracks and puddles on surfaces. Objects play both through components, and scripts spawn and steer them at runtime.

  1. Open Window → Effects · particles.
  2. Type an ID in the new effect id field and click Add effect. IDs are 1 to 64 letters, digits, - and _.
  3. Edit the effect’s settings and its emitters. + Emitter adds one; Remove emitter deletes one.
  4. Watch the preview at the top of the window. It plays your unsaved edits: drag to orbit, scroll to zoom and double-click (or click Restart) to play it again. Loop replays it when it ends, Ground shows a floor, and Reset view puts the camera back.
  5. Click Simulate to run the effect for 3 seconds without drawing it. The window reports the peak particle count and when it happens, when the effect is over, and how high and wide it spreads.
  6. Click Apply to commit, or Revert to discard. Preview plays the saved effect at the camera’s focus. Delete effect removes an effect that no object uses.

The Effects window in Ember Hollow: the campfire effect playing in the live preview, with its light, emitter settings and particle budget

Setting Description Default
Name Display name —
Duration Seconds the emitters run, 0 to 600; 0 runs until stopped 0
Warm-up Seconds simulated before the first frame, 0 to 10, so a fire is already burning when it appears 0
Sound at start A project sound or cue played when the effect starts None
Light An optional light: colour, intensity (0 to 1,000,000 lm), range (0.1 to 200 m) and flicker (0 steady to 1 wild) Off

New lights default to a warm colour, intensity 20,000, range 8 m and flicker 0.4. A light flickers in the Fire pattern unless vfx.upsert sets another: Candle, Fluorescent, Strobe, Pulse, Blink or Lightning.

Each emitter’s settings are grouped as in the window: Spawn, Forces, Look, Stylize, Collision & events and Over life.

Setting Description Default Range
Shape Point; Sphere; Disc (on the ground plane); Box; Cone (flies out within the cone angle of the direction); Ring (the edge of a circle on the ground plane); Surface (on the meshes of the object playing the effect, flying off along their normals; a point elsewhere) Point —
Size Sphere, disc, cone or ring radius in X, or box half extents 0.2 m ±1,000 m
Offset Position relative to the effect [0, 0, 0] ±1,000 m
Cone angle Half-angle of a Cone 25° 0 to 90°
Burst Particles emitted at once when the effect starts 0 0 to 2,000
Timed bursts Up to 16 bursts (+ Timed burst): a count at a time, repeated a number of times at an interval — Time 0 to 600 s, count up to 2,000, repeat up to 1,000, interval 0.01 to 600 s
Rate Particles per second while the effect runs 20 0 to 2,000
GPU Simulate and draw on the GPU (see GPU particles) Off —
Lifetime [min, max] seconds 0.6 to 1.2 0.01 to 60
Speed [min, max] metres per second 0.5 to 1.5 0 to 200
Spread 0 is exactly along the direction, 1 is any direction 0.3 0 to 1
Direction Main direction, in local space Up —
Local space Particles move with the effect, like a carried torch, instead of staying where they were born Off —
Inherit velocity Share of the effect’s own movement new particles take on (world space only) 0 0 to 1

An emitter must emit by itself (a burst, a timed burst or a rate above 0) unless another emitter’s event spawns its particles.

Setting Description Default Range
Gravity Metres per second², downward; negative values rise −1 ±100
Drag Slows particles and pulls them along with the wind 1 0 to 50
Turbulence Swirling flow, in m/s² 0 0 to 200
Swirl size Size of the turbulence swirls 2 m 0.05 to 100 m
Vortex Spin around the effect’s up axis, in m/s²; negative turns the other way 0 ±200
Attraction Pull towards the effect’s centre, in m/s²; negative pushes away 0 ±200
Settle on ground Stop on the terrain instead of falling through (world space only) Off —

With wind on, drag carries particles downwind, so smoke and embers drift with the air where they are.

Setting Description Default Range
Mesh Cube, Sphere or Billboard (a textured quad) Cube —
Blend Opaque (solid and always lit); Additive adds light (fire, sparks, magic); Alpha is see-through (smoke, dust, mist); Distort bends the scene behind it (heat haze, shockwaves) Additive —
Distortion How far a Distort particle bends the scene, in screen widths 0.02 0 to 0.2
Spin Tumble (meshes) or roll (billboards), in radians per second 3 0 to 50
Glow HDR brightness for bloom: the colour × (1 + glow / 4) 6 0 to 200
Lit How much the sun, sky and lights shade Additive and Alpha particles; 0 is self-lit 0 0 to 1

Billboards have more settings:

Setting Description Default Range
Facing Camera (smoke, glows); Velocity, stretched along its movement (sparks, rain); Vertical, upright and turning around the vertical axis (fire columns); Flat on the ground (shockwaves, ripples) Camera —
Stretch Velocity facing: extra length in metres per m/s of speed 0.05 0 to 5
Texture Soft, Smoke, Flame, Spark, Ring, Star, Puff, Wisp, Leaf, Shard, or Asset (a project texture). Smoke, Flame and Puff are 4×4 flipbooks Soft —
Texture id, atlas For Asset: the project texture and its flipbook columns × rows 1 × 1 1 to 16 each
Flipbook Life plays once over the particle’s life; Loop loops at a frame rate from a random frame; Random picks one frame per particle Life Loop: 0 to 120 fps, default 12
Random roll Billboards start at a random roll On —
Soft edge Billboards fade out over this distance where they cut into geometry 0.3 m 0 to 10 m
Setting Description Default Range
Edge softness Low gives crisp cel edges, high soft puffs 1 0.02 to 1
Erosion Birth and death thresholds that eat the texture away through its noise as the particle ages, for cartoon smoke that breaks apart 0, 0 0 to 1
Toon bands 0 is smooth; 2 to 6 gives flat cel steps of light and alpha 0 0, 2 to 6
Hot core A colour and amount for the texture’s hot core: two-tone flames and sunlit cloud tops Pale yellow, 0 Amount 0 to 1
Setting Description Default Range
Collision None; Ground (the terrain); Scene (physics colliders and the terrain, by raycast) None —
On collide Bounce, Stick where it lands, or Die Bounce —
Bounce, friction Share of the speed kept off the ground, and sliding friction 0.35, 0.3 0 to 1
Spawn on death Another emitter of the effect spawns particles where these die: the emitter index, a count and how much velocity they inherit Emitter 1, × 3, 0.2 Count 1 to 50, inherit 0 to 1
Spawn on hit The same where these hit the ground; needs collision — —
Trail A ribbon behind each particle that tapers to its tail: points remembered, seconds between points, width, and whether to draw the particle at its head 12 points, 0.03 s, 0.15 m, drawn Points 2 to 32, interval 0.005 to 1 s, width 0.001 to 10 m

Collision, events and trails need a world-space emitter (local space off), and an event’s target emitter must be world space too. Scene collision casts at most a few thousand rays a frame.

Setting Description Default Range
Size birth/death Size at birth and at death, in metres 0.08 to 0.02 0 to 20
Size random Random size variation per particle 0 0 to 1
Size (m) curve Use curve replaces birth and death with keys over life — Sizes 0 to 20 m
Colour Start and end colour, sRGB 0 to 1; see-through particles fade out over life Orange to red —
Colour over life Use gradient replaces the colours and the fade with colour and alpha keys (+ Colour key) — —
Glow × curve A glow multiplier over life Fades to half 0 to 10

Curves and gradients take up to 16 keys, with times from 0 (birth) to 1 (death). In a curve, drag a key to move it, double-click to add one and right-click a key to remove it.

Turn on GPU for rain, snow, sandstorms and swarms. A GPU emitter is simulated and drawn on the graphics card: its burst and rate go up to 100,000, with up to 262,144 particles alive per emitter. It draws billboards in world space only, without trails, events or the Surface shape; its collision is a flat ground plane at the effect’s height, and see-through particles are not sorted.

The viewport’s Show menu sets which object effects play while you edit, looping and silent:

Option Plays
All Every object’s effect (the default)
Selected Only the selected object’s effect; selecting an object restarts it
Off Nothing until Play

Effect icons puts a clickable icon on every object with an effect, and Restart effects plays every preview again from the start.

  1. Select the object.
  2. In Details, click Add Component and choose Effect.
  3. Choose the Effect, set an Offset, and turn Play on start on or off. With it off, a script starts the effect with play_object_vfx.

Fire spreads through grass and the leaf litter under trees on a 1 m grid. It races downwind and creeps upwind, runs up slopes and creeps down them, and stalls on bare ground, roads, rock, water, snow and wet ground. Tree crowns burn, char and light the crowns around them, and wind throws embers that start spot fires ahead of the front. Some burnt trees fall; the rest stand charred and smoulder. Burnt ground glows with embers, then grows back.

Set it up in Window → World & terrain → Weather, in the Fire section. The Preset buttons replace every fire setting with a ready-made behaviour; tweak it afterwards:

Preset Behaviour
Default The defaults below
Campfire Small fires that stay put
Slow burn Creeps, burns long and rarely jumps: a fire the player can fight
Wildfire Wind-driven: races through grass and woods, with crown fires and spot fires
Toon Bright stylized flames with little smoke
Setting Description Default Range
Fire spreads Fire spreads at all On —
Spread How eagerly fire runs through grass; 0 never 1 0 to 3
Grass burns for Seconds one patch of grass burns 5 s 0.5 to 120 s
Wind pushes it How much the wind pushes it 1 0 to 3
Rain puts it out Rain puts fires out and wet ground will not catch On —
Trees burn Trees catch fire, burn and fall On —
Damage Damage per second to whoever stands in the flames 12 0 to 1,000
Lightning starts fires, Explosions start fires What ignites it besides scripts On —
Most burning cells Big fires stop growing past this 1,500 10 to 20,000
Flame size 1 is knee to head high 1 0.3 to 3
Small / big flame mix 0 makes every flame alike 0.7 0 to 1
Smoke Grey smoke rising from big fires 1 0 to 2
Embers start spot fires 0 never 0.6 0 to 2
Crowns light each other Burning crowns light the crowns around them, more downwind; 0 never 0.8 0 to 2
Leaf litter under trees Litter burns like grass, so fire runs through woods; 0 bare 0.5 0 to 1
Trees burn for Seconds a crown burns before it is charred 20 s 3 to 120 s
Burnt trees that fall Share of burnt trees that come down 0.35 0 to 1
Embers glow for Seconds burnt ground keeps glowing 12 s 0 to 60 s
Flame glow Bloom and light on the surroundings 1 0 to 2
Fire lights Flickering lights cast by the nearest fires; 0 none 3 0 to 4

Scripts start and stop fires with ignite(x, y, z), ignite(x, y, z, radius) (0.5 to 30 m), extinguish(x, y, z, radius) (0.5 to 200 m) and read fire_burning(), the number of burning cells.

A decal is a mark lying on a surface. Add one with Add Component → Decal.

Setting Description Default Range
Built-in shape / Texture A procedural shape, or a project texture (PNG with alpha) Built-in shape —
Shape splat, scorch, crack, puddle, ring, dirt, footprint or pawprint scorch —
Tint Colour, RGB Dark brown 0 to 1
Opacity How solid the mark is 0.9 0 to 1
Width, Length Metres 2 0.01 to 200 m
Wetness 0 is matte, 1 is wet and glossy 0 0 to 1
Follow terrain Lie on the terrain under the object. Off, the decal lies in the object’s own plane; rotate the object to put it on a wall On —
Function Description
spawn_vfx(effect, x, y, z), spawn_vfx(effect, at) Starts an effect at a position (at is a vec3) and returns a handle
attach_vfx(effect, id) Plays an effect on an object, following it, and returns a handle
stop_vfx(handle) Stops a spawned effect; particles already in the air finish
vfx_alive(handle) Whether the effect is still running
move_vfx(handle, x, y, z), move_vfx(handle, at) Moves a running effect
set_vfx_rate(handle, scale) Scales its emission rate, 0 (no new particles) to 20
set_vfx_tint(handle, r, g, b) Multiplies its particles’ colour; each channel 0 to 4
play_object_vfx(id), stop_object_vfx(id) Starts or stops an object’s own Effect component
spawn_decal(shape, x, y, z, size, seconds) Places a built-in decal shape for a number of seconds, at a random rotation
spawn_decal(shape, x, y, z, size, seconds, [r, g, b]) The same, tinted

Script decals shrink away over their last two seconds. When more script decals exist than the decal budget allows, the oldest are recycled.

fn on_event(name, data) {
if name == "explosion" {
spawn_vfx("blast", data.x, data.y, data.z);
spawn_decal("scorch", data.x, data.y, data.z, 3.0, 30.0);
}
}

The engine also provides built-in effects: water_splash, tree_leaves, wood_chips, grass_clippings, water_spray, step_dust, step_sand, step_snow, dirt_burst and step_splash. A project effect with the same ID replaces the built-in one.

Limit Value Default
Particle budget: particles alive at once across all effects; when it is full, an emitter recycles its oldest 10 to 50,000 4,000
Script decals alive at once 0 to 5,000 256
Effects per project 256 —
Emitters per effect 1 to 8 —
GPU emitter rate and burst Up to 100,000 —
GPU particles alive per emitter Up to 262,144 —

The window shows an estimate of the effect’s peak particle count next to Simulate, and vfx.get and vfx.upsert report it, so you can check an effect against the budget before you use it.

Command Purpose
vfx.get Lists effects, built-in effects, project textures, the particle budget and which objects play which effect; id returns one effect
vfx.upsert Creates or patches an effect (JSON merge; arrays replace; new effects and emitters start from the defaults); rename_from renames it
vfx.simulate Runs an effect without drawing it and reports how it behaves
vfx.remove Deletes an effect that no object uses
vfx.set Sets max_particles and max_decals
fire.get, fire.set Read and patch the spreading fire settings
fire.preset Applies a fire preset: default, campfire, slow_burn, wildfire or toon

vfx.simulate runs an effect at the origin on flat ground at height 0, without wind, for seconds (0.05 to 60, default 3). Give id for a project or built-in effect, or value for an unsaved effect to test before you save it. It reports peak and peak_time, finished_at (null when the effect runs until stopped) and samples (1 to 120, default 12), each with the time, the particles alive, their bounds (min, max), mean_size and mean_alpha. It runs GPU emitters on the CPU within the particle budget.

Create a campfire with licking flames, rising smoke and a flickering light, check it, then save it:

Terminal window
cat > campfire.json <<'JSON'
{
"value": {
"id": "campfire",
"name": "Campfire",
"warmup": 1,
"light": {"color": [1.0, 0.6, 0.25], "intensity": 20000, "range": 8, "flicker": 0.5, "pattern": "Fire"},
"emitters": [
{
"shape": "Disc", "size": [0.3, 0.3, 0.3],
"mesh": "Billboard", "texture": "Flame", "facing": "Vertical", "blend": "Additive",
"rate": 30, "lifetime": [0.5, 0.9], "speed": [0.8, 1.4], "spread": 0.1,
"gravity": -2, "particle_size": [0.6, 0.2], "glow": 8,
"color_start": [1.0, 0.75, 0.3], "color_end": [0.9, 0.2, 0.05]
},
{
"shape": "Disc", "size": [0.2, 0.2, 0.2], "offset": [0, 0.8, 0],
"mesh": "Billboard", "texture": "Smoke", "blend": "Alpha", "lit": 1,
"rate": 6, "lifetime": [2, 3], "speed": [0.5, 1], "spread": 0.2,
"gravity": -0.5, "turbulence": 2, "particle_size": [0.4, 1.6], "glow": 0,
"color_start": [0.3, 0.3, 0.3], "color_end": [0.5, 0.5, 0.5]
}
]
}
}
JSON
jq '{value, seconds: 4}' campfire.json | \
feather-cli command vfx.simulate --json -
feather-cli command vfx.upsert --json "$(cat campfire.json)"

The simulation reports finished_at: null, because the effect runs until stopped, and a peak of about 40 particles. vfx.upsert returns peak_particles, the estimate (45).

See Agents & automation for connecting a live session.