Audio-reactive volume
![]()
A green fractal volume becomes more or less dense-looking with the audio envelope while the viewpoint slowly orbits. The sound changes how the volume is viewed, not its geometry.
A compute shader generates a Menger fractal as a three-dimensional texture. The viewer samples that texture along viewing rays to form the image. Smoothed RMS level drives the viewer’s density, while two LFOs drive its viewing angles; the audio does not regenerate the fractal’s structure.
Try it
Enable a working audio input, allow microphone access if prompted, and start playback. Raise RMS Gain until quiet sounds make the volume visibly thinner and loud ones make it dense, then lower smoothing Alpha so the density lingers after each sound.
Change the Menger generator’s iters or zoom separately. These alter the volume being sampled, whereas the audio changes its apparent density in the viewer. No audio file is bundled; connect a sound-file process to RMS if needed. The embedded volume generator requires compute-shader support; this is a native volume-texture example, not a Qt Quick 3D scene.