This version
The Comanche algorithm: a 512×512 diamond-square height map, a slope-lit colour map with water, grass, rock and snow, a y-buffer and distance fog.
How this version works
This 320-pixel-wide CPU renderer samples a wrapping 512×512 diamond-square map, storing heights as bytes and prelit colours separately. Height bands select water, sand, grass, rock and snow, with neighbouring height differences shading the land. It projects terrain slices from near to far, filling only spans that rise above the existing per-column horizon. The camera eases towards 70 units above the ground, while a height scale of 1.1 and a viewing distance of 420 produce the terrain projection. Squared distance blends terrain into pale blue fog, with terrain and the 64-step sky passed through the VGA colour helper.
The trick in this version
One height and one colour per map position replace polygon geometry, but cannot describe overhangs. A floating-point horizon buffer rejects hidden spans, and progressively larger depth steps reduce distant sampling.
Historical context · PC
1992 · NovaLogic · Comanche
Comanche's Voxel Space
Terrain from a height map and a colour map instead of polygons, a 2.5D height field, not a volumetric voxel world, but the name stuck.
1993 · Tim Clarke
Mars
Navigable procedural Martian terrain in a roughly 5 KB executable; the surviving disassembly project preserves a detailed reconstruction.
1994 · Tim Clarke
‘Voxel landscapes and how I did it’
Clarke explains Mars: a wrapping 256×256 height and colour map, terrain by recursive subdivision, and visibility like a floating horizon.
- Platform
- PC · VGA · 320×200
- Era
- PC
- Rendered on
- CPU
- Tags
- y-buffer · height map