Repository navigation
Releases
v0.1.0
The first release of Scrim: a theatre gauze for Resolume Arena and Avenue, as one FFGL mixer, SW Scrim (SM01). Put what the projector sends on one layer and the scene behind the gauze on the layer below, and set the upper layer's Blend Mode to SW Scrim. Light the front with the back dark and the gauze is a screen; light the scene and darken the front and it all but disappears; in between you see both.
Photosensitivity note. Scrim makes no flash of its own, but at its defaults its lights brighten both pictures about four times, so a clip's own pulses can come out as large flashes, and stepping Front Light or Back Light quickly flashes the whole picture. Over 33 pairs of Resolume's demo clips, two pairs went over three flashes a second through it at the defaults, though neither clip did on its own; stepping the lights four times a second put 6 pairs over. With Draw Mesh on, the weave's moiré is a regular pattern of fine stripes, past the broadcast guidance for such patterns when it fills much of the screen on a plain bright projection; Draw Mesh off removes it. Flashing light and striped patterns can trigger seizures in people with photosensitive epilepsy. The user guide has the table and what to do.
The one idea. What the audience sees at a point of the gauze is the light its threads reflect plus the light that comes through its holes: ρ(1 − φ) times the light on the gauze, plus φ times the light from behind, with φ the open area and ρ the threads' reflectance. Nothing in that is an opacity. With no light behind, the scene contributes nothing, whatever the layer below shows: a dark backstage. The projection's own light carries on through the holes and lands on the set behind, spread by similar triangles, dimmer and out of focus by the lens's circle of confusion. With Draw Mesh on, the weave (ShowTex GobelinTulle's cell, by default) beats against the projector's pixels in a moiré.
Controls: Light (Linear Light); Projector (Opacity, Front Light, Pixel Fill); Stage (Back Light, Wash, Spill Distance, Audience); Gauze (Open Area, Thread, Mesh, Draw Mesh, Gauze Width). Opacity is the layer's opacity fader: in Resolume it is the projector's level. Linear Light is the parameter Arena hides on every mixer; it's on and stays on. The defaults are bright: each light alone fills the range on the middle one of Resolume's demo clips, which is a dark clip, so a bright clip clips and both lights together clip most of the frame.
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 1280×720 and 320×180 and again on Apple's software renderer):
- The two limits. With nothing behind the gauze lit, the projection comes back with 0 of 5,529,600 floats different from the model; a dark backstage changes 0 floats at any open area, whatever Back Light says.
- The spill. Its edges sit where similar triangles put them to within 0.11 px at 1280×720 (0.34 px at 320×180, against a half-pixel bound), and its defocus disc reads 3.656 px where the lens's circle of confusion gives 3.614.
- The checks can fail. Seventeen deliberately wrong versions of the plugin each fail their check, and 39 one-character mutants of the shipped GLSL and C++ are all caught. Every control changes the picture. The bundle is universal, and
oxbowreads SW Scrim / SM01 / 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 and Arena's composition snapshot. On a Mac, in Arena 7.29.0 on an M4 Max with a local build of this source, and on Windows, in Arena 7.27.1 on win-lab (software rendering, no GPU) with the DLL this workflow builds: it is offered as a Blend Mode, shows every parameter but Linear Light, takes its Opacity from the layer's fader and overrides a direct write, and draws what the offline harness draws on the same two stills, to a mean of 1.07 levels (Mac) and 1.4 (Windows) in 255. Arena showed two things to know:
- Arena hands a mixer premultiplied pictures; Scrim reads straight. A white pixel at half alpha gives about a fifth of the light it should (83 instead of 170 on an 8-bit scale, on both). Opaque clips are exact. Use opaque clips, or flatten a clip with alpha onto black first.
- At a layer opacity of exactly 0, Arena shows the layers below untouched: no gauze, no Back Light, no Wash. At 1% the picture is Scrim's again, so the reveal's last step is at 1%, not 0.
What isn't verified, or is a limit. It has met only test stills in Resolume: no real clips through a show, and nothing timed there. The threads pass no light, the thread reflectance assumes ShowTex measured its luminance factor over a dark ground, the set is one flat plane at one distance, no light comes back from the set, and the audience sits on the projector's axis: those are assumptions. The output is clamped to white before encoding. It has run on one Apple GPU, Apple's software renderer, and Mesa's llvmpipe inside Arena only. The physics is checked against the model, not against a photograph of a real gauze.
Cost, on an Apple M4 Max on the GPU's clock: about 0.2 ms a frame at 1080p at the defaults, 2.3 ms with the biggest defocus disc the controls allow.
Not done. No presets and no OpenFX port.
- User guide: https://stoatworks-labs.com/software/scrim/guide/
- Project page: https://stoatworks-labs.com/software/scrim/
- Browser demo: https://scrim-demo.stoatworks-labs.com/