Skip to main content

Real depth inside a painted doorway

A painted doorway is a flat picture of a hole. Walk past it and it stays flat, and the eye notices. Four openings in the street are given real recessed depth without turning the street into 3D geometry:
  • the Door of the Kiln
  • the bakery oven’s firebox
  • the west mid-town arcade arch
  • the tall mid-town arch
Inside each, FacadeRelief.hlsl and RevealedFace.hlsl ray-march a shallow volume: for every pixel, the shader steps a short way into the opening to find what you would really see at that angle. So the interior shifts solidly behind its stone frame as you walk, the way a real recess does.
Technical sheet for the four relief openings showing painted plates, masks, rigid depth maps and reveal gradients.

The relief review sheet. Left to right: the painted opening, its mask, its depth, and its reveal ramp.

What makes it believable:
  • Rigid back planes. Smooth estimated depth maps smeared the painted interiors like rubber. Each opening instead has one rigid back plane (0.35 m deep on the street, 0.80 to 0.90 m in mid-town), with reveal ramps only where the illustrator actually painted the side of a jamb.
  • New stone tells the truth. When the march exposes a sliver of stone face that was never painted, its colour is taken from three samples along the frame’s own edge, then given what real masonry would carry there: warm bounce from the paving under a soffit, cool skylight on a sill, rain streaks below a drip edge, rising damp near the ground, and soot above an actual fire.
  • Safe for WebGL 2. The march uses explicit texture levels inside its loop, which keeps it compiling and correct in browsers. No compute shaders anywhere.
  • The walls never move. A test toggles relief on and off within one frame and counts the pixels that change outside the four openings. The required answer is zero.

One shadow for everyone

Every figure in the street casts a soft painterly shadow on the paving: both children, the townsfolk, even the giants’ reach. Drawn one at a time, two overlapping shadows would darken twice where they cross, which never happens in real light. OchreShadowSystem draws every shadow into one shared off-screen image, keeping the darkest value where two overlap instead of adding them together, then lays that image over the ground once with a gouache tint. Overlaps stay one shadow deep.

One print over everything

The plates are paintings, the children are sprite sheets, and the colossi are animated loops: three pipelines that would never look like one place on their own. The last pass on screen, CinemaPrint, binds them as if they had all been photographed onto the same film.
  • Narrow halation, the soft glow real film shows around bright light, spilling only onto pixels darker than the light around them, so lit walls never burn out and nothing blooms.
  • A pinned density curve that adds six to seven percent of mid-tone contrast without crushing a single black.
  • Fine grain at 24 frames a second that fades out in the highlights. Under Reduced Motion the grain holds still and is halved.
  • The giants’ laugh. When a colossus laughs at the children, the print dips the light, deepens contrast, cools the shadows and draws in the corners over about 1.2 seconds, then lifts over about 2.4.
  • The stitch’s tear. While a stitch is open, the print parts the whole picture along its seam.
It is one full-frame pass, prefiltered at quarter resolution, with no compute shaders, so it runs on every tier that keeps the print switched on.
Panel I live capture showing the Shared Bridge, the presshouse and Ishia and Kai at the balustrade.

The finished frame: relief, shadows and print together at the Shared Bridge.