Spatial Photos
August 2026 — October 2026
Personal project
Spatial Photos turns a single image into an interactive 3D photo. It starts with Apple's ML-SHARP model, which predicts a 3D Gaussian splat from the image. I wrote a pipeline that converts the splat into depth-layered mesh geometry and packed texture atlases, then designed a compact .spatial format to ship the result on the web. The viewer uses ordinary WebGL rasterization, avoiding the per-frame sorting of a splat renderer. I published it as an npm web component with mouse and touch parallax. The portrait on this site's homepage uses it. This project was conceived while I was working at True3D, but it was finished on my own time.
Highlights
- Custom binary format with sparse block masks, shared depth-grid corners, and JPEG-compressed color and alpha atlases.
- Multithreaded C++ Gaussian rasterizer for generating depth layers on CPU.
- WebGL viewer shipped as
spatial-photoson npm, with pointer-driven parallax, configurable framing, and automatic GPU resource cleanup.
Media
