3D Mesh / Geometry

Polygonal 3-D mesh modelling is foundational computer graphics from the early 1970s (e.g. Martin Newell's Utah teapot, 1975). A general CG primitive with no single first in generative art.

community / folk Name — A descriptive category label, not a coined or eponymous name; no single coiner of the term is attested.

In one line Building, deforming and rendering 3D meshes (with three.js, regl, etc.) as the core of a piece — covering procedural geometry generation and instanced drawing.

3D Mesh / Geometry · Open in new tab ↗ · Motion begins only when you press Run.

The code

The actual sketch behind the demo above — sandboxed and reproducible. This is the whole thing.

mesh-3d/index.html
const SEED = Math.floor(Math.random()*1e9);

// p5 WEBGL: a rotating displaced sphere of cubes (instanced look) with
// per-instance hue. Demonstrates 3D mesh assembly + lighting.
let pts = [];
let hueBase;

function setup() {
  randomSeed(SEED); noiseSeed(SEED);
  const s = Math.min(windowWidth, windowHeight);
  createCanvas(s, s, WEBGL);
  colorMode(HSB, 360, 100, 100);
  hueBase = random(360);

  // Fibonacci sphere of points, radius modulated by noise.
  const N = 360;
  const R = s * 0.30;
  const ga = Math.PI * (3 - Math.sqrt(5));
  for (let i = 0; i < N; i++) {
    const y = 1 - (i / (N - 1)) * 2;
    const r = Math.sqrt(1 - y * y);
    const th = ga * i;
    const nx = Math.cos(th) * r, nz = Math.sin(th) * r;
    const disp = 1 + noise(nx * 1.2 + 9, y * 1.2, nz * 1.2) * 0.5;
    pts.push({ x: nx * R * disp, y: y * R * disp, z: nz * R * disp, n: y });
  }
}

function draw() {
  background(230, 40, 8);
  const s = width;
  ambientLight(0, 0, 35);
  directionalLight(0, 0, 100, 0.4, 0.6, -0.7);
  pointLight((hueBase + 60) % 360, 60, 100, 0, 0, s);

  rotateY(frameCount * 0.006);
  rotateX(Math.sin(frameCount * 0.004) * 0.5 + 0.4);

  noStroke();
  const bsz = s * 0.018; // NB: don't shadow p5's box()
  for (const p of pts) {
    push();
    translate(p.x, p.y, p.z);
    const h = (hueBase + (p.n + 1) * 90) % 360;
    ambientMaterial(h, 65, 92);
    box(bsz);
    pop();
  }
}

Open the demo source ↗

How it works

A mesh is vertices (positions, plus normals/UVs/colours) joined into faces by an index list. A generative 3D piece typically: 1. Generates geometry — start from a primitive, or build vertices procedurally (extrude a path, revolve a profile, subdivide, march an isosurface, or grow a form), and compute normals. 2. Deforms it — displace vertices by noise, a flow field, or per-frame physics; morph between targets; or animate in a vertex shader on the GPU. 3. Renders — feed the buffers to the GPU, shade with materials/lighting, and draw (optionally instanced for many copies); a camera projects it to 2D. The look comes from how vertices are placed and moved; keeping the mesh on the GPU and only updating attributes keeps large geometry real-time.

Parameters

Lineage

Related
Instanced Geometry, Delaunay Triangulation

Frequently combined with

Works using this algorithm (57)

Anticyclone
william-mapan
Assemblage
sab-k2xl
Augmented Sequence
toiminto
Autoscope
erik-swahn
Beauty of Skateboarding
jeanvascript
⧉ Cube³s
paul-prudence
Captives #B04
quayola
celestial cyclones
hideo
Colorspace
tabor-robak
Cosmodesias
santiago
Crystallization
iris-van-herpen
curio
corneel-cannaerts-luis-e-fraguada
Cybernetic Landscape I
aaron-marcus
Democracity
generative-artworks
Ego Death
electralina
Funktor
erik-swahn
Fushi No Reality - フシノゲンジツ
samsy
Galaxiss
xenoliss
Gas Wars
jack-butcher
Geometry Runners
rich-lord
Immaterial
bj-rn-staal
Invasion Percolation
barabasilab
Isodream
henrysdev-amnda
Jiometory No Compute - ジオメトリ ハ ケイサンサレマセン
samsy
Kai-Gen
takeshi-murata-christopher-rutledge-j-krispy
Lava Glow
jeanvascript
mecha suits
hideo
Metropixeland
fernando-jerez
Mind Maze
parse-error
Neophyte MMXXII
sterling-crispin
New Nature
marpi
OnChainChain
rizzle-sebi-miguelgarest
Organized Disruption
joshua-davis
Panelscape 🅰🅱
paolo-tonon
Paths
darien-brito
Paysage 17.219
joanie-lemercier
Pigments
darien-brito
PrimiDance
wuwa
PrimiEnd
wuwa
PrimiLife
wuwa
Quarantine
owen-moore
Quintrino
bathsheba-grossman
Race Condition
jonas-lund
Stations
fernando-jerez
Structura
office-ca-protocelllabs
Subdivided Columns
michael-hansmeyer
Sunstone
ed-emshwiller
The Eternal Pump
dmitri-cherniak
The Wrapture
dmitri-cherniak
Tout tracé
florian-zumbrunn
Transjovian Pipeline
david-em
undead wyverns
hideo
Vahria
darien-brito
Vortex
jen-stark
VOXΞL
jeanvascript
Yume no Sekai
kira0
Zupermat
0xphiiil

Last updated 2026-07-16