Repository navigation
Releases
v0.1.0
The first release of Penumbra: coloured shadows for Resolume Arena and Avenue, as one FFGL mixer, SW Penumbra (PU01). 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 (a keyed performer, any clip with alpha) on the layer above, and set the upper layer's Blend Mode to SW Penumbra.
The one idea. Each point of the screen shows the sum of the lamps it can see. With the lamps, the person and the screen in three parallel planes, the part of a lamp a point can see is a convolution: the lamp's square, scaled by similar triangles, slid across the person's silhouette (Soler and Sillion, SIGGRAPH 98). So each lamp's shadow is the silhouette moved away from that lamp and blurred by the lamp's size seen through the person. Nothing is drawn. Red, green and blue lamps throw cyan, magenta and yellow shadows, black appears only where all three are blocked, the shadows part and soften as the person steps towards the lamps, and wherever nobody stands the clip comes back untouched. The blur is a box over a summed-area table held as whole numbers, so every sum is exact and the cost is the same at any distance and lamp size.
Controls: Light (Linear Light, Room Light); Occluder (Opacity, Occluder: Alpha or Luma, Distance); Lamp 1, Lamp 2 and Lamp 3 (a colour, X, Y and Size each); Screen (Screen: As Is or On White, View: Picture or Light). Opacity is the layer's opacity fader: in Resolume it's how solid the person is. Linear Light is the parameter Arena hides on every mixer; it's on and stays on. The defaults are red, green and blue lamps in a triangle, each 0.05 of a screen height square, with the person 0.35 of the way to them.
Downloads: a universal macOS build (Apple silicon and Intel) as a .dmg or .zip, and a Windows x64 installer (-setup.exe) or .zip, each with ATTRIBUTIONS.md. The plugin goes in Documents/Resolume Arena/Extra Effects (yes, a mixer too). The macOS build is Developer ID-signed and notarised minutes after publication; if macOS refuses a download, it's from before that, so download it again. The Windows build isn't signed, so SmartScreen warns once about the installer.
What is measured (offline, by tools/verify.sh on an Apple M4 Max under macOS 26, driving the plugin's own class in a headless GL context with two inputs, at 640×360 and 320×180 and again on Apple's software renderer):
- The colours. With red, green and blue lamps every shadow region is exactly cyan, magenta, yellow, red, green, blue or black: 0 channel values wrong in 223,096 pixels. Other lamp colours give the sum of the unblocked lamps to 4.2e-8.
- The geometry. Each soft edge is a straight ramp as wide as the similar-triangles formula says (18.0000, 48.0000, 54.0000 and 36.0000 px against 18, 48, 54 and 36), each shadow lands where −Lᵢ·g puts it to 7e-6 px, and every pixel of a six-block scene matches an independent 3D ray cast to 2.1e-6.
- The pass-through. With nothing in the way the screen comes back bit for bit, in every mode. Opacity scales the blocking in linear light (3e-8), not as a crossfade, and the host's padding never reaches the picture or casts a shadow.
- The checks can fail. Thirty-seven deliberately wrong versions of the plugin each fail their check, and 29 one-character mutants of the shipped GLSL and C++ are all caught. All 25 controls change the picture. The bundle is universal, and
oxbowreads SW Penumbra / PU01 / mixer / 2 inputs.
In Resolume. The fleet's gate can't gate a mixer, so it was mounted by hand over Arena's REST API and read through its own log. On Windows, in Arena 7.27.1 on win-lab (software rendering, no GPU), with the DLL this workflow builds: it registers as PU01 in category 2 (a mixer), is offered as a Blend Mode, shows 29 of its 30 parameters with Linear Light the one hidden, takes its Opacity from the layer's fader (0.2, 0.85, 0.5 and 1.0, logged by the plugin) and overrides a direct write, and Arena's composition snapshot shows its shadows. On a Mac, in Arena 7.29.0 on an M4 Max with a local build of the same source, the same, at 1920×1080.
What isn't verified, or is a limit. It has only met a white still with a stick figure in front in Resolume: no keyed performer, no camera mask, no show, and nothing timed there. Each lamp lights the screen evenly (no fall-off), the lamps are square, and the person is flat, at one distance (no depth per pixel): those are assumptions. A shadow on a dark clip is faint, because the lamps light the clip and can't make it bright; most of Resolume's demo clips are dark, and there is no brightness boost. As a transition it ramps its Opacity to 0.987 and Arena then shows the new clip on its own, so it ends with a jump; it's meant as a blend mode. It has run on one Apple GPU, Apple's software renderer and Mesa's llvmpipe only.
Cost, wall-clock with the GPU finished on an Apple M4 Max: about 0.2 / 0.4 / 2.4 ms a frame at 720p / 1080p / 4K, the same at the largest lamps and the furthest Distance.
Not done. No presets and no OpenFX port.
- User guide: https://stoatworks-labs.com/software/penumbra/guide/
- Project page: https://stoatworks-labs.com/software/penumbra/
- Browser demo: https://penumbra-demo.stoatworks-labs.com/