Skip to content

Audio-reactive fractal

Four 3D fractals, mandelbulb, mandelbox, sierpinski and menger, raymarched in one GLSL shader with bass, mid and high inputs. The agent wrote it in 12½ minutes; a follow-up added the calm grade and the trail, and a later session split the bands properly.

  • Price: Free
  • MCP
  • Generative art

You need

  • TouchDesigner 2025.33230
  • Twozero plugin

The prompt that made it

Make audiorective comp with different 3d fractals with settings in this* file

Model
Claude Opus 4.7
Time
first pass 12 min 31 s
Attention
two build prompts, permission clicks
Price
free

Or take the finished one

Fractal Raymarcher

in Rudiments · vankrav/fractal-raymarcher · v4 · 21.6 KBin Rudiments · v4 · 21.6 KB

Price: Free
Open in Rudiments

Already inside TouchDesigner? Paste this link into any input of the plugin.

twozero.ai/hub/product_df409a60-44ac-439e-afc1-527d48be90bf
Size
21.6 KB
Price
free

What's in this run

  • GLSL

    One raymarching shader with four distance-estimated fractals: mandelbulb, mandelbox, sierpinski and menger.

  • Audio

    The spectrum split into bass 30–250 Hz, mid 250–2000 Hz and high 2000–9000 Hz; RMS and smoothing drive the shape.

  • Post

    Bloom, an ACES tonemap, chromatic aberration from the highs, vignette, grain and a feedback trail.

  • Controls

    43 parameters on six pages, a tooltip on every one.

  • Docs

    agents_md inside: the public contract and eight gotchas. MIT licence.

The run on 6 May built the shader, the audio chain and the post. A second session on 10 August made it a rudiment: a resolution input, bands in hertz, a tooltip on every control and lighter defaults.

Once it's in your network

  1. Wire any audio-rate CHOP (Audio File In, Audio Device In) into input 0. Nothing wired means silence.
  2. Want a set size? Wire a TOP into input 1; otherwise Resolution W and H decide, 1280×720 out of the box.
  3. Pick a Fractal Type, then turn Bass → Power, Mid → Fold and High → Color until it breathes.

Warning:Breaks when

  • A control-rate CHOP (60 Hz) gives no spectrum: the fractal sits still with no error. Audio Gain at 0 does the same.
  • Menger ignores Iterations above 10, though the slider goes to 32.
  • Max Ray Steps costs more than resolution: halve it before you shrink the frame.
  • The colour drifts on its own over tens of seconds. That is by design.

Next step

More runs