Physics
From curved spacetime and astrophysics to fluid dynamics and real-time GPU simulations.
Does the Totem Fall? Ray-Tracing Inception’s Spinning Top in GLSL
How to simulate and ray-trace Cobb's spinning top totem from Inception in real time: the heavy symmetric top Lagrangian, effective potential U_eff(θ), sleeping-top stability threshold, exact biconical smin SDF, and brushed pewter + 85mm bokeh in GLSL.
10 min readSolving Navier–Stokes at 60 FPS: Stable Fluids & Helmholtz–Hodge Projection in WebGL
How to build a real-time incompressible Navier–Stokes fluid solver in WebGL: Jos Stam's semi-Lagrangian Stable Fluids, Helmholtz–Hodge pressure projection via Jacobi ping-pong FBOs, and von Kármán vortex streets in GLSL.
11 min readWhen Two Shadows Collide: Ray-Tracing a Binary Black Hole Merger
How to ray-trace an orbiting binary black hole merger in real time: the Majumdar–Papapetrou two-hole metric, Fermat's optical refractive index, figure-eight photon bridges, and eyebrow shadows in GLSL.
11 min readSpinning Up Gargantua: A Real-Time Kerr Black Hole in Your Browser
How to ray-trace a spinning Kerr black hole in real time: Boyer–Lindquist null geodesics in Mino time, Carter's constant, frame dragging, the ergosphere, and Bardeen's D-shaped shadow in GLSL.
11 min readThrough the Wormhole: Rendering a Morris–Thorne Spacetime Bridge
How to ray-trace a traversable Ellis–Bronnikov / Morris–Thorne wormhole in real time: two-sheeted spacetime geodesics, nested Einstein rings, and a seamless 4K 120 fps fly-through loop.
10 min readRendering Gargantua: A Real-Time Black Hole in Your Browser
How to render an Interstellar-style black hole in real time: Schwarzschild null geodesics, a Shakura–Sunyaev disk, Doppler beaming in GLSL, and a seamless 4K 120 fps loop.
11 min read