Metaballs

Version 19 of 21

Stash blob: CPU.

as in 1997 · 1997

This version

Like the original: the 4D fractal is sampled on a 3D grid, turned into triangles with marching cubes, rotated and filled per pixel with our own rasterizer: grey metal with a mostly neutral env map and Phong highlight.

How this version works

The CPU samples a changing quaternion Julia potential, including the trigonometric cutting field, on a 30×30×30 cell grid. Marching cubes uses a triangle lookup table and interpolated edge crossings to extract the zero surface. The rotating triangles are rasterised into ImageData at scale 0.5 with a depth buffer and interpolated normals. Per-pixel lighting combines a grey base, a procedural environment band, Fresnel shading and a specular highlight.

The trick in this version

This version trades per-pixel fractal raymarching for grid sampling, polygon extraction and software triangle filling. A Float32Array depth buffer resolves visibility, while barycentric weights interpolate depth and normals.

Historical context · PC

  1. 1997 · The Black Lotus

    Stash: the 4D fractal blob

    The Black Lotus wins the PC 64k compo at The Party 1997 with Stash. One of the effects: a pulsing ‘4d fractal blob’, built realtime from polygons via marching cubes, in 64 kilobytes.

  2. late '90s · 3D packages

    Metaballs in 3D packages

    Modelling software (including Blender's Meta objects) makes blobs a standard tool for organic shapes and liquids.

  3. 2026 · Majestic (Kork)

    Parade: an ode to metaballs

    Majestic (Kork) releases Parade at Evoke 2026: fully software-rendered, no shaders. At the end, a pink/lilac figure marches across the screen, arms, legs, torso and head, all one blob field.

Platform
as in 1997
Era
PC
Rendered on
CPU
Tags
4D · marching cubes · Phong
Sources
Stash: the 4D fractal blob (1997)Parade: an ode to metaballs (2026)