← Series

Series · Swift · Metal

Depth & Light II

Depth & Light showed how a photo’s depth map is enough to light the scene again. Then the source of the app built on it was lost, and Rake was rebuilt from what survived — as Rake Plus, with more done by depth than lighting: fog, haze taken out, focus moved after the shot, a grade by distance, rain and snow, light through a window, and a photograph that moves. Eight articles, one a week, each with the test that decided whether the tool was worth building, and one that decided it was not.

01 Starting Again from a Binary The source of Rake 1.0 was lost; a shader pulled out of a debug build, doc comments and interface strings, and an engine rebuilt to match its GPU to its CPU within 1/255. 02 Fog That Knows How Far Air: fog laid by depth and light shafts through the gaps, why a sun several meters back scattered nothing, and why fog colored from the far pixels came out beige. 03 Taking the Haze Back Out Clear: a haze curve over inverse depth, a sky found only from depth, a transmission map guided against the photo, and the one scene it lost. 04 Focus After the Shot Lens: bokeh gathered from a prefiltered image, a depth-of-field band for estimated depth, and Portrait mattes so hair stays the person’s and not the depth map’s. 05 Grading by Distance Depth Grade: holding the subject by a share of inverse depth rather than meters, and grading on the map’s own edge so nothing gets a cold outline. 06 Rain by the Cubic Meter Weather: drops counted per cubic meter out to twenty-five meters, a veil beyond, and why faint drops vanished when they were blended in eight bits. 07 The Sun That Stopped A kill test that failed: cast shadows from one depth map were right in two photos of ten. What replaced it — light through a window that bends over a face. 08 A Photograph That Moves Motion: the subject as a flat card lifted by a matte, the background filled behind it from the finished picture, and a one-sheet warp that tore every edge.