Skip to content
Roi Horowitz edited this page Nov 23, 2026 · 7 revisions

Fire and lights

Animater gives fire lights a body: a real flame, smoke, sparks, heat and sound. A "fire light" means a light animated as a torch, flame, fire, candle or flicker, or one you've set on yourself.

On each light

Where: Ambient Light configuration → Light Animation → Animater.

Changed in 3.8.7: the choices are rows of buttons instead of drop-downs, and the light previews each click at once. Hover a name or a button for what it does. Auto follows the light's animation.

Row Buttons What it does
Flame Auto, On, Off A flame burning where this light stands. Turn it off where the map already draws its fire.
Fire Auto, Torch, Lantern, Brazier, Campfire, Cooking pot One tongue for a torch or lantern, a bed of flames across a brazier or campfire, or under a cooking pot. Each kind has its own sound. Auto is one flame.
Flame size 40%, 60%, 80%, 100%, 125%, 150%, 200% Fit the sconce or bowl the map draws. 100% is as its light.
Moths Auto, On, Off Moths loop round it. Auto: every fire light in an underground scene. On: this light, on any map.
Soot Auto, On, Off The wall behind it blackened. Auto: a fire light against a wall in an underground scene. On: any light against a wall, anywhere.
Smoke Auto, On, Off Smoke rising from this light.
Heat haze Auto, On, Off The heat shimmer over it.
Sparks Auto, On, Off New in 3.8.7. Sparks and embers rising from it.
Sound Auto, On, Off New in 3.8.9. The fire heard close by. On gives any light a sound, Off silences a fire.
Chimney smoke Auto, On, Off A hearth in a room smokes from the roof above it while the roof is drawn. On always smokes above the roofs, like a forge. Off never.
Smoke colour Grey, White, Black, Brown, Green, Purple, Yellow, Red, Blue New in 4.6.1. What the fire's smoke is made of. See Smoke colour.
Fills the room with smoke A tick New in 4.4.0. With the scene's Fires fill rooms with smoke on, this light's fire fills the room it stands in with smoke. Off by default, so a lit hearth or brazier doesn't fog the inn. See Fire and Smoke.

Each switch is its own. Changed in 3.8.7: before, turning Heat haze off also stopped the sparks, and the light stopped counting as a fire for its flame, moths and soot. Now it leaves them alone.

The Flames button

Where: the lighting controls, GM only. It sets the same options on the selected lights, or on all of them if none are selected, as drop-downs in one window. Each choice can keep what's already there. It includes Cooking pot, Sound, Sparks and, since 4.6.1, Smoke colour. It doesn't set Fills the room with smoke, which is ticked on each light. Show the Flames button (Animater settings → Interface & performance, per screen) hides it.

Smoke colour

New in 4.6.1. Every fire used to send up the same grey. Each light now picks what its smoke is made of:

Colour Suits
Grey (the default) Wood and oil
White Steam, a cooking pot
Black Pitch, a forge
Brown Damp wood, a smokehouse
Green Poison, a witch's fire
Purple Arcane, a summoning
Yellow Sulphur, alchemy
Red Embers, a blood rite
Blue Cold fire, a spirit flame

Each colour is four tones, so a plume keeps its variation instead of turning into one flat blob. None is pure black or pure white. The smoke rising in the room uses the darker set, and a chimney's plume above the roofs the paler set, so it reads against the sky and the shingles. A light that was never given a colour smokes grey as before.

The plume

Smoke rises from a fire as many small soft puffs that run together into one thin column, more for a bigger fire. Changed in 4.6.2: the column's sway is a seeded wander, two at once (a long, slow lean and a shorter one over it), drawn fresh from the fire's own key. Before, it followed one sine that came back round every 25 puffs, so a plume traced the same S over and over, and every fire swayed alike. Now it never repeats, and no two fires on a map sway the same way.

Smoke in the room. A fire's plume is only a look. Smoke that fills a room and hides what is in it is a separate feature, switched on per scene with Fires fill rooms with smoke. See Fire and Smoke.

Fire sounds

New in 3.8.9, changed in 3.8.10.

Fire lights crackle close by, each by its Fire kind. Torches and lanterns that creatures hold crackle too. New in 4.0.0: Held torches crackle, a switch for your own screen under Fire sounds, quiets the held ones while fires on the map still crackle.

Kind How it sounds How far it carries
Torch (and Auto) A torch crackling About 4 squares
Lantern A torch's crackle, much quieter About 2½ squares
Brazier A bed of coals About 6 squares
Campfire A big fire, the loudest About 9 squares
Cooking pot A pot bubbling, with its small fire under it as a quiet brazier About 5 squares
  • Each is loudest beside it and fades with distance. It's quieter through a wall.
  • Each fire is its own. The four fires nearest you each play their own loop. Each keeps its own recording of its kind and its own pitch, a few percent higher or lower, and starts its loop at its own place. A hall of torches sounds like several torches crackling out of step, not one.
  • A fire that's no longer among the nearest fades out.
  • No loop heard over and over. Changed in 4.0.0: a fire burning a long while crossfades into the next recording of its kind over about three seconds, instead of repeating one loop. The nine-second torch loop that was noticeable on a held torch is gone.
  • There are thirteen CC0 recordings: two torch loops (a lantern uses them, quieter), three for a brazier, and four each for a campfire and a cooking pot.

Fire sounds turns them on for the world, with a switch for your own screen, and Fire volume sets how loud they are for you, from silent to twice as loud. They're on the Floor & world tab of the Animater settings, under Indoors & air. See Sounds and Voices.

Fire on creatures

A creature whose own light burns holds a small burning torch in its square, or carries a hanging lantern. A creature lit by a Light spell has an orb floating at its shoulder. In each case its light comes from what it holds.

Token configuration has two fields for this:

Field Choices
Animater light held on Right side (default), Left side, Nothing drawn (light from the middle)
Animater light shown as Auto, A torch, A lantern, A glowing orb

Hide light icons on tokens leaves that light's status icon off the token, since what it holds already shows it.

Lights by day

New in 4.0.0.

Out of doors, a torch or lantern is weighed against the daylight round it. At noon it throws no second shadow from a creature and doesn't light the floor, water or snow. It begins to show from dusk and is the only light at night. Under a roof it keeps its full strength at any hour. See Sun Moon and Shadows.

Wind and draft

  • Flames in the wind: out of doors, flames, torches and their smoke lean with the wind. Under a roof they feel none of it. The light itself never changes.
  • Flames in the draft: where the air moves underground, flames lean and flicker harder. When a door opens on their way out, they gutter for a few seconds.

Effects from spells

Fire, lightning and other glowing effects light the scene around them while they play, blocked by walls like any light. Each player can turn that off on their own screen, or see it as a steady glow without flicker. See Spell and Action Animations.

Broken lights

New in 4.0.0. With the scene's Breakable props on, breaking a lantern, lamp, candle, torch, chandelier or brazier tile puts out the lights standing on it, and a painted brazier or street lamp decoration puts its light out when it breaks or is knocked over. A lantern's Lamp oil spills and burns for about a minute as a real light when the cause was fire or the lamp was lit, then leaves a scorch. A brazier tips over from any shove, scattering coals that glow for a few seconds. Repair lights them all again. See Breakable Props and Decorations.

Fire that spreads from prop to prop and through grass, rain damping it, and the smoke a fire fills a room with are on Fire and Smoke.

Settings

Setting Everyone (GM) My screen Choices or range What it does
Flames on fire lights On On — A light animated as a torch, flame or fire burns with a real flame where it stands (the held torch's own fire), flickering, leaning with the draft; for maps whose torches and braziers are drawn without fire. Light configuration → Animater → Flame turns it off for one light, or on for any light. Drawn at Balanced quality or better.
Sparks from fires On On — Every fire light (a light animated as a torch, flame or fire; each light can turn its own Sparks on or off in its Animater options) throws sparks now and then, rising on the heat, flaring and dying out; brightest in the dark. Drawn at Balanced quality or better.
Dust in the light On On — In dim and dark scenes, fine dust turns slowly in the air where the lights reach, a soft sparkle inside each light's glow that stops at the walls. Drawn at Balanced quality or better.
Smoke above fires On On — Every fire light (a light animated as a torch or flame: braziers, campfires, a carried torch) sends up a thin trail of smoke that rises, sways and thins out. A bigger fire smokes more. Drawn at Balanced quality or better, only for fires you can see.
Smoke amount on my screen — 1 0.25 to 2 How much smoke fires send up on this screen: 1 as drawn, less for a lighter screen, more for a smokier one.
Heat haze over fires On On — The air above every fire light (a light animated as a torch or flame: braziers, campfires, a carried torch) shimmers with heat. Uses map distortion, so it shows at Full quality with Map distortion on.
Fire sounds On On — Fire lights crackle close by, each by its Fire kind (Light configuration → Animater → Fire): a torch, a quieter lantern, a brazier, a campfire, a cooking pot bubbling over its fire. Torches and lanterns creatures hold crackle too. Loudest beside it, fading within a few squares, quieter through a wall. A light's Sound: Off quiets its own.
Fire volume — 1 0 to 2 How loud fires are for you: 0 silent, 1 as recorded, 2 twice as loud.
Held torches crackle — On — Torches and lanterns creatures hold crackle for you. Off keeps them quiet while fires on the map still crackle.
Creatures hold their torches and lanterns On On — A creature whose own light burns (a light animated as a torch or flame) holds a small burning torch in its square: a flickering flame that leans back as it walks, its smoke rising from the flame. One holding a lantern carries it hanging from its hand instead, swaying. Either way its light comes from what it holds, not its middle. Drawn at Balanced quality or better.
Light spells float as orbs On On — A creature lit by a Light spell (PF2e’s Light or Everlight, D&D’s Light) has its light float at its shoulder as a small glowing orb, bobbing gently in the light’s own colour, the light coming from the orb. Drawn at Balanced quality or better.
Hide light icons on tokens On — — A creature drawn holding its torch or lantern, or with a Light spell orb at its shoulder, leaves that light’s status icon off its token (the lit torch, Spell Effect: Light): what it holds already shows it. Off: the icons stay. Only while held lights or light orbs are drawn.
Flames in the wind On On — Out of doors, flames, torches and their smoke lean with the wind, swelling in the gusts and pressed low by the strongest. Under a roof or in a room they feel none of it. Never changes the light itself. Drawn at Balanced quality or better.
Flames in the draft On On — Where the air moves ("Drafts"), the flames of fire lights lean with it and flicker harder; when a door opens on their way out they gutter for a few seconds, then settle. Drawn at Balanced quality or better.
Effect lighting On On — Fire, lightning and other glowing effects light up the scene around them while they play (lasting areas and auras until they end), blocked by walls like any light.
Effect lighting in daylight On — — Also add a soft coloured glow around effects in fully lit scenes.
Flickering and flashing effect lights — On — Turn off to see effect lights as a steady glow, without flicker or strobe.

Limits

  • Heat haze over fires uses map distortion, so it shows only at Full quality with Map distortion on.
  • Most of the others are drawn at Balanced quality or better. See Performance and Quality.
  • Bad air (see Caves and Underground) makes fire lights reach less far.
  • With PF2e Visioner, effect lights only count as lighting creatures if you turn on Effect light reveals creatures. See Integrations.
  • No fire is heard until the browser has let the game play sound.

See also

Sun Moon and Shadows · Fire and Smoke · Caves and Underground · Breakable Props · Scene and Region Options · Sounds and Voices

Technical details

For developers and the curious. Read from the 3.2.2 code, with 3.3.0's changes added, and not run or measured.

Source: scripts/engines/motion/ lamp-air.mjs, held-torch.mjs, held-lantern.mjs, light-flames.mjs, light-orb.mjs, fire-smoke.mjs, flame-wind.mjs and wall-reach.mjs, and scripts/engines/lighting/ effect-lights.mjs and light-host.mjs.

Quality. Most use rank at least 2 with the world and ...Local switches: on at Full, Light and Balanced, off at Low and Off, with no simplified variants. Effect lights differ, as described below.

Sparks, dust and draft flames

createLampAir is one full-scene PIXI.Mesh, ADD, output alpha 0, in glowRoot and clipped to sight. There are no CPU particles.

  • Limit: MAX_FIRES = 24, passed as uFires[24], uReachA[24] and uReachB[24].
  • Samplers: 3, uLit, uDraft and uDraftWas.
  • Mask: uLit at min(0.25, 2048 / longest side): each light is 6 stacked circles masked by its lit polygon, blurred by 2.
  • Rebuild: debounced by 400 ms on light and wall changes.
  • Per frame: the clock and uDraftMix. look is throttled to 250 ms, or 50 ms near a gust.
  • Which fires: fire lights within 2 squares of the view, nearest first, cut to 24.

Comment and code differ: the header says "a dungeon of torches costs what one does". The shader loops over uCount fires with distance skips, so the cost is bounded, not constant. It also appears a token's own light is never counted as a fire here, so a carried torch throws no shader sparks. Read from the code, not tested.

Smoke in the air

A second mesh sharing that geometry, Normal blend, premultiplied, on sortLayer 760. Samplers: uSmoke, uFill, uDraft and uDraftWas. uFill comes from createSmokeAir in indoor-air.mjs, stepped at most every 0.25 s. It's shown only in underground scenes.

Plumes above fires

fire-smoke.mjs is CPU particles, one PIXI.Sprite per puff from a shared soft disc.

  • Limits: SMOKE_CAP = 320 per engine, SMOKE_FIRES = 24, at most 3 puffs per fire per tick.
  • Rate: 10 * sqrt(size) puffs a second, with time scaled by fireSmokeAmount.
  • Layers: vaporRoot at sortLayer 900, and chimneys on chimneyRoot at 1099, just above the highest tile.
  • Colour (4.6.1, read from the 4.9.0 code): SMOKE_COLOURS holds nine colours, each with a dark and a pale ramp of four tones. smokeRamp(which, pale) picks one, falling back to grey for a missing or unknown key. The light's flags.animater.smokeColor travels with each fire, and a chimney plume uses the pale ramp.
  • Sway (4.6.2): smokeWander(key, n, span) eases between seeded random values every span puffs. smokeLean adds two, at spans 9.3 and 3.1, weighted 0.17 and 0.07. It replaced a single sine of the puff number.

Held torches and lanterns

Each torch is one PIXI.Mesh quad with the flame shader, plus PIXI.Graphics for handle, ghost, glow and sparks. The shader runs 2 fbm calls of 5 octaves per pixel, with no samplers. Glow and sparks are ADD. The handle is rebuilt only when the pose changes, while glow and sparks redraw per frame.

Lanterns reuse the flame shader, with PIXI.Graphics parts. inside and halo redraw per frame, while iron and glass redraw only on a size change. Both use torchLightRoot, zIndex 250 in canvas.interface.

Moving the real light. installTorchLight wraps Token.prototype._getLightSourceData on the client, so a held light's x, y moves to the flame, lantern glass or orb. Walls, radius and animation stay Foundry's.

Flames on map lights

Per fire, a container of flame meshes from flameMesh plus two sprites from one shared 64×64 radial texture. Torch has 1 tongue, brazier 3, bonfire 5. Per frame it only sets uniforms and sprite properties, with no Graphics redraw, and a comment says redrawing shapes "made the garbage that stalled the canvas". Sync runs every 500 ms, or 100 ms near a gust. No cap on the number of map flames was found.

Visibility. Foundry's testVisibility, then flameCovered. A map's foreground picture hides a fire only if it covers at least FIXTURE_AROUND = 6 of 8 surrounding points.

Light orbs

A PIXI.Mesh with ORB_FRAG (fbm 4 octaves, no samplers), plus 4 PIXI.Graphics motes per orb, ADD. Dancing Lights makes 4 wisps, and other lights 1. The orb shader isn't in the warm-up list.

Wind and walls

flame-wind.mjs is pure and outputs { lean, dip, drift }. Comment and code differ: its header says nothing here changes a real light, which holds for that file. But gutterFlames in main.mjs adjusts anim.intensity, speed and seed on the live Foundry light source's animation object on this client. The document isn't changed.

wall-reach.mjs casts 8 octants with a 3-ray fan each, default 4 squares. A wall counts if move > 0, so movement restriction, not light restriction, is what stops sparks and smoke.

Effect lights

No Animater shader here: each is a Foundry light source from CONFIG.Canvas.lightSourceClass, drawn by Foundry's lighting.

  • Planning: the client that starts an animation plans once in effect-lights.mjs, and the plan travels as animaterLight on the Sequencer effect's data. perAnimation = 3 spot lights plus 3 flight glows. Radius is clamped to MIN_SQUARES = 1 and MAX_SQUARES = 12.
  • Host: max = 8 lights per client. When full, a new one-shot is skipped.
  • Per frame: source.data.alpha and luminosity are written and source.refresh() is called, keeping the wall polygon. Changes under LEVEL_STEP = 0.002 are skipped. At most one canvas.perception.update per frame.
  • Saved: nothing.
  • Quality: no check in the host. Lights ride tier 0 effects, which reach every level but Off.

Fire sounds (new in 3.8.9, changed in 3.8.10)

Read from the code after 3.8.12, not tested live.

scripts/engines/sound/fire-sound.mjs is pure. firesHeard gives each fire a level of (1 - distance / reach)² from the nearest listener, with FIRE_REACH of 4, 2.5, 6, 9 and 5 squares for torch, lantern, brazier, campfire and pot, and keeps the FIRES_HEARD = 4 loudest by level times FIRE_VOLUME. A pot is heard twice: its bubbling, and a brazier at POT_FIRE = 0.5. fireVoiceFor hashes the light's or token's key to pick the recording and a rate within FIRE_PITCH = ±0.07. fireStart picks a random start in the loop. Since 4.0.0: fireVoiceFor takes a turn, moving on to the kind's next recording each time, and fireNextIn says when to start the next one so it has faded in over FIRE_CROSSFADE = 3 seconds by the end of the current one. The torch list is two recordings.

In main.mjs, readFires lists placed lights that sound (soundsLight: the fireSound flag, else whether it burns) on the current level, plus tokens whose held light is a torch or lantern, unless that screen's heldFireSounds is off. It's listed at most once a second and voiced every 500 ms. A wall between, by Foundry's sound backend, scales a fire to 0.35. The per-client fireVolume (0 to 2) multiplies it. Voices share the river loops' voiceAt, which fades rather than restarts and stops a loop only after a quiet hold.

Sparks. New in 3.8.7. The light's sparks flag decides sparks and embers on its own, apart from heatHaze.

Clone this wiki locally