Cyberspace
// zero-framework WebGL2 · 58 KB gzipped · 2 levels · UE1 fog · live Fire.dll Wasm · procedural audio
Every note, experiment, and Rust/WebAssembly lab on jeromem.dev arranged inside a walkable brutalist obsidian sanctuary — plus a rain-slicked Level 02 Megastructure Rooftop Observatory upstairs. Click anywhere on desktop for native FPS mouse-look (WASD to walk, Shift to sprint, 1–6 to warp between wings & rooftop, F to emit a multiplayer Matrix sonar ping, E or click to jack into a kiosk without leaving 3D, M for the BSP radar, Esc for cursor). On mobile, use the left virtual thumbstick to move, drag anywhere to look, tap ping, or open map to warp.
Launch fullscreen Cyberspace ↗ (recommended on desktop — zero frameworks, 120 fps WebGL2; or type jackin in the site's ` shell).
Floorplan
The sanctuary is a 56 m × 56 m cruciform hall built around a 12 m central rotunda:
- 1 · Central Atrium — Rotating 3D knowledge constellation generated live from
/graph.json, flanked by two verticalFire.dllWebAssembly plasma screens (amber fire and cyan Nano-EMP) under a cool skylight coffer. - 2 · East Wing — Labs Gallery — All 10 playable Rust/Wasm Labs (
Fire.dll,Galaxy,Scope,Optics,Modem,Byte,Spectrogram,Intro,Chiptune,Dither) framed in ribbed anodized steel, ending at a 6 m liveFire.dllplasma apse. - 3 · North Wing — Experiments Hall — Deus Ex in the Browser hero mural, floating wireframe dual-polyhedron sculpture, and all 6 other Experiments.
- 4 · West Wing — Notes Archive — Six 5.2 m obsidian monoliths dynamically typeset from
/search.json, clustering every technical note on rendering, voxels, UE1 reverse engineering, GPU APIs, and typed languages down to a recessed architectural light slit. - 5 · South Alcove — Signal — Engraved William Gibson quote wall, terminals for Home, Résumé, Now, and Reading, plus the Brutalist Elevator Core up to Level 02.
- 6 · Level 02 — Rainy Megastructure Rooftop Observatory — Ride the lift out of the underground bunker onto a rain-slicked helipad deck overlooking 52 procedural brutalist megatowers, sweeping volumetric searchlights, live
Fire.dllrooftop billboards, a Colophon terminal (How This Site Works), and the Live Signal Deck visitor directory.
Every exhibit opens inside an in-world obsidian terminal overlay so you can play a live Wasm lab or read an article without leaving 3D (or pop it open as a full page).
Inside the engine
There is no Three.js, no Unity, no bundler, and no npm dependency tree underneath this. The entire two-level 3D application + procedural Web Audio synthesizer is 7 plain ES modules + HTML (4,581 lines, ~58 KB gzipped), and adds zero bytes of JavaScript to the rest of the 2D site — the jack in trigger in the top bar is a plain <a> link.
Four-pass HDR WebGL2 pipeline
Each frame runs four passes in pure WebGL2:
- Planar reflection pass (
0.65×resolution FBO): Mirrors geometry vertically across y = 0 (pos.y = -pos.y), swaps backface culling togl.FRONT, clips below the floor plane, and renders the whole sanctuary — architecture, liveFire.dllscreens, rotating knowledge constellation, and live visitor constructs — upside down into an offscreen buffer. - Main HDR scene pass (
RGBA16F, automaticRGBA8fallback): Renders the sanctuary with 12 dynamic point lights (including flickering fire lights), per-vertex baked contact ambient occlusion along floor skirts and ceiling coves, GGX-inspired specular highlights, and 5-tap mineral-jittered Fresnel reflections modulated by each basalt tile's procedural wet-puddle alpha. - Quarter-resolution separable HDR bloom: Two-pass horizontal/vertical 9-tap Gaussian blur with a smooth luminance threshold so sodium light strips, fire peaks, and holographic visors bloom without washing out dark concrete.
- ACES filmic composite + Bayer dithering: Applies an ACES filmic curve, subtle vignette, gamma encoding, and a 4×4 Bayer micro-dither to eliminate 8-bit banding across dark obsidian shadows.
Procedural brutalist materials & free bump mapping
Zero external PBR texture packs are downloaded. At boot, procedural Canvas 2D generators synthesize seamless textures directly in the browser:
- Board-formed concrete (
512×512): Layered value noise, per-plank tonal variation, horizontal formwork seams, vertical joints, and recessed circular tie-rod dimples. - Honed wet basalt (
512×512): Dark mineral tile slabs with bevel catch-lights, deep grout lines, and low-frequency wet-puddle reflectivity packed into the alpha channel. - Ribbed anodized aluminum (
256×256): Brushed vertical ribbing for kiosk frames and archway lintels. - HiDPI signage & monolith facades: Archway lintels, exhibit placards, and Notes Archive monoliths are typeset dynamically onto high-DPI canvases using the site's actual
Space GroteskandJetBrains Monowebfonts, uploaded with anisotropic filtering.
Instead of storing normal maps, the fragment shader perturbs surface normals on the fly from screen-space texture luminance derivatives (dFdx / dFdy), giving concrete formwork seams, tie-rod holes, and basalt joints real specular relief under grazing light for free.
Exact Unreal Engine 1 volumetric fog
Those pools of amber and cyan haze around the skylight, fire columns, and hall portals are not billboards and not ray marched. The fragment shader evaluates the exact closed-form cubic ray–sphere integral from Unreal Engine 1's Render.dll across 8 light-fog spheres per pixel:
I \propto \left[a\,(3 - 3h^2 - a^2) - b\,(3 - 3h^2 - b^2)\right]
where h is the normalized ray-to-center miss distance and [b, a] are the clipped entry/exit coordinates along the chord. One algebraic evaluation per sphere gives smooth, depth-accurate volumetric falloff at 120 fps.
Live Fire.dll WebAssembly textures
The amber flame column, electric cyan EMP reactor, and far-east plasma apse aren't video loops or CSS shaders — they run two live instances of fire.wasm (82 KB, Rust compiled to WebAssembly, ported from Unreal Engine 1's Fire.dll), ticking 256×256 cellular fire buffers at 30 Hz and streaming raw RGBA bytes straight into WebGL2 via texSubImage2D.
Real multiplayer reader constructs
Other people browsing jeromem.dev right now show up inside Cyberspace in real time — no bots and no fake traffic. It connects to the same Cloudflare Durable Object WebSocket (/api/presence) that powers the subtle reading carets and who / last shell commands on the 2D site:
- Live 2D readers appear as warm amber Neuromancer-inspired wireframe constructs (faceted cyber-decker silhouette, glowing wrap-around mirrorshades visor, vertical neural spine, sweeping horizontal holo-scan slice, orbital telemetry rings, and a hexagonal floor anchor) standing in front of the exact kiosk or archive monolith matching the page they're reading.
- Recent readers who left within the last 8 minutes linger as fainter ice-cyan fading traces with stronger horizontal signal glitching.
- People walking inside Cyberspace together stream their quantized
(x, z)coordinates over the existing presence room (reusing the Worker's bounded pointer packet with a reserved block index safely ignored by 2D pages) so you can literally see each other walk down the same corridor in real time. - Matrix Sonar Pings (
F/ping): PressingFemits an expanding 3D golden wireframe shockwave and a fragment-shader scanline contour across walls, piers, and rain-slicked basalt — broadcast live over/api/presenceso other real visitors on the same floor see your cyan sonar wave wash across the hall and can ping back. - Opt-in procedural Web Audio (
sound): Off by default, zero audio files downloaded — synthesizes subterranean transformer hum, proximity-mixedFire.dllfurnace rumble, rooftop rain and distant thunder, damp basalt footsteps synced to stride, sonar ping harmonics, and hydraulic elevator cues purely via Web Audio nodes. - Built for traffic spikes: The Durable Object caps sockets at 400 and drops high-frequency pointers above 25 readers per page; the renderer sorts and draws the 32 nearest live constructs, and floating
ttylabels are throttled to 20 Hz and capped to the nearest 10 on-screen tags.
Try opening Cyberspace in one tab and any Lab or Note in a second tab to see your own construct materialize in 3D.
Back to Home · play in the Labs · explore Experiments · browse Notes · read How this site works.