Repository navigation
Releases
v0.1.0
The first release of Mirrorball: a mirror ball and its pin spot for Resolume Arena and Avenue, as two FFGL plugins in one download. SW Mirrorball (MR01) is a source: a ball turning in a dark hall full of its spots. SW Mirror Over (MR02) is an effect: the same ball and lamp seen on the back wall, with the spots landing on your clip (Clip As Surface) or your clip as the pin spot's gobo (Clip As Gobo).
Photosensitivity warning. At some settings this plugin can flash faster than three times a second over a large part of the picture. The defaults measure 0 flashes, and so does the default 50 cm ball with the lamp at 5 m at every setting tried. It goes over with a 20 cm ball, the lamp within about a metre and a fast spin turned up (10 transitions in a second in a third of the picture at 5 rpm and +4 stops), and with Sync stepping 20–90° on a gliding half beat (up to 16, even at 0 stops). The user guide's "Flashing, and keeping it safe" has the table. Check your settings before you put this in front of an audience.
The one idea. Each facet is a flat mirror. It reflects the pin spot by the law of reflection and doesn't change its divergence, so each spot is the pin spot seen through a small square window. For every pixel on the walls, floor and ceiling the plugin finds the few facets that could light it, traces the ray back through each to the lens and the gate, reads the gobo for that ray, and sums. Nothing is drawn as a spot. So spots stretch into ellipses and streaks where they land at a slant, crowd and dim behind the ball, crawl near the axis and race toward the horizon; nearer than about 1.3 m (at the default 5° beam) every spot is a whole, mirrored copy of the gobo, and further off each carries a piece of it centred on its facet's place in the beam; a missing facet is a gap that turns with the ball, the same in every instance and every frame.
Controls: Ball (Diameter 0.2–1 m, Facet Size 5–20 mm, Missing 0–50%, Seed); Motor (Free or Sync, Speed −5 to 5 rpm, Step On Half Beat to Bar, Step Angle 1–90°, Glide); Spot (Beam 3–12°, Throw 0.5–10 m, Elevation, Bearing, Gobo: Open, Dots, Ring, Star, Bars, and seven colours); Room (6–30 m, View Room or Wall in the source, Room Light, Exposure ±4 stops); and in the Over, Clip As (Surface or Gobo) and Mix. The defaults are a 50 cm ball of 10 mm glass at 1 rpm (the Eurolite MD-2010's one speed), lit by a 5° pin spot 5 m away that just fills it, in a 12 m hall at 3% room light. The Over's Exposure default is +5/6 stop, set from Resolume's 33 demo clips.
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 both plugins and ATTRIBUTIONS.md. The plugins go 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 Silicon Mac under macOS 26, driving the plugins' own classes in a headless GL context, at 1280×720 and 320×180 and partly on Apple's software renderer, reading linear lux off their output):
- The optics. A facet's spot, caught on two planes, leaves at the angle it arrived to 5.6e-5 rad. One facet's light summed over a plane is what it intercepted from the pin spot, at any distance and slant, to 2.8e-4. Near the lamp each spot is the gate cone's ellipse to 7.3e-4 of its area; far off, each carries a disc of the gobo 0.2715 of its radius across where the lens's angular size gives 0.2707. Spots on a ceiling run round circles at the ball's own rate to 1e-4. Sync steps start on the host's beat to 3.4e-8 s, and Free's phase is the same at 24 and 240 fps to 6e-16 turns.
- The checks can fail. Eighteen deliberately wrong models each fail their check, and all 27 one-character mutants of the shipped GLSL and C++ are caught. Every control with pixels changes the picture (19 in the source, 20 in the Over). Mix 0 returns the clip bit-exactly.
In Resolume. In Arena 7.29.0 on an Apple Silicon Mac, with the release workflow's universal bundles (signed ad hoc) mounted over Arena's REST API on one layer over a still: both register as MR01 (a source) and MR02 (an effect), with all 24 and 26 parameters shown and their defaults as declared; the ball turns on Arena's clock, 0 rpm holds two snapshots identical, Mix 0 is identical to the still, every control tried changes the picture and setting them back restores it exactly, and Motor Sync steps. On Windows, in Arena 7.27.1 on win-lab (software rendering, no GPU), with the x64 DLLs the release workflow built from this source, the fleet's Arena gate passed 15 of 15: both register with every parameter as declared and render; with the ball held still, 15 of the source's controls and 17 of the Over's move the picture (Speed, Step On, Step Angle and Glide inconclusive, the moving ball setting the noise floor); Arena's log is clean. It has never run in a show.
What isn't verified, or is a limit. No ball's sheet gives a facet count or layout: the rings, their offsets and the 10% grout are this project's, and the grout takes 17% of the light. The pin spot is two fixtures, Chauvet's LED Pinspot 2's flux through a PAR36's lens, uniformly bright with a hard gate; a real lamp's falloff isn't modelled. The facets are perfect, there's no air (no beams, only spots) and walls don't light walls. A pixel visits at most 169 facets, which drops up to 0.77% of the light with the biggest balls and the lamp in close. In the Over, with the lamp in close or a big ball the spots gather round the lamp and can miss the back wall entirely at the default Bearing; swing Bearing to 150–180°. Open questions about the defaults: the Over's Clip As (Surface, not Gobo), Room Light 0.03 leaving the clip nearly black between the spots, and the two plugins' different Exposure defaults.
Cost, GPU time on an Apple Silicon Mac shared with other builds: at the defaults the source takes 0.57 ms at 720p and 1.25 ms at 1080p, the Over 0.53 and 1.27 ms. At the cap's worst case (the 1 m ball of 103,702 facets, a 6° beam 0.9 m away) the source takes 7.12 ms and the Over 7.56 ms at 1080p, 43–45% of a 60 fps frame. macOS figures only, on one GPU.
Not done. No presets and no OpenFX port.
- User guide: https://stoatworks-labs.com/software/mirrorball/guide/
- Project page: https://stoatworks-labs.com/software/mirrorball/
- Browser demo: https://mirrorball-demo.stoatworks-labs.com/