HomeMathematics3D Cellular Automaton — Survival/Birth Rules

🔳 3D Cellular Automaton — Survival/Birth Rules

Explore 3D cellular automata with Moore neighborhood (26 neighbors). Rule notation: S/B = survive if n∈S neighbors, born if n∈B neighbors. Famous rules: 5766 (crystal), 4555 (moving), 678/3 (amoeba).

Mathematics3DEasy60 FPS🔥 Fire
cellular-automaton-3d ↗ Open standalone

About 3D Cellular Automata

A 3D cellular automaton (CA) is a discrete dynamical system defined on a three-dimensional lattice of cells. Each cell is either alive (1) or dead (0). At every generation, every cell simultaneously inspects its neighbors and applies a simple local rule to determine its next state. Despite the simplicity of the rule, emergent global structures — crystals, amoebae, clouds, volcanic flows — appear spontaneously.

The most studied neighborhood in 3D is the Moore neighborhood: all cells within Chebyshev distance 1 in x, y, and z. That gives 3³ − 1 = 26 neighbors. A cell's fate depends only on how many of those 26 neighbors are currently alive — making this an outer totalistic rule.

S/B Rule Notation

Rules are written as S n₁,n₂,… / B m₁,m₂,…:

  • S (Survive): a living cell with exactly n ∈ S living neighbors stays alive next generation.
  • B (Born): a dead cell with exactly m ∈ B living neighbors becomes alive next generation.
  • Any other cell dies (or stays dead).

Because neighbor counts range from 0 to 26, the theoretical rule space is enormous: 2²⁷ × 2²⁷ ≈ 3.6 × 10¹⁶ possible S/B combinations. Only a tiny fraction have been studied — most either die instantly, explode to fill the grid, or converge to random static noise. The presets below are among the most visually rich.

Famous 3D CA Rules

NameSurviveBornBehavior
Cloud 113–2613,14,17,18,19Billowing cloud masses
Crystal Growth5,6,76Angular crystal lattices
Amoeba9–265,6,7,12,13,15Crawling amoeba blobs
Pyroclastic4,5,6,76,7,8Lava-like spreading flow
44544,5Sparse wandering cells

Cell Age Colouring

Cells are coloured by how many generations they have been alive. Newborn cells glow bright amber/yellow (#fbbf24). As cells age through 5 generations they shift to deep orange (#f97316), and cells older than 15 generations burn deep red (#dc2626). This reveals internal structure — new growth is bright at the surface while ancient cores are dark red.

⚙ Under the hood

Explore 3D cellular automata with Moore neighborhood (26 neighbors). Famous rules: Cloud, Crystal Growth, Amoeba, Pyroclastic. Three.js voxel rendering.

cellular automaton3DMoore neighborhoodvortexThree.jsvoxel

3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)