Metaballs

Version 4 of 21

Marching squares: coarse.

1987 principle in 2D · 1987

This version

24 px grid, 16 cases per cell, linear interpolation along edges. The grid is visible.

How this version works

The CPU stores field samples at 24-pixel intervals in a Float32Array. Each cell's four corners select one of 16 contour cases at threshold 1. Linear interpolation positions the line endpoints along cell edges, and the resulting orange contour is drawn over a faint visible grid.

The trick in this version

A small lookup table turns corner classifications into line segments without testing every pixel. Ambiguous cases use fixed segment pairings rather than an additional field test.

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
1987 principle in 2D
Era
PC
Rendered on
CPU
Tags
2D · line-art · coarse
Sources
Stash: the 4D fractal blob (1997)Parade: an ode to metaballs (2026)