Skip to content
h-voidPublic

About

Coupled Gray-Scott morphogenesis, 262k-agent GPU Physarum, async PBO radial optical-sound synthesis & raycasted 3D virtual black-box gallery (WebGL2 + AudioWorklet)

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

MORPHOS // 菌脈・聲場

Coupled Gray-Scott Morphogenesis, 262k-Agent GPU Physarum, Radial Optical-Sound Synthesis & Virtual 3D Black-Box Gallery

Live Installation 3D Gallery Mode Pure Code License: MIT

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 — Live 2D Dish, [V] 3D Black-Box Gallery, and [P] Archival Xuan Lithograph


Artistic Proposition

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.


Mathematical & System Architecture

1. Bidirectionally Coupled Gray-Scott PDE & Multi-Species Physarum (512² × 262,144 GPU Agents)

  • Reaction-Diffusion Domain: 512 × 512 toroidal grid (gl.REPEAT) stepped at 6 explicit Euler substeps per frame ($\Delta t = 1.0, D_u = 1.0, D_v = 0.5$) via Karl Sims' 9-point isotropic Laplacian (0.05 corners, 0.20 cardinals, -1.00 center): $$\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,144 dual-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 additive gl.POINTS pheromone trails diffused by a 3 × 3 Gaussian 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 → RGBA8 16-Bit Fallback: Probes EXT_color_buffer_float at startup; when unavailable on integrated GPUs, transparently packs 16-bit hi/lo fixed-point channels into RGBA8 (gl.NEAREST) with zero visual stall or GL errors.

2. Async PIXEL_PACK_BUFFER Radial Scanner & AudioWorklet Synthesizer

  • Double-buffered gl.PIXEL_PACK_BUFFER (1024 B × 2) + gl.fenceSync reads a breathing 256 × 1 polar scan ring $r(t) = 0.28 + 0.10\sin(0.35 t)$ one frame later—eliminating GPU readback stalls without requiring SharedArrayBuffer / COOP+COEP headers.
  • public/worklets/morphos-processor.js drives 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.

3. [V] Virtual 3D Black-Box Gallery & [P] Archival Print Lithography

  • [V] Black-Box Gallery (?mode=gallery): Pure-GLSL raycasted 12m × 5.2m × 14m dark exhibition room with 3 floor-to-ceiling luminous walls, Schlick Fresnel ($R_0 = 0.045$) anisotropic satin floor reflection, and a 1.72m viewer scale silhouette.
  • [P] Archival Print Mode (?print=1): Switches colorimetry to warm #F7F4EC Xuan paper with pine-soot #141619, Prussian-blue #1B3B5F, cinnabar #C83E2B, and mineral-ochre #9E6B2B inks, with deterministic offscreen supersampled export via window.__renderArchivalPlate(plateId, width, height).

Interactive Controls & URL Contract

Input / Query Parameter Action
LMB Drag (Dish Mode) Seed radial Gaussian catalyst pulse & chemotactic attractant burst
RMB Drag (Dish Mode) Paint impermeable topological barrier $B(\mathbf{x}) = 1$
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

Local Build & Development

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

Perceptual Computation Series

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 ↗

About

Coupled Gray-Scott morphogenesis, 262k-agent GPU Physarum, async PBO radial optical-sound synthesis & raycasted 3D virtual black-box gallery (WebGL2 + AudioWorklet)

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages