Skip to content
Andrew Voirol
Work → Nocturne Observatory: WebGPU Pinball, Blueprint-Locked Art & Procedural Acoustics → Building Nocturne Observatory: Single-Spec WebGPU Pinball & Procedural Acoustics
ThreadActive

Building Nocturne Observatory: Single-Spec WebGPU Pinball & Procedural Acoustics

Locking blueprint-guided AI art, faceted leaded stained glass, 18 headless Blender 5.2 hardware assemblies, 480 Hz multiball physics, and zero-sample WebAudio around one JSON table contract.

↗ Live
Started Nov 18, 2026·Latest Nov 19, 2026·3 entries

The hardest part of building a convincing 3D pinball machine in the browser isn't drawing shiny spheres — it's keeping four completely different pipelines agreeing on where every bumper, post, scoop, and stained-glass jewel actually lives. The moment playfield artwork drifts even 6–8 px from collision geometry, bank shots feel rigged and illuminated inserts bleed awkwardly outside their bezels.

Starting from one canonical JSON layout specification (nocturne.json) solved that alignment drift permanently. Python scripts render text-free orthographic blueprints directly from the spec to condition the gold-leaf astrolabe art, affine-register the result back into 1024×2048 UV space within ±2 px, and emit 3-channel stained-glass masks separating crisp glass panes, angular crystal facets, and non-emissive dark lead cames. Headless Blender 5.2 scripts export 18 .glb cabinet and mechanical hardware assemblies onto the same coordinates, while a 480 Hz continuous physics engine with 560-trial Monte-Carlo anti-stall fuzzing and automatic solenoid ball-search guarantees zero wedged balls.

The final interactive craft passes made the biggest perceptual difference. Playtesting caught two things unit tests couldn't: a low bloom threshold (0.96) plus overly bright PMREM reflection strips made the chrome ball look like a glowing orb, and a 60/120 Hz oscillator ambient hum sounded like a broken ground loop instead of a quiet observatory. Raising the selective bloom threshold to 1.55, upgrading the tempered playfield glass with parallax reflection bands, replacing the stark backdrop with a vaulted starry observatory dome + 160 drifting gilded dust motes, and rebuilding the WebAudio graph around two-stage EOS flipper solenoids and a 60 BPM brass pendulum room ambience turned a solid prototype into a 120 fps launch-grade table.

Latest Update

Fixing the glowing chrome ball, tempered glass reflections, and observatory acoustics

Thu, Nov 19, 2026

Timeline

I wired the entire Nocturne Observatory pipeline around a single JSON layout spec so generated playfield art, PBR maps, and 480 Hz collision walls never drift apart. Rather than hand-placing textures over approximate colliders, render_blueprints.py renders a text-free 1024×2048 orthographic conditioning blueprint directly from nocturne.json, then derive_playfield_maps.py affine-registers the generated gold-leaf astrolabe art back into exact 1:2 UV space within ±2 px. The same pass emits a 3-channel stained-glass insert mask (insMask.r pane window, .g per-facet angular cut-crystal weight, .b dark non-emissive lead-came bezel) alongside derived roughness and normal maps. On the WebGPU side, placing all texture(...) taps unconditionally at the top of the TSL emissiveNode keeps WGSL uniform control flow happy while rendering illuminated constellation jewels as crisp leaded cathedral glass instead of blurry radial glow patches.

WebGPUShadersDesign
Permalink →

Pinball tables always hide one impossible dead pocket you never find in ten manual launches, so I built a 560-trial Monte-Carlo anti-stall fuzzer to hunt them down automatically. Across 280 randomized and targeted feature-stress playthroughs on Nocturne Observatory, the harness caught a subtle resting pocket on right_goal_top_deflector where slow caroms could wedge against goal_n, letting me tune the deflector geometry and lock in a permanent regression test alongside Williams/Stern-style automatic solenoid ball-search (< 0.025 m/s for > 2.5 s). In parallel, I expanded the headless Blender 5.2 LTS asset builder (build_blender_assets.py) to 18 .glb assemblies — adding sculpted lockbar/apron plates, backbox framing, animated diverter gates, a spinning Astrolabe hero toy, and tempered playfield glass — verified live at 120 fps on hardware Metal WebGPU with 96/96 Vitest tests green.

WebGPU
Permalink →

First live playtest immediately exposed two things no unit test catches: the chrome pinball looked like a glowing orb, and the observatory ambience sounded like an electrical ground loop. The culprit on the optics side was simple math — PMREM studio strips at 5.2× combined with ballMat.envMapIntensity = 2.65 and a 0.96 bloom threshold pushed metallic reflections past 17.0 linear radiance right into bloom, while point-blank dynamicPointLights at y = 0.085 m blew out bumper clearcoat. Raising bloom threshold to 1.55 (strength = 0.15), dialing ball reflectance back to realistic carbon-chrome (#dfe6f0, envMapIntensity = 1.32), upgrading GlassPane with parallax-shifting reflection bands, and pairing a vaulted starry observatory dome backdrop with 160 drifting gilded dust motes snapped the table into focus. On the audio side, I ripped out the raw 60/120 Hz hum completely, pre-baked a 6-second horological dome room bed with a subtle 60 BPM brass pendulum escapement, and rebuilt flippers around a real two-stage solenoid (t = 0 coil snap + +16 ms End-of-Stroke stop thwack into a 110 Hz wood cabinet resonator).

WebGPUShadersDesignApple SiliconShipping
Permalink →

Andrew Voirol

Builder, hacker, shipper. Currently leaving localhost.

Navigate

WorkThreadsBuilder's LogAboutContactRSS Feed

Connect

X / TwitterGitHubLinkedIn

© 2026 Andrew Voirol·Back to top ↑
✦Just one prompt away from figuring it all out.