New
Apps 6,419Makers 6,403This week 7
Promote your app−30%
4views in
the last 30 days

SwarmMorph

Native FFGL plugin for Resolume Arena & Avenue

Built with Claude Code

by yastefan · Unclaimed · from DEGermany · added Oct 29, 2026
no ratings0 comments

SwarmMorph

A particle swarm for Resolume that morphs between your 3D models.

Load up to eight 3D models (.obj or Alembic .abc), and SwarmMorph turns them into a cloud of up to one million glowing particles. Switch the target mesh and the whole swarm takes off, swirls through the air and lands on the new shape. Animated meshes from Blender work too: the particles ride along with the moving surface.

SwarmMorph is a native FFGL source plugin for Resolume Arena and Avenue on macOS and Windows. Everything runs on the GPU, so it stays smooth at full HD and beyond.

  • Morph between up to 8 models at the push of a MIDI pad or on the beat
  • 10,000 to 1,048,576 particles
  • Animated meshes from Blender, Cinema 4D, Houdini or Maya as Alembic (.abc) or OBJ sequences
  • Wind, gusts, vortex and explode forces that bend the shape and let it spring back
  • Blow particles off the shape and across the screen, wrapping around the edges
  • Swirl, shimmer, scatter and a free-spinning camera
  • Beat effects locked to Resolume's BPM: pulse, shockwave, burst, jitter, flash, spin steps and auto-advance
  • Two-colour gradients by speed, height or depth, random sparks, twinkle and depth fog
  • Meshes load in the background, so loading a new file mid-show doesn't drop frames

Download and install

  1. Download the zip for your system from the Releases page. Pick the newest versioned release, or Latest build from main for the very latest changes.

  2. Quit Resolume.

  3. Copy the plugin from the zip into Resolume's Extra Effects folder:

    System File from the zip Folder
    Windows SwarmMorph.dll Documents\Resolume Arena\Extra Effects
    macOS SwarmMorph.bundle Documents/Resolume Arena/Extra Effects

    For Avenue, use Resolume Avenue instead of Resolume Arena in the path.

  4. macOS only: macOS blocks plugins downloaded from the internet. Open Terminal in that folder and run:

    xattr -dr com.apple.quarantine SwarmMorph.bundle
    
  5. Start Resolume. SwarmMorph appears in the Sources tab.

Requirements: Resolume Arena or Avenue 7 (developed with Arena 7.28) and a graphics card with OpenGL 4.1, which every Mac and Windows GPU of the last decade has. Macs with Intel or Apple Silicon are both supported.

Your first swarm

  1. Drag SwarmMorph from the Sources tab onto an empty clip and trigger it. You'll see a sphere of particles: that's the placeholder until you load a model.
  2. In the clip's parameters, open the Meshes group and choose an .obj or .abc file for Mesh 1, another one for Mesh 2, and so on.
  3. Change Target to 2, and watch the swarm fly from the first model to the second.
  4. Now play: raise Turbulence for wilder flights, lower Attraction for slow, dreamy transitions, push Wind X for a gust, hit Scatter for an explosion.

No models at hand? The examples/meshes folder of this repository has a torus, a knot, a cube and a wave to start with. For animation, tools/blender/make_creature_animations.py builds ten seamlessly looping Alembic creatures in Blender: a pulsing jellyfish, manta ray, koi, sea serpent, butterfly, blooming lotus, sea anemone, kelp forest, DNA helix and octopus (see Testing without Resolume for the command).

Ideas for live shows

  • Morph on the beat: use Resolume's BPM sync to animate Target, or map Next to a MIDI pad to step through your loaded models one by one.
  • Morph on a fader: load two models, set Target to the first and Morph To to the second, and map Morph to a MIDI fader or your crossfader. The swarm follows the fader with all its swirl and buzz; stop halfway for a cloud that's neither one nor the other.
  • On the beat: the Beat effects follow Resolume's BPM by themselves. Leave Beat Rate on 1 Beat, raise Pulse or Shockwave a little, and the shape breathes with the music. Add Auto Next on 4 bars and the swarm changes models on the phrase. Set Beat Rate to Off and map Hit to a pad or an audio trigger to play them by hand.
  • Hit the kick: map Scatter to a pad or an audio-reactive trigger for a burst that settles back into the shape.
  • Fireflies: turn Surface Flow down, Buzz and Twinkle up and lower Particles with a bigger Point Size: every particle visibly buzzes and blinks around the model on its own.
  • Breathing shapes: slowly raise Surface Flow and Hover during a breakdown and the model dissolves into a living, crawling swarm; pull them back down for the drop.
  • Hot flight: set Color Mode to Speed, Color 2 to orange and Color Mix to about 0.6: the swarm burns while it morphs and cools back to Color 1 as it settles.
  • Sparks: Color Mode Random, Color Mix around 0.1 and some Twinkle sprinkle a few golden sparks into a blue swarm.
  • Fader weather: put Wind X/Y/Z, Vortex and Explode on faders. All of them rest at the centre, so the shape stays calm until you move them.
  • Blown away: set some Wind X, then raise Blow Away. Particles peel off the model and drift across the screen; with Wrap Edges on they come back in on the other side, so at 100 % the model turns into an endless stream. Pull the fader down and they fly home and rebuild the shape.
  • Logos and lettering: export a logo or 3D text from Blender as .obj and let the swarm assemble it.
  • Layer it: SwarmMorph's background is transparent and the particles are drawn additively, so it sits nicely on top of other clips.

Getting models

Any .obj or Alembic .abc file works: exports from Blender, Cinema 4D, Houdini, Maya, or models downloaded from the web. The polygon count hardly matters, since the particles are spread evenly across the surface rather than placed on the vertices. Every model is centred and scaled to the same size; turn Normalize off to keep the original size and position.

From Blender: File → Export → Wavefront (.obj) for a still model, or File → Export → Alembic (.abc) for anything that moves (see below). Materials and textures are ignored; only the shape counts.

Parameters

The parameters appear in Resolume in this order:

Group Parameter What it does
Meshes Mesh 1–8 .obj or .abc file per slot
Normalize Centre each mesh and scale it to the unit sphere
OBJ Sequences Detect numbered sequences; turn off to load such files as single meshes
Target Slot the swarm flies to (1–8). Empty or failed slots are ignored.
Next Jump to the next loaded slot (map it to a MIDI pad or the BPM)
Morph Slide the swarm from Target (0) to Morph To (1) by hand, like a crossfader
Morph To Slot that Morph blends towards (1–8)
Morph Attraction Spring strength: how fast particles reach the new shape, and how firmly they hold it
Damping Low values overshoot and wobble, high values glide in
Chaos Per-particle variation of the attraction, so the swarm arrives in waves
Turbulence Swirl while travelling; fades out as particles arrive
Scatter Kick all particles outward
Swarm Surface Flow Particles stream along the surface of the shape, like a swarm crawling over it
Hover Thickness of the loose particle layer floating above and below the surface
Shimmer Small 3D swirl that stays once the shape has formed
Flow Scale Size of the swirls and streams (also of Turbulence)
Flow Speed How fast the swirls and streams change (0 freezes the pattern)
Buzz Every particle wanders around its own spot on the surface, independently of its neighbours
Buzz Speed From slow drifting to nervous flickering
Forces Wind X/Y/Z Wind across the screen (X = right, Y = up, Z = towards you), centre = none. Wind Y below centre acts as gravity.
Gusts Patches of stronger and weaker wind drifting through the shape
Blow Away Share of particles that let go of the shape and ride the wind
Wrap Edges Blown-away particles that leave the picture come back on the other side
Vortex Twist around the vertical axis, either direction
Explode Push outward from the centre; below centre pulls inward
Beat Beat Rate Fire the beat effects on Resolume's tempo: every ½ beat, 1 or 2 beats, 1 or 2 bars, or Off
Hit Fire them by hand (MIDI pad, audio trigger)
Decay How long each hit lasts, from a snap to a soft fade
Pulse The shape swells along its surface
Shockwave A ring runs out from the centre through the shape
Burst A share of the particles (up to 50 %, different ones each time) flies off and returns
Jitter Every particle twitches to its own side
Flash Brightness spike
Spin Step The camera turns a step (up to 90°) and springs into place
Auto Next Move to the next loaded model every 1, 2, 4 or 8 bars, on the downbeat
Animation Anim Speed Playback speed of animations, 0–3× (1× = the file's own frame rate; 24 fps for OBJ sequences)
Ping Pong Play forwards and backwards instead of looping
Restart On Switch Start the sequence from its first frame when it becomes the target
Look Particles Particle count, 10k – 1M
Point Size In pixels at 1080p
Color Base colour
Speed Glow Fast particles glow towards white
Brightness Additive intensity
Color 2 Second colour, used by Color Mode
Color Mode How the two colours are spread: Speed (fast particles turn Color 2), Height (top to bottom), Depth (front to back) or Random (each particle one or the other)
Color Mix How much Color 2: 0 = none, 0.5 = the full gradient, 1 = all. For Speed it is the sensitivity, for Random the share of particles.
Twinkle Each particle flares up now and then at its own rhythm
Depth Fade The back of the shape fades into darkness, like fog
Camera Spin Continuous rotation, centre = still
Rotate X/Y, Zoom Camera orientation and distance

Morph shapes the flight from one model to the next; Swarm is how the particles move once they have arrived.

Surface Flow, Hover, Turbulence and Shimmer all come from one evolving curl-noise flow field: it never repeats and never clumps particles together, but neighbouring particles move together, so the shape itself seems to flow. Buzz is the opposite: each particle follows its own path, like a swarm of fireflies, while the shape stays crisp. Mix both for streams full of individual movement. Surface Flow and Hover use the surface direction of the model, so they work on meshes with faces; point clouds get the plain 3D swirl. On very thin parts (wires, tubes) keep Surface Flow low or raise Flow Scale, otherwise the streams blur the detail.

Wind leans the shape downstream and Gusts make it flutter, while the model stays recognisable; higher Attraction holds it more firmly. Wind always blows relative to the screen, even while the camera spins. To really blow particles away, raise Blow Away: they leave the shape one by one, get carried by the wind and the flow field, and return when you lower it again. Vortex and Explode push in the model's own space and twist or inflate it until you release them.

Animated meshes

Alembic is the easiest way to bring animation in: one file holds the whole animation, every object in the scene and its frame rate.

Alembic (.abc)

In Blender: File → Export → Alembic (.abc), set the frame range, export. Cinema 4D, Houdini and Maya export Alembic the same way. SwarmMorph reads:

  • all polygon and subdivision meshes in the file, merged into one shape
  • their object animation (moving, rotating, scaling, parenting) and their deformation (armatures, cloth, shape keys, modifiers, all baked into the file)
  • the frame rate, so the animation plays at its original speed
  • point clouds, when the file contains points but no meshes

A file with a single frame loads as a still model. Only the modern Ogawa format is supported (the default everywhere since 2013); very old HDF5-based files are rejected with a message in Resolume's log. Animations are loaded into memory completely, up to about 1 GB of vertex data.

OBJ sequences

Pick any file of a numbered sequence (walk_0001.obj, walk_0002.obj, ...) in a mesh slot and SwarmMorph loads the whole sequence. A sequence needs at least three digits before .obj and two files with the same prefix in the same folder. In Blender: File → Export → Wavefront (.obj), enable Animation and set the frame range. OBJ files carry no frame rate, so playback assumes 24 fps; use Anim Speed if your scene runs at a different rate.

What works

Each particle is tied to a fixed spot on the first frame's surface and follows that spot through the animation. This needs the same vertex count in every frame: character, cloth and deformer animations work; simulations that rebuild their mesh every frame (fluids, remeshing) don't, and frames with a different vertex count are skipped with a warning in Resolume's log. The whole animation is normalized as one, so it doesn't jitter in size. Loops blend the last frame into the first, so export a cycle without repeating the first frame at the end.

Troubleshooting

  • SwarmMorph doesn't show up in Sources: check that the file sits directly in the Extra Effects folder and restart Resolume. On macOS, run the xattr command from the install steps.
  • A model doesn't load, or nothing shows: Resolume's log names the file and the reason; look for lines starting with SwarmMorph. On macOS the log is ~/Library/Logs/Resolume Arena/Resolume Arena log.txt.
  • It stutters: lower Particles. Integrated laptop GPUs handle a few hundred thousand particles; a dedicated graphics card handles the full million.

For developers

Building

Clone with the FFGL SDK submodule:

git clone --recursive git@github.com:yastefan/SwarmMorph-ffgl.git

The first build downloads and compiles Alembic and Imath, which takes a few minutes. Pass -DSWARMMORPH_WITH_ALEMBIC=OFF to build without Alembic.

macOS (Xcode command line tools, CMake 3.29+):

cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build

Windows (Visual Studio 2022 with C++, CMake 3.29+):

cmake -S . -B build -A x64
cmake --build build --config Release

Development and releases

GitHub Actions builds a universal macOS bundle and an x64 Windows DLL:

  1. Work on a branch and open a pull request against main. The workflow builds both platforms on the pull request; merge once it is green.

  2. Every push to main replaces the pre-release Latest build from main (tag latest-build) with fresh zips.

  3. For a versioned release, bump project(SwarmMorph VERSION x.y.z) in CMakeLists.txt on main, then tag that commit:

    git tag v0.2.0
    git push origin v0.2.0
    

    The workflow refuses tags that don't match the project version, and publishes the release with notes generated from the merged pull requests. The plugin reports the major and minor version to Resolume.

Testing without Resolume (macOS)

swarmmorph-harness loads the built plugin through plugMain like a host, renders offscreen on an OpenGL 4.1 core context and writes PNG frames:

python3 tools/make_test_meshes.py
python3 tools/make_test_sequences.py   # animated test patterns, ~100 MB, not checked in
blender --background --factory-startup --python tools/blender/make_alembic_tests.py  # Alembic test files
blender --background --factory-startup --python tools/blender/make_creature_animations.py  # looping Alembic creatures
cmake -S . -B build-debug -DCMAKE_BUILD_TYPE=Debug
cmake --build build-debug
./build-debug/swarmmorph-harness --plugin build-debug/SwarmMorph.bundle --out renders \
    --mesh 1 examples/meshes/torus.obj --mesh 2 examples/meshes/knot.obj \
    --frames 360 --every 30 --at 180 Target=2

In Debug builds the FFGL SDK asserts whenever the plugin leaves the GL context in a non-default state, which is the most common reason plugins misbehave in Resolume. Run --help for all options, --list for the parameter names, and --throughput for performance measurements.

How it works

  • src/MeshSampler.cpp parses OBJ files and binds one million random, area-weighted surface spots per mesh (a triangle's three vertices plus barycentric weights). Since they are independent samples, any prefix is uniform too, which is how the particle count changes without resampling.
  • Static meshes evaluate the binding once on the CPU. Animated meshes upload only the current frame's vertices (blended between neighbouring frames) and a skin pass evaluates every particle's binding on the GPU.
  • Particle state lives in two RGBA32F textures (position + seed, velocity), ping-ponged each frame. The update is a fragment pass: a damped spring towards the particle's target point plus a curl-noise flow field (gradient noise with analytic derivatives), projected onto the surface near the target using the bound triangle's normal. Buzz gives every particle its own lane through the noise, keyed by its random seed instead of its position. Wind moves the spring's rest point rather than pushing the particle, so the in-flight turbulence doesn't kick in. Blown-away particles swap the spring for drag towards the air speed and wrap around the camera's view volume.
  • Rendering draws one point per particle, fetching its position from the state texture.

Two findings from profiling on macOS (Intel Iris Plus): transform feedback was about 15× slower than the fragment pass, and attribute-less point drawing (gl_VertexID only) about 4× slower than drawing from a static index buffer. The current design avoids both: 270k particles take about 2 ms per frame and 1M about 7 ms on that GPU.

License

SwarmMorph is free software under the GNU General Public License v3.0 or later.

It builds on the FFGL SDK (BSD 3-Clause), Alembic (BSD 3-Clause) and Imath (BSD 3-Clause), and on Windows links GLEW (BSD/MIT). Their license texts ship in the licenses folder of every release zip.

Description taken from the repository README.

Ratings

–
0 ratings
5 0
4 0
3 0
2 0
1 0

Rate this app

Sign in to rate

Comments 0

Sign in to comment

No comments yet.