
Cozy Hillside Hobbit Burrow & Garden Brook
WebGPU/TSL Shire Diorama, Cutaway Interior, 95° Swinging Round Door & Flowing Brook
60 fps 3D Candlelight Relighting Inside Vermeer’s 1665 Girl with a Pearl Earring · Single JPEG
Move a live 3D beeswax candle across Johannes Vermeer’s 1665 Girl with a Pearl Earring — built from a single flat 643 KB museum scan with zero AI video generation, zero looping MP4s, and zero audio files. Sweep the flame to watch real directional shadows flip across her nose and warm up her shadowed cheek, snuff the candle into curling 3D smoke and silver moonlight, catch her softly blinking, or drag an antique brass magnifying glass over her portrait to X-ray the live AI depth and 3D surface normals underneath.
Depth-Anything-V2-Large and u2net run offline on Apple Silicon to map how far her nose, cheeks, brow, pearl, and turban stick out while separating her cleanly from the dark canvas void.
Instead of a fake bump filter, Python smoothly lifts Vermeer’s painted shadows into clean base pigments, computes 3-scale surface normals with 1665 oil craquelure, and separates glossy pearl/eyes from velvety skin and matte silk.
At 60 fps in Three.js WebGL2, GPU shaders march 32 shadow rays from every pixel across the AI depth map toward your floating candle flame — flipping cast shadows cleanly as you move the light.
Cursor sweeps bend the beeswax flame with trailing embers; clicking Candle snuffs it into curling smoke and moonlight (Relight strikes a match), paired with a refractive brass magnifying glass, split-compare curtain, and synthesized Web Audio.
Engineered end-to-end with Gemini 4 Neon from a single flat 1665 Mauritshuis museum scan with zero AI video generation and zero external audio files: (1) local Apple Silicon MPS Depth-Anything-V2-Large monocular 3D depth estimation paired with offline u2net portrait matting refined at native 1024×1200 via guided color-distance filtering; (2) automated Python OpenCV/SciPy bilateral Retinex intrinsic delighting (lifting Vermeer’s right cheek cleanly with zero shadow noise amplification and healing baked pearl spots), 3-scale RNM tangent-space surface normals with genuine 1665 oil craquelure, and opaque PBR roughness/SSS maps; (3) Three.js r187 WebGL2 192×224 displaced 3D relief canvas running 32-step Interleaved Gradient Noise horizon raymarched shadows, Cook-Torrance GGX specular, porcelain skin SSS, damped saccadic eye-gaze & painterly blinking, aerodynamic beeswax flame physics with trailing embers and curling 3D snuff smoke, a refractive antique-brass Magnifying Loupe, and a bit-exact Before/After Split-Compare curtain; and (4) 100% procedural spatial Web Audio (candle flutter, micro-crackles, swipe air whoosh, breath-snuff hiss, phosphorus match-strike, and museum ambience).
Single-image 3D relighting — Local AI depth & matting, Python intrinsic albedo/normals, 32-step GPU shadows & spatial Web Audio
| Scene Element | Pipeline / Tooling | How It Was Built |
|---|---|---|
Source Painting & Local AI Depth Map | Local Depth-Anything-V2-Large (Apple Silicon MPS) + Guided Filter | Offline monocular 3D depth predicted from one Public Domain 1230×1440 Vermeer scan, smooth-blended with sculpted glabella/nose-bridge relief and gentle feathered pearl height for staircase-free raymarching |
Native 1024px Portrait Silhouette Matte | Local u2net + OpenCV Guided Color-Distance Matting | Full-resolution 1024×1200 foreground silhouette matte guided directly by museum brushwork with 1.35 px sub-pixel anti-aliasing for silky contour sfumato against the dark oil backdrop |
Shadow-Lifted Intrinsic Albedo | Python Bilateral Base/Detail Retinex + Skin-Domain Equalization | Separates smooth base illumination from fine canvas/cloth texture so dark-side shadow lifting recovers Vermeer's right cheek monotonically (troughDip = 0.5) without amplifying cloth noise (jacketHfStd = 4.15), while healing baked pearl spots into warm ivory nacre |
3-Scale Surface Normals & PBR Materials | Python RNM Normal Fusion + Semantic PBR Extraction | Fuses macro depth curvature, feathered dielectric pearl cushion, and authentic 1665 face & background craquelure into tangent-space normals alongside opaque A=255 roughness, dielectric metallic, and warm skin SSS maps plus extensible manifest anchors |
Displaced 3D Relief Canvas & Stretcher | Runtime Parametric Three.js r187 | 192×224 subdivided canvas plane displaced along +Z by AI depth (0.14 relief pinned smoothly at edges) mounted on a dark matte museum stretcher with catch-lit linen/wood side bevels visible at 18° oblique 3D tilt |
32-Step Raymarched PBR Relighting & Living Presence | Custom GLSL (WebGL2) | Horizon depth-map soft cast shadows with IGN jitter, Cook-Torrance GGX specular, warm terminator skin SSS, localized antique oil-canvas candle patina, max-channel hue-preserving highlight shoulder, damped saccadic eye gaze, pupil light-reflex, 180 ms painterly blink, and subtle torso breath |
Conservator's Brass Magnifying Loupe & Split-Compare | Single-Pass Optical GLSL Post-Overlay | Refractive circular glass lens (1.28× diagnostic / 2.15× macro craquelure) framed by a candle-reactive antique-brass bezel cycling live Normals, AI Depth, Shadows, Macro Craquelure, and 1665 Original, alongside a bit-exact draggable Before/After split curtain |
Aerodynamic 3D Candle Flame, Snuff Smoke & Embers | Deterministic Kinematics + Custom GLSL Particles | Sculpted double-layer beeswax teardrop flame bending with 2nd-order cursor velocity inertia, blackbody Kelvin dimmer (1450K–2250K), 16-slot world-space trailing golden embers, dying crimson wick ember, backlit curling 3D smoke ribbon, silver-blue nocturnal moonlight, and dark museum wall aura |
Spatial Ritual Web Audio Engine | Zero-Asset Web Audio API Synthesis | Stereo-panned beeswax flame flutter, micro-crackles, swipe air-whoosh turbulence, breath-snuff + hot-wick hiss, phosphorus match-strike + low-end ignition bloom, hushed museum room ambience, and 420 Hz brass/wood tactile clicks |
Candle Ritual HUD & 6-Mode AI/PBR Inspector | Responsive TypeScript UI + CSS Smoked Glass | Ultra-minimal bottom Candle Ritual capsule (Candle / Relight, inline golden dimmer, 3D, Loupe), top-right painting badge, auto-returning Controls & 6-Mode Inspector drawer, draggable Split-Compare handle, and unclipped 375×812 mobile bottom sheet |

WebGPU/TSL Shire Diorama, Cutaway Interior, 95° Swinging Round Door & Flowing Brook

60 fps Interactive 2.5D Living Anime Diorama from One 705 KB JPEG · Local AI Depth & GPU Puddles

1:1 Underwater Reef Test Rig, Meshed Spur-Gear Core, Camera-Iris Eyes & Autonomous Reef Walk