🔳 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).
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
| Name | Survive | Born | Behavior |
|---|---|---|---|
| Cloud 1 | 13–26 | 13,14,17,18,19 | Billowing cloud masses |
| Crystal Growth | 5,6,7 | 6 | Angular crystal lattices |
| Amoeba | 9–26 | 5,6,7,12,13,15 | Crawling amoeba blobs |
| Pyroclastic | 4,5,6,7 | 6,7,8 | Lava-like spreading flow |
| 445 | 4 | 4,5 | Sparse 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.
Explore 3D cellular automata with Moore neighborhood (26 neighbors). Famous rules: Cloud, Crystal Growth, Amoeba, Pyroclastic. Three.js voxel rendering.
3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install