Bump mapping

Version 1 of 7

2D bump.

PC · VGA mode 13h · 1995

This version

An embossed monogram, rivets and noise, lit by a wandering light through a precomputed light spot, two subtractions and a table read per pixel, in copper tones.

How this version works

This CPU version renders at 320 pixels wide using a cached 256×256 height map of noise, raised DL lettering and rounded rivets, softened with a 5×5 blur. Differences between neighbouring heights offset each pixel's lookup into a precomputed 512×512 light spot with a power of 1.8. The light follows separate sine and cosine paths across the stationary surface. Brightness selects a copper-toned, 256-entry palette, with a minimum index of 14 to keep unlit areas faintly visible.

The trick in this version

The VGA-style palette turns one brightness value into a shaded colour. The light-spot lookup replaces normal normalisation and lighting dot products, while bit masking wraps height-map coordinates at 256.

Historical context · PC

  1. 1995 · Orange · The Sea Robot of Love

    2D bump on DOS

    Cited in Scout's coding article as a 2D bump example: per-pixel x/y offsets into a precomputed lighting map. Shown at The Party 1995.

  2. 1996 · Oxygene · Contrast

    The bumped ripple floor

    Winner of the PC demo compo at Saturne Party 1996 (code by Oxbab). One scene lays a water-ripple image, tiled, as a floor in perspective and runs bump lighting across it: per-pixel relief on a moving 3D plane instead of a flat screen. For many, the most beautiful bump of the era.

Platform
PC · VGA mode 13h
Era
PC
Rendered on
CPU
Tags
light map · 256 colours
Sources
2D bump on DOS (1995)The bumped ripple floor (1996)