Magic Pattern is an experimental procedural generator based on Iterated Function Systems (IFS), similar to the famous "Kali Set" fractals. Unlike standard noise which aims for natural randomness, Magic Pattern creates highly structured, psychedelic, and kaleidoscopic intricacies. By iteratively folding, rotating, and translating coordinate space in a loop, it generates infinite, alien geometric details from a very compact mathematical formula, outputting a rich spectral color field.
Usage & Behavior
This node is a "happy accident" generator. The visual result is often unpredictable but aesthetically striking. Small changes to the Seed parameter can completely transform the structure from a symmetrical mandala to a chaotic energy field. It is particularly effective when used as an emission map for sci-fi effects or as a domain-warping source for other noises.
Key Features
- Fractal IFS: Uses a 30-iteration loop to fold space into itself.
- Spectral Color: Automatically maps the result to a sine-based RGB palette.
- Detail Texture: Integrates a secondary Perlin noise layer for surface grain.
Deep Dive: The Fractal Loop
The "Magic" comes from a mathematical feedback loop executed 30 times per pixel:
- Polar Conversion: The XY coordinates are converted to an Angle and Radius.
- Folding: The angle is folded symmetrically (
abs(fract(...))), creating the kaleidoscopic mirroring. - Reconstruction: Coordinates are converted back to Cartesian space.
- Transformation: The space is offset (
-0.7) and rotated. This prevents the pattern from collapsing into a single point and creates the "traveling" fractal structure.
Finally, a Perlin noise lookup is applied to the distorted coordinates to add the surface "Detail" grain.
Parameters
- High values: Adds granular, noisy texture to the fractal bands.
- Low values: Results in cleaner, smoother geometric shapes.
Quick Recipes
Fun starting points for exploration.
Living Energy
- Seed #frame / 20
- Detail 2.0
- Coords UV * 0.5
Alien Carpet
- Detail 10.0
- Seed Static
Mandala
- Detail 0.0
- Seed 120.0
0.5 + 0.5 * sin(T + phase * n), where the phase shift is hardcoded to (13.0, 17.0, 23.0). This ensures a rich, harmonious color spread regardless of the input value. You may want to add a Mapping node and set its X,Y to -0.5 to have the pattern centered.
