Skip to content

Releases

v0.1.0

Choose a tag to compare

@github-actions github-actions released this 18 Nov 10:38

The first release of Bubble: a draining soap film for Resolume Arena and Avenue, as one FFGL effect, SW Bubble (BB01). Your clip reflected in a soap film whose colour is its thickness.

The one idea. A soap film is a sheet of water a few hundred nanometres thick. Light reflected from its front face and its back face interferes, so how much of each colour comes back depends on the thickness. The plugin sums the reflections of a film of water for every wavelength from 360 to 830 nm, weighted by the CIE's colour-matching functions under daylight (D65), and tints your clip with the result. The thickness follows the drainage law Monier and colleagues measured in 2024: the film keeps one shape and thins fastest at the top, so bands of Newton's colours slide down and spread, and the top goes silvery and then, below 30 nm, black with a sharp edge. A chosen stirring carries pieces of film about, each keeping its thickness. Then it bursts: a hole opens in the black film and its rim runs out at the Taylor–Culick speed, faster through thin film than thick, slowed down as far as you like. Nothing is drawn.

Controls: Film (Thickness: 0.2 to 4 µm at mid-height when the film is pulled, and it acts at once; Drainage: 0.1 to 10 × the real 25 mm film's rate; Swirl: the stirring's speed bound, 0 to 20 mm/s; Black Film: Common, 12 nm, or Newton, 4 nm); Burst (Burst: how far down the black film comes before the film bursts, 1 is never; Slow Motion: 1 to 1000 ×; Refill: 0 to 10 s of empty frame; Pop; New Film); Light (Angle: 0 to 60°; Exposure: 0 to 200); Look (Mix). The defaults are a 1.5 µm film draining at 4 × the real rate, stirred at up to 3 mm/s, common black film, bursting when the black has come 0.6 of the way down (30.3 s into its life), shown at 100 × slow motion and refilled after 1 s, seen face on, with Exposure 86.25 set on Resolume's own demo clips (a soap film reflects about 4% of what's in front of it). At the defaults a new film starts pale, as thick films are: lower Thickness for colour from the first second.

Photosensitivity. Bubble makes flashes of its own: a burst takes the picture to black and a new film brings it back. Measured over Resolume's 33 demo clips with the WCAG general-flash rule (more than three flashes a second over the whole frame or any third-of-frame window), it goes over the line with Burst at 0 and a Refill under 0.1 s at Slow Motion 10 × or less (14 clips, up to 11 flashes a second in part of the frame), with Pop pressed twice a second or faster at Slow Motion 1 × and a short Refill (1 clip at twice a second, 11 at three times), and at the defaults on 2 clips that already flicker, because Exposure brightens what the film reflects. The defaults are as designed; the user guide says what keeps it under the line.

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.

Licences. The code is MIT. The CIE's colour-matching functions and illuminant D65 that it ships, and the colour table summed from them, are the CIE's (© International Commission on Illumination) under CC BY-SA 4.0, as in filament's release: see ATTRIBUTIONS.md.

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 colour. 72 uniform films (18 thicknesses, 0 to 59.75°) over white, every pixel against Exposure × the harness's own transfer-matrix × CIE 1931 × D65 sum: worst 0.675 of a tolerance built from the colour table's own bound. Water's refractive index against IAPWS R9-97's own table to 5.8e-7; the last maximum and minimum at 546 nm at 102.26 and 204.52 nm (Pugh: 102 and 204).
  • The drainage and the black film. The black front in every column on the row the law predicts, at fronts 0.95, 0.75, 0.5 and 0.3 and three settings: 0 column-measurements off. Every row under 30 nm is the 12 or 4 nm film, every row over it the law's own thickness.
  • The clock. The film identical to the bit at 24, 60 and 144 fps, and across a host clock at 4.99 × 10⁸ ms; New Film against a fresh instance, 0 values different.
  • The burst. Pop in uniform films of 12, 300 and 2000 nm: 0 pixels off the predicted Taylor–Culick disc beyond float.
  • The checks can fail. Twenty-two deliberately wrong models each fail their check, and all 65 one-character mutants of the shipped GLSL and C++ are caught. All 12 controls change the picture. The bundle is universal, and oxbow reads SW Bubble / BB01 / effect and renders through it.

In Resolume. In Arena 7.29.0 on an M4 Max, with this workflow's universal bundle from a dispatched build of the same plugin source, mounted on a clip over Arena's REST API and read off Arena's composition snapshots over a still picture: all 18 parameters shown with their defaults (17 and Arena's Opacity), Arena's clock reaching it in milliseconds, Mix 0 identical to the clip, and every control changing the picture, Thickness live. Pop and New Film pressed over REST did what they say (a Pop at 1000 × opened a hole that was still growing three seconds later; New Film during that burst came back to a fresh film within 0.18 levels), and a new film at the defaults was gone by 30.3 s on Arena's clock, black until 32.3 s and replaced at 32.5 s, as the drainage law, the burst's span and the Refill say. A clip retrigger doesn't pull a new film. On Windows, in Arena 7.27.1 on win-lab (software rendering, no GPU), with the DLL this workflow builds from the same source, the fleet's Arena gate passed 9, failed 0 and skipped 1: it registers as BB01, an effect, with all 18 parameters as declared, renders, and every control it can set moves the picture (Black Film at Drainage 10 ×, Slow Motion and Refill with Burst 0, where they act; Pop and New Film need a press the gate doesn't send); Arena's log is clean and its clock reaches the plugin in milliseconds.

What isn't verified, or is a limit. It has never been compared with a real soap film. The film is flat and seen at one angle (a real bubble's angle runs to 90° at its rim); the stirring is a chosen six-eddy flow, not the film's own Marangoni flow, and Swirl is a bound the flow can sit up to 1/√2 under; the drainage law's master curve is a fit to points read off a figure, used below 100 nm where it wasn't measured; every default but Exposure is chosen. After a burst the frame waits out the burst's whole span (the time the hole would take through 4 µm film: 1.22 s at 100 ×, 12.2 s at 1000 ×) before Refill starts, however quickly the hole crossed; at the defaults the thin film is gone in 4 frames and the frame is black for about 2 s. Exposure 86 clips the brightest clips hard. At Mix 1 the empty frame and the black film are opaque black (Add or Screen lays it over other layers). Whether Resolume hands an effect straight or premultiplied colour is unchecked (the plugin assumes straight). It has run on one Apple GPU, Apple's software renderer and Mesa's llvmpipe only.

Cost, GPU time on an Apple M4 Max: with the film still about 0.25 / 0.61 ms a frame at 720p / 1080p; stirred at the default 3 mm/s about 0.76 / 1.31 / 4.2 ms at 720p / 1080p / 4K.

Not done. No presets and no OpenFX port.