Metaballs

Version 15 of 21

SDF + smooth min.

Quilez, ~2008 · ~2008

This version

Balls as signed distance, blended with smin(). Sphere tracing, Phong and Fresnel.

How this version works

Five moving sphere distance functions, with alternating radii of 0.42 and 0.48, are blended using a polynomial smooth minimum. At render scale 0.75, rays take up to 90 distance-based steps to find the surface. Finite-difference normals drive an orange-red diffuse material, a white specular highlight and a blue Fresnel-style rim, followed by a gamma adjustment.

The trick in this version

Smooth minimum joins distance primitives without constructing a mesh or summing density fields. Distance-based stepping can cross empty space in large increments.

Historical context · GPU

  1. ~2008 · Iñigo Quilez

    SDF & smooth minimum

    Iñigo Quilez popularises raymarching signed distance fields and smin(): metaball-like blending in a single line of code.

  2. 2011 · CNCD & Fairlight

    Numb Res

    CNCD & Fairlight release Numb Res at The Gathering 2011 (2nd place). A realtime SPH fluid of half a million particles on the GPU: blobs that flow, splash and are viscous, in grainy black and white.

  3. 2013 · Shadertoy community

    Shadertoy

    Thousands of blobs in a few hundred characters of GLSL. Metaballs become the ‘hello world’ of raymarching.

Platform
Quilez, ~2008
Era
GPU
Rendered on
GPU
Tags
3D · SDF
Sources
SDF & smooth minimum (~2008)Numb Res (2011)