Skip to content

Marble Madness SDF

Marble Madness SDF: Lockstep Analytical Jet-SDF Physics, Non-Euclidean Portals PLAY IT: https://bourkefloyd.github.io/gemini-4-argon-sfhackathon-2026/ Marble Madness SDF is a clean-room remake and expansion of Atari's 19

Core trick

One signed distance field drives both the sphere-traced renderer and a fixed-step rolling-ball physics solver, so visuals and collisions match.

Tags

Description

Marble Madness SDF: Lockstep Analytical Jet-SDF Physics, Non-Euclidean Portals PLAY IT: https://bourkefloyd.github.io/gemini-4-argon-sfhackathon-2026/ Marble Madness SDF is a clean-room remake and expansion of Atari's 1984 classic where the entire 3D world contains zero polygon meshes. A single mathematical Signed Distance Field d(p, t) drives both 60+ FPS WebGL2/WGSL sphere-tracing (with chromatic glass refraction, floor caustics, and non-Euclidean see-through portals) and 120 Hz Symplectic Jet-SDF (jSDF) rolling physics. Players carve craters, extrude mid-air bridges, and freeze surfaces in 0.0018 ms via live CSG mutations across 10 courses (including Riptide Surf, Sahara Dunes, and Neon Obby) Note video uploading slowly....
bourkefloyd/gemini-4-argon-sfhackathon-2026★ 00 forksJupyter NotebookCreated Oct 25, 2026 · last push Oct 25, 2026

README excerpt

# Lockstep Analytical Jet-SDFs for a Real-Time WebGL2 / WGSL Marble Madness Game

Clean-room Signed Distance Field (SDF) remake of *Marble Madness* (1984) built for the **Gemini 4 Argon SF Hackathon** (hosted by Cerebral Valley & Google DeepMind). One declarative `CourseSpec` AST drives **both** the fullscreen GPU raymarcher and the **120 Hz** fixed-timestep rolling-sphere physics solver—with zero triangle meshes, zero BVH collider refits, and zero visual/physics drift.

- **Technical Paper:** [paper/README.md](paper/README.md) — *Lockstep Analytical Jet-SDFs, Non-Euclidean Portals, and One-Way Geometric Compilation for Real-Time WebGL2/WGSL Physics Games*
- **Event Logistics & Builder Guide Reference:** [docs/event-and-builder-guide.md](docs/event-and-builder-guide.md)
- **Executable Notebooks:** [sdf_frontier_and_inventions.ipynb](notebooks/sdf_frontier_and_inventions.ipynb) · [sdf_marble_madness_guide.ipynb](notebooks/sdf_marble_madness_guide.ipynb)
- **Figures:** [docs/figures/](docs/figures/)

---

## 1. Live Playtest URLs

- **Public GitHub Pages Build (Instant Browser Playtest):**  
  **[https://bourkefloyd.github.io/gemini-4-argon-sfhackathon-2026/](https://bourkefloyd.github.io/gemini-4-argon-sfhackathon-2026/)**
- **Mobile Phone Trackball Controller (Direct QR Party Route):**  
  **[https://bourkefloyd.github.io/gemini-4-argon-sfhackathon-2026/?party=1&room=ARGON-1](https://bourkefloyd.github.io/gemini-4-argon-sfhackathon-2026/?party=1&room=ARGON-1)**
- **Local Prod

Team