Coupled Gray-Scott Morphogenesis, 262k-Agent GPU Physarum, Radial Optical-Sound Synthesis & Virtual 3D Black-Box Gallery
Solo Self-Initiated Work · Part I of the Perceptual Computation pure-code media series
Zero photography · Zero video · Zero external audio, texture, 3D model, or font files · Zero camera/microphone permission walls.
MORPHOS (菌脈・聲場) explores decentralized biological intelligence and generative audiovisual form. Rather than rendering a static Turing pattern that settles into thermodynamic equilibrium, the system bidirectionally couples a continuous 512 × 512 nine-point Gray-Scott reaction-diffusion substrate with 262,144 GPU-resident dual-species Physarum polycephalum chemotactic agents. Pheromone trails continuously perturb local feed rates and catalyze nutrient conversion so bifurcating mycelial topologies stay perpetually alive, while a rotating radial optical scanner translates chemical density asynchronously into a real-time 32-band Just-Intonation modal & micro-granular soundscape.
-
Reaction-Diffusion Domain:
512 × 512toroidal grid (gl.REPEAT) stepped at6explicit Euler substeps per frame ($\Delta t = 1.0, D_u = 1.0, D_v = 0.5$ ) via Karl Sims' 9-point isotropic Laplacian (0.05corners,0.20cardinals,-1.00center):$$\partial_t u = D_u \nabla^2 u - u v^2 + f_{\text{eff}}(\mathbf{x})(1 - u)$$ $$\partial_t v = D_v \nabla^2 v + u v^2 - \bigl(f_{\text{eff}}(\mathbf{x}) + k\bigr)v + \beta_{p \to v},\bar{T}(\mathbf{x})(1 - v)$$ -
WebGL2 Transform Feedback Chemotaxis:
262,144dual-species agents ($s \in {0, 1}$ ) sample forward offsets$(-\theta_s, 0, +\theta_s)$ at distance$SO$ along nutrient-rich coral margins:$$C_s(\mathbf{x}) = 1.25,T_s(\mathbf{x}) - \gamma_{\text{rep}} T_{1-s}(\mathbf{x}) + 1.35,v(\mathbf{x})\max\bigl(0,,1 - 2.35,v(\mathbf{x})\bigr) - 10.0,B(\mathbf{x})$$ depositing additivegl.POINTSpheromone trails diffused by a3 × 3Gaussian kernel ($\tau_{\text{decay}} = 0.93$ ) and feeding back into Gray-Scott via$\beta_{p \to v} = 0.0035$ and differential feed$f_{\text{eff}}(\mathbf{x}) = f + 0.004(T_0 - T_1)$ . -
Automatic
RGBA16F → RGBA816-Bit Fallback: ProbesEXT_color_buffer_floatat startup; when unavailable on integrated GPUs, transparently packs 16-bit hi/lo fixed-point channels intoRGBA8(gl.NEAREST) with zero visual stall or GL errors.
- Double-buffered
gl.PIXEL_PACK_BUFFER(1024 B × 2) +gl.fenceSyncreads a breathing256 × 1polar scan ring$r(t) = 0.28 + 0.10\sin(0.35 t)$ one frame later—eliminating GPU readback stalls without requiringSharedArrayBuffer/ COOP+COEP headers. -
public/worklets/morphos-processor.jsdrives 32 Just-Intonation Cytomic ZDF-SVF bandpass resonators (55–3,300 Hz,$Q \in [22, 55]$ ) excited by procedural Paul Kellet pink/velvet noise, layered with a 6-grain Hann-windowed stereo FM cloud (30–85 ms) triggered by$|\nabla v|$ wavefront spikes.
-
[V]Black-Box Gallery (?mode=gallery): Pure-GLSL raycasted12m × 5.2m × 14mdark exhibition room with 3 floor-to-ceiling luminous walls, Schlick Fresnel ($R_0 = 0.045$ ) anisotropic satin floor reflection, and a1.72mviewer scale silhouette. -
[P]Archival Print Mode (?print=1): Switches colorimetry to warm#F7F4ECXuan paper with pine-soot#141619, Prussian-blue#1B3B5F, cinnabar#C83E2B, and mineral-ochre#9E6B2Binks, with deterministic offscreen supersampled export viawindow.__renderArchivalPlate(plateId, width, height).
| Input / Query Parameter | Action |
|---|---|
| LMB Drag (Dish Mode) | Seed radial Gaussian catalyst pulse & chemotactic attractant burst |
| RMB Drag (Dish Mode) | Paint impermeable topological barrier |
C |
Clear all painted topological barriers |
1 – 5 |
Switch morphogenesis regimes (1 Coral Dendrites · 2 Mitosis · 3 Labyrinth · 4 Spiral Waves · 5 Vermilion Web) |
V / ?mode=gallery
|
Toggle 2D Dish ↔ 3D Raycasted Black-Box Exhibition Gallery |
P / ?print=1
|
Toggle [P] Archival Xuan Lithograph mode (Escape exits) |
M / Audio Pill |
Unlock procedural AudioWorklet sound on first gesture (150 ms ramp), then toggle mute |
?lang=en | ?lang=zh-HK
|
Interface language (en default) |
?seed=<u64> |
Bit-exact 64-bit Rng64 Xorshift64* seed (default 1468) |
?preset=<1..5> |
Boot into preset 1..5
|
npm ci
npm run dev # Local Vite dev server (http://127.0.0.1:4101)
npm run build # Strict TypeScript check + relative-base Vite production bundle -> dist/
npm run preview # Serve production dist/ locally| Work | Title | Medium & Algorithms | Live Interactive Work |
|---|---|---|---|
| 01 | MORPHOS // 菌脈・聲場 (this repo) | WebGL2 Gray-Scott PDE · 262k GPU Physarum · Async PBO AudioWorklet · [V] 3D Gallery |
Launch ↗ |
| 02 | CAUSTIC COLLIMATION // 光軸與焦散 | WebGL2 3D Implicit SDF Optical Bench · Snell/TIR · 7-Band Cauchy · Beating Overtone Prism | Launch ↗ |
| 03 | POLYGLOT DRIFT // 語流・字陣 | Zero-Asset HK CJK Canvas2D · WebGL2 1+JFA SDF · O(KN log N) Sliced OT · 3-Formant Audio |
Launch ↗ |
| 04 | COLLIMA // Seeing Before the ISP | Rust 2024 + WebAssembly · 14-Bit Synthetic .DNG · Pre-Demosaic WLS Tilt & HCG Noise Lab |
Launch ↗ |