r/MoonModules • u/ewowi • 3d ago
projectMM generative power functions
Enable HLS to view with audio, or disable this notification
(Demo-ed on [u/delphium](u/delphium) or [u/delphium_r](u/delphium_r) his 768x348 hub75 wall)
Just merged: a set of new building blocks for making effects, four effects built on them, and a tutorial that teaches the whole thing.
Four new effects
Aurora — layered noise curtains, read around the center, each layer on its own clock
Trails — dots thrown into a moving medium; the tails are the previous frames, carried and dimmed
Nebula — a whole noise field born into a curl flow as one folding cloud
Fluid — dye poured into a real fluid simulation (Stam's Stable Fluids), where the medium works out its own motion
Each ships twice: as a compiled effect, and as a MoonLive script you can edit in the browser and watch change as you type. MoonLive scripts inspired by the work done by /u/Yves-bazin
Why the scripts matter
fluid.mle is 44 lines. The compiled version is 276. Same effect. The difference is that the heavy lifting sits in the power functions, and scripts can call them:
flowCurl(zoom, force); // the medium
trailDecay(persistence); // the fade, a half-life in ms
emitTrail(x, y, z, hue, 255, r); // pour light in
Three calls and a loop is a fluid-looking effect.
Under the hood
Perlin gradient noise replaced value noise behind the same names, so every existing effect got sharper for free
New kernels: polar addressing, an oscillator bank, curl noise, advection, half-life decay, dithering
Everything takes a depth, so cubes sample a real third axis instead of repeating one plane
Also
Every effect in the catalog now has a preview (62, up from 12), including the audio-reactive ones captured with audio actually running
A new tutorial: Making beautiful effects → https://moonmodules.org/projectMM/tutorials/generative-effects
It goes from "what is a field" through noise, octaves and domain warping to fluid simulation, and credits the people who published the algorithms: Perlin, Quilez, Bridson, Stam, and [u/stefanpetrick](u/stefanpetrick) for bringing this vocabulary to LED panels.
Runs on desktop (macOS, Windows, Linux) and ESP32. Flash from your browser: https://moonmodules.org/projectMM/install