Stoatworks Labs

Mirrorball

A mirror ball and its pin spot, for Resolume

Betav0.1.0Plugin & ModuleC++ / GLSL
Mirrorball — A mirror ball and its pin spot, for Resolume
No screenshot. This one's configuration inside another application.

What it does

Two FFGL plugins for Resolume Arena and Avenue in one download: SW Mirrorball, a source that's a turning mirror ball in a dark hall full of its spots, and SW Mirror Over, an effect in which the same spots land on your clip, printed on the back wall, or carry your clip as the pin spot's gobo.

The ball is rings of small square mirrors, 6,452 of them on the default 50 cm ball of 10 mm glass and up to 103,702, each reflecting 86% as silvered float glass does under EN 1036. One pin spot is aimed at it: a 114 mm lens, a PAR36's, putting out the flux Chauvet's LED Pinspot 2 measures, with a round gate and a gobo focused at infinity. A flat mirror reflects by the law of reflection and doesn't change the beam's spread, 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 each ray back to the lens and the gate, reads the gobo for that ray and adds them up.

So without anything being animated: close to the lamp every spot is a whole, mirrored copy of the gobo, and further off each one carries only a piece of it, centred on where its facet sits in the beam. Spots stretch into ellipses and long streaks where they land at a slant, crowd and dim behind the ball, and keep the ball's angular rate, so they crawl near the axis and race toward the horizon. A missing facet is a gap that turns with the ball, the same gap every time, and what passes the ball lands on the room with the ball's shadow in it. The motor turns at a steady 0.5 to 5 rpm either way, or steps a set angle on the beat with a raised-cosine glide.

  • A source (a mirror ball in a dark hall) and an Over effect (the spots on your clip, or your clip as the gobo) in one download
  • Every spot traced back through its facet to the pin spot's lens and gate, not drawn
  • Balls from 20 cm to 1 m with 5 to 20 mm facets, and up to half of them missing
  • A pin spot of 3 to 12°, 0.5 to 10 m from the ball, five gobos or your clip, and seven colours
  • A motor at −5 to 5 rpm, or stepping 1 to 90° on the half beat, beat, two beats or bar with a glide
  • A room seen from the front or straight at its wall, 6 to 30 m across
  • Universal macOS bundles and Windows x64 DLLs

Where it stands

v0.1.0, and early days. It has run in Resolume only on one layer over a still: in Arena 7.29.0 on a Mac, and in Arena 7.27.1 on Windows on software rendering, where the fleet's Arena gate passed 15 of 15. Both plugins register, show their controls with the declared defaults and render, and every control the checks could move changes the picture; it has never been in a show. Everything else is measured offline, by a harness driving the plugins' own code on an Apple Silicon Mac at two rasters and on Apple's software renderer, reading linear lux off their output: a facet's spot 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 to 2.8e-4, near the lamp each spot is the gate cone's ellipse to 7.3e-4 of its area, spots on a ceiling run round circles at the ball's own rate to 1e-4, and Sync steps start on the host's beat to 3.4e-8 s. It catches eighteen models broken on purpose and twenty-seven one-character sabotages of its own code. The facets' layout, the pin spot's lens and its brightness are assumptions. With a 20 cm ball and the lamp in close spinning fast and turned up, or Sync stepping big angles on a gliding half beat, it can flash more than three times a second in part of the picture; the defaults don't, nor does the default ball with the lamp at 5 m at any setting tried, and the guide says how to keep a show within photosensitivity guidance. Try it in your own rig before you trust it in a show.

Watch it running

Mirrorball video thumbnail

Nothing loads from YouTube until you press play.Watch it there instead