This version
Four lookups in a 256-entry sine table per pixel, one of them on the distance to a wandering point, recomputed every frame.
How this version works
This version recalculates the plasma across a 320-pixel-wide buffer every frame. It adds horizontal, vertical, diagonal and radial samples from a 256-entry sine table, with independently advancing integer phase offsets. The radial term measures distance from a centre that wanders horizontally and vertically over time. The sum becomes a wrapped index into the VGA gradient, with an additional colour offset advancing independently of the wave phases.
The trick in this version
Table lookups and masking with 255 replace repeated sine evaluations for the wave terms. The vertical lookup is shared across each row, although the moving centre still uses trigonometric functions and the radial distance still requires a square root per pixel.
Historical context · PC
1993 · Future Crew · Second Reality
Plasma becomes a surface
Second Reality, winner at Assembly 1993, wraps an animated plasma around a spinning cube, no longer a full-screen background but a texture computed every frame.
1988 · Bret Mulvey
The palette-cycled fractal plasma
A diamond-square ‘plasma cloud’ is generated once, then animated purely by cycling the hardware palette, distributed on CompuServe. A different idea from the per-frame sine plasma that followed.
2013 · Future Crew
The original source code is released
For Second Reality's twentieth anniversary the full source is published, so the 1993 plasma can be studied line by line instead of reconstructed from video.
- Platform
- PC · 486 · 320×200
- Era
- PC
- Rendered on
- CPU
- Tags
- lookup tables · 256 colours