All effects

u = atan(y, x) , v = 1 / r

Tunnel.

1991 to today

Endless flight down a tube. It began as rings of dots and lines, became a texture painted from two lookup tables, and is now raymarched through real geometry. It never stopped being hypnotic.

16-bitPCGPU

How it works

The algorithm

For every screen pixel, compute the angle around the centre and the distance from it. The angle becomes the texture's u coordinate and the inverse of the distance becomes v, far away is the small centre, close by is the edge. Scroll v to fly, offset u to spin, darken with distance. Earlier tunnels instead projected rings of points or polygons along a winding path.

The old-hardware trick

atan and division per pixel were far too slow, so both were precomputed once into two tables. Make the tables twice the screen size and you can slide a screen-sized window over them to move the vanishing point, the whole frame then costs two table reads, two additions and a texture fetch per pixel.

Per frame, in pseudo-code
// once
for y, x in 0..2h, 0..2w:
  ANGLE[y][x] = atan2(y − h, x − w) · 128/π
  DEPTH[y][x] = K / dist(x, y, w, h)

// per frame
for y, x in screen:
  u = ANGLE[y+oy][x+ox] + spin
  v = DEPTH[y+oy][x+ox] + fly
  pixel = shade(texture[v & 255][u & 255], depth)

Timeline

Documented milestones, with a source for each. Famous examples, not claims of who did it first.

  1. 199116-bit

    Vector Tunnel

    Milkracer / Alpha Flight + Zylon · Amiga OCS/ECS

    An early documented tunnel production in the vector tradition, before the full-screen textured look.

    Source
  2. 199116-bit

    A dot tunnel on the ST

    Channel 38 (Bluedevil's screen) · Atari ST

    Depth conveyed by moving projected dots instead of a continuous textured wall.

    Source
  3. 1993PC

    Dottitunneli

    Trug / Future Crew · Second Reality · DOS

    Second Reality's dot tunnel, credited separately and surviving as Pascal source, one of the most inspectable examples there is.

    Source
  4. 199716-bit

    A 360° free-rotating tunnel

    Spite / Subspace · Toltec 9 · Amiga · 68030 / 50 MHz

    Credits list a ‘360° Free Rotating Tunnel’ next to a water-displacement tunnel, beyond a simple fixed-axis fly-through.

    Source
  5. 1999–2000PC

    Deformation tables

    Iñigo Quilez · Rare, Storm · Software rendering

    Quilez links these demos to his lookup-table deformations: tunnels, flowers and other nonlinear warps from the same table trick.

    Source
  6. 2017GPU

    A raymarched 4K tunnel

    Wsmind / TMP · Thought Process · Windows · shaders

    Combined 4K winner at Very Important Party 2017: the screen-to-texture table replaced by geometry evaluated in a shader.

    Source
  7. 2026PC

    A tunnel made of metaballs

    Kork / MAJESTiC · Parade · PC · software rendering

    Parade, released at Evoke 2026 with no shaders at all, flies down a throat built from rings of merged blobs: an implicit field marched per pixel, then outlined, bloomed, glitched on the beat and smeared by feedback.

    Source
  8. todayGPU

    Fixing the seam

    Iñigo Quilez · tunnel article · GLSL

    On a GPU the atan seam breaks mipmapping derivatives; the article explains the fix, a problem nearest-neighbour DOS tunnels never had.

    Source

Over time

8 live versions, from the oldest platform to today: 6 on the CPU, 2 on the GPU. Retro versions run at their original resolution and palette. Demos pause when off screen.

Amiga · lines

Vector tunnel

1991

Eighteen octagon rings on a winding path, joined by lines and brightening as they near, the wireframe ancestor.

16-bitCPUwireframe12-bit colour
Detail page
PC · Second Reality style

Dot tunnel

1993

Forty-eight rings of forty dots, each ring slightly twisted, swaying along a curve. Near dots grow to 2×2.

PCCPUpoints256 colours
Detail page
PC · VGA mode 13h

Lookup-table tunnel

mid-'90s

The classic: angle and 1/distance tables twice the screen size, an XOR texture, 32 fog levels and a wandering vanishing point.

PCCPUlookup tablestexture
Detail page
Amiga AGA · 68030

Free-rotating tunnel

1997

Spinning fast and swinging wide, in a 256-colour palette from AGA's 24-bit range, the late-Amiga fly-through.

16-bitCPUAGArotation
Detail page
PC · software

Deformation table

1999

Same table trick, different formula: a five-petal radius turns the tube into a flower. One table, any warp.

PCCPUplane deformationlookup tables
Detail page
PC · software rendering

Parade metaball tunnel

2026

MAJESTiC's Parade tunnel, software-rendered from the developer's notes: rings of merged Wyvill blobs marched per pixel, drawn as an over-driven white ink drawing of a corrugated throat over a hot magenta void, punching, swelling and tearing on every beat at 140 BPM, with noisy white bars slamming across during the acceleration.

PCCPUmetaballsline-artbeat-syncedphotosensitive
Detail page
GPU · GLSL

Shader tunnel

today

atan and 1/r per pixel at full resolution, with anti-aliased grid lines from screen-space derivatives and a glowing core.

GPUGPUanti-aliasedper pixel
Detail page
GPU · SDF

Raymarched tube

2017

A real tube with ribs along a winding path, sphere-traced, lit by a light that flies ahead of you, sinking into fog.

GPUGPUraymarchingpoint light
Detail page