Plasma

Version 5 of 7

Plasma cube.

PC · DOS · 1993

This version

After Second Reality: a 64×64 plasma is recalculated every frame and texture-mapped onto a rotating cube with affine mapping and 16 shade levels.

How this version works

Each frame builds a 64×64 byte-indexed texture from three animated sine-table terms and a moving palette offset. A cube rotates around three axes and is perspective-projected into a 320-pixel-wide buffer over a dark vertical gradient. Screen-space winding rejects hidden faces, and each remaining face is drawn as two affine-textured triangles. Its rotated normal selects one of 16 precomputed shaded versions of the VGA palette, giving each face a uniform lighting level.

The trick in this version

The expensive plasma calculation is confined to a small texture rather than the whole screen. Precomputed shade palettes turn lighting into a palette choice, while affine texture mapping avoids perspective-correct interpolation and can distort the texture across receding faces.

Historical context · PC

  1. 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.

  2. 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.

  3. 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 · DOS
Era
PC
Rendered on
CPU
Tags
texture · 3D
Sources
Plasma becomes a surface (1993)The palette-cycled fractal plasma (1988)The original source code is released (2013)