This version
Fabien Sanglard's reconstruction of the PSX Doom fire: 37 palette indices, each copied one row up with a random sideways hop and decay.
How this version works
A 320-pixel-wide byte buffer holds indices into a 37-colour palette, with the bottom row initialised to the hottest index, 36. Each non-zero cell is copied one row upwards with a random horizontal displacement from two pixels left to one pixel right. The same random choice subtracts either zero or one from the heat, while zero-valued cells clear the pixel directly above. Updates run in place, column by column, producing streaks rather than the softened spread of four-sample averaging.
The trick in this version
Heat and colour share the same small index range, so transport needs only a copy, an offset and a small decrement. Horizontal displacement uses linear buffer addresses without clamping to individual row edges.
Historical context · PC
1995 · PlayStation Doom team
The Doom fire
The title-screen fire moves palette-indexed heat upward with random decay and sideways displacement, not the four-neighbour average.
1993 · Javier ‘Jare’ Arévalo / VangeliSTeam
FIREDEMO
Coded 9–10 May 1993 and released with source: the first famous fire effect, months before Iguana's Inconexia. Hans Wennborg's walkthrough quotes Jare on how it works.
1993 · Iguana · Inconexia
Fire in a full demo
Shown at Assembly 1993: the fire as part of a complete production, beyond a stand-alone experiment.
- Platform
- PlayStation · 37 colours
- Era
- PC
- Rendered on
- CPU
- Tags
- Doom · 37-colour palette