Skip to content

Releases

v0.1.0

Choose a tag to compare

@github-actions github-actions released this 18 Nov 07:44

The first release of Pinhole: a pinhole camera and camera obscura for Resolume Arena and Avenue, as one FFGL effect, SW Pinhole (PC01). There is no lens: your clip is the scene, and a hole in a thin plate throws it onto a screen.

Photosensitivity warning. At its default Exposure this effect only flashes where your clip does. Turned up, Exposure turns a clip's own pulses up too: at +2 stops 3 of Resolume's 33 demo clips flash faster than three times a second over a large part of the picture through it, and at +4 stops 4 do, where the clips on their own did not. Check your clips before you put this in front of an audience.

The one idea. The hole doesn't blur a sharp picture; it makes the picture by diffraction. Every point of the scene lights the screen with the Fresnel pattern of a round hole, one pattern per colour band, and the picture is the sum of those patterns. Nothing is drawn. So the picture is sharpest at one hole size and softer either side of it (a smaller hole spreads light by diffraction, a bigger one by its own shadow), small holes spread red further than blue, a faint veil of light from the patterns' outer rings lifts the dark parts, and the corners fall as cos⁴ of the angle off the axis, hard in a short box. Swap the hole for a Fresnel zone plate and it focuses harder, but one colour at a time.

Controls: Camera (Aperture: Pinhole or Zone Plate, Diameter 0.1–2 mm, Open Zones 1–16, Zone Focus 400–700 nm, Distance 10–500 mm); Picture (Exposure −4 to +4 stops, View: Upright or Obscura, Edge: Mirror or Black); Look (Mix). The defaults are a 0.31 mm hole 50 mm from a 24 mm screen, the sharpest hole for that box in green light (Mielenz's optimum), and Exposure +0.2 stops, what an averaging meter sets on the median of Resolume's demo clips. Diameter is the pinhole's; Open Zones and Zone Focus are the plate's.

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. 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, at 1280×720 and 320×180 and again on Apple's software renderer):

  • The optics. The pattern builder reproduces 69 of the 80 values of Lommel's tables that Rayleigh printed in 1891 to half their last digit, and Rayleigh's closed form on the axis to 1.5e-5 of the peak. Read off the picture, a big hole's edge spreads as a disc does (24.04 px against 24.24) and a small hole's as a band-mean Airy pattern's, red over blue 1.425 against 1.447. A point's image is tightest 1.0–1.5% below Mielenz's optimum hole in each colour, the corners fall as cos⁴ to 2.8e-4, and the picture keeps the clip's light to 0.05%.
  • The checks can fail. Seventeen deliberately wrong models each fail their check, and all 51 one-character mutants of the shipped GLSL and C++ are caught. All 9 controls change the picture. The bundle is universal, and oxbow reads SW Pinhole / PC01 / effect and renders through it.

In Resolume. In Arena 7.29.0 on an M4 Max with a local build of the same source, mounted on a clip over Arena's REST API, over a still: all 14 parameters shown with their defaults, the same settings giving the same picture to the last level, Mix 0 identical to the clip, the hole sharpest at the default and softer at 0.1 mm and at 2 mm, a 10 mm box leaving the corners at 11% of the centre, Obscura the picture turned 180°, one open zone giving back the best pinhole's picture, and each Aperture's controls doing nothing under the other. On Windows, in Arena 7.27.1 on win-lab (software rendering, no GPU), with the x64 DLL the release workflow built from this source just before the tag, the fleet's Arena gate passed 9 of 9: it registers as PC01, an effect, with all 14 parameters as declared, renders, and every control moves the picture; Arena's log is clean.

Moving lights. The outer rings are spread from coarser and coarser copies of the picture, so a lone point of light on black changes shape slightly as it moves at large blurs, the same shape again every 16 px of travel at 1080p: up to 25% of its picture at the largest blur (almost all in its faint rim), 3.8% with a 16-zone plate, 0.2% near the defaults. On a real clip it did not show: Resolume's Beat 006 at the largest blur, watched frame by frame, moves no more roughly from frame to frame than under a shift-invariant blur.

What isn't verified, or is a limit. Whether Resolume hands an effect straight or premultiplied colour is unchecked (the plugin assumes straight). It has run in Resolume only over still pictures, never on a moving clip or in a show. The screen's 24 mm height, the three flat colour bands, the cut at 99% of each pattern's light and the averaging meter behind the Exposure default are chosen, not measured. One pattern serves the whole frame (Fresnel's approximation, the scene far away). The best hole measures 1.0–1.5% below Mielenz's, within tolerance; the default is Mielenz's. It has run on one Apple GPU, Apple's software renderer and Mesa's llvmpipe only.

Cost, GPU time on an Apple M4 Max in a quiet moment: about 2.4 / 4.9 ms a frame at 720p / 1080p at the defaults, 2.8 / 5.4 ms at the largest blur. At 4K the largest blur takes 17.8 ms (18.1 ms at worst), more than a 60 fps frame on its own, and about 31 ms with Resolume running on the same GPU.

Not done. No presets and no OpenFX port.