Stoatworks Labs

Penumbra

Coloured shadows from three lamps, for Resolume

Betav0.1.0Plugin & ModuleC++ / GLSL
Penumbra — Coloured shadows from three lamps, for Resolume
No screenshot. This one's configuration inside another application.

What it does

An FFGL mixer for Resolume Arena and Avenue, SW Penumbra. Three coloured lamps light a white screen with your clip printed on it, and someone stands between them and the screen. Put the clip on one layer and the person on the layer above, a keyed performer or any clip with alpha, and set the upper layer's Blend Mode to SW Penumbra. The layer's opacity fader is how solid the person is.

Nothing is drawn. Each point of the screen shows the sum of the lamps it can see, in linear light, and the part of a lamp a point can see is the lamp's square, scaled by similar triangles, slid across the person's silhouette. So a red lamp blocked leaves cyan, two lamps blocked leave the third lamp's colour, and black appears only where all three are. Step the person towards the lamps with Distance and the shadows part, each away from its own lamp, and their edges soften; an arm narrower than its shadow's soft edge loses its dark core, as it does in a real room.

Each lamp has a colour, a place and a size, so the same structure works with amber, teal and violet, two white lamps, or one lamp and some room light. Screen: On White prints the clip on a white screen for a clip with alpha, and View: Light shows the light alone for setting the lamps up. The shadows come from a summed-area table held as whole numbers, so every sum is exact and they cost the same at any Distance and lamp size: about 0.4 ms a frame at 1080p on an Apple Silicon Mac.

  • Three lamps, each with its own colour, place and size
  • Cyan, magenta and yellow shadows from red, green and blue lamps, black only where all three are blocked
  • Soft edges as wide as similar triangles say, from hard points to broad washes
  • Distance: the person steps towards the lamps and the shadows part
  • The person from the layer's alpha, or from a white-on-black mask
  • The clip untouched wherever nothing is in the way
  • Room light, a clip printed on white, and a view of the light alone
  • The layer's opacity fader as how solid the person is
  • Universal macOS bundles and Windows x64 DLLs

Where it stands

v0.1.0, and early days. It's measured by an offline harness driving the plugin's own code on an Apple Silicon Mac, at two rasters and on Apple's software renderer: with red, green and blue lamps every shadow region is exactly cyan, magenta, yellow, red, green, blue or black, not one channel value wrong in 223,096 pixels; each soft edge is as wide as the similar-triangles formula says to four decimal places of a pixel; every pixel agrees with an independent 3D ray cast to two parts in a million; and with nothing in the way the clip comes back bit for bit. It catches thirty-seven models that are wrong on purpose and twenty-nine one-character sabotages of its own code, and all 25 controls change the picture. In Resolume Arena, 7.27.1 on Windows and 7.29.0 on a Mac, it registers as a mixer, takes its opacity from the layer's fader and draws its shadows, but it has only met a white still with a stick figure in front there: no keyed performer, no camera mask, no show, and nothing timed. Each lamp lights the screen evenly, the lamps are square, and the person is a flat cut-out at one distance: those are assumptions, and shadows on a dark clip are faint, because lamps can't make a dark clip bright. The macOS build is Developer ID-signed and notarised. There's a user guide and a browser demo, but no presets. Try it in your own rig before you trust it in a show.

Watch it running

Penumbra video thumbnail

Nothing loads from YouTube until you press play.Watch it there instead