Explore the Mandelbox in 3D
The Mandelbox is a 3D fractal built by repeatedly folding and scaling space. Its repeating chambers, pillars, and curved surfaces change dramatically as you adjust the folding parameters.
Launch the visualizer for animated views, or open the Mandelbox explorer to adjust scale, box folding limits, sphere folding radii, and lighting. Rotate the view and move closer to examine the smaller structures. The guide below explains what each fold does.
How It Works
The Mandelbox doesn't use complex number iteration like the Mandelbrot set. Instead, it folds space. Each iteration applies two geometric operations, a box fold and a sphere fold, then scales the result and adds an offset.
The box fold reflects any component that exceeds a limit back toward the origin. Think of it as folding a sheet of paper at defined creases. The sphere fold does something different: points inside a minimum radius get pushed outward, while points between the minimum and fixed radius get inverted through the sphere. Points beyond the fixed radius are left alone.
The box fold produces flat planes and sharp angles, while the sphere fold produces curves. The result combines both.
What It Looks Like
Depending on the scale parameter, the Mandelbox can look like a ruined cathedral, a coral reef, an alien city, or a crumpled ball of foil, sometimes all in the same render.
The Box Fold
The box fold produces flat faces, right angles, and regular geometry, the kind of structure you'd expect from architecture rather than nature. At certain scales, the fractal develops rows of identical pillars and corridors. Zoom in and you find smaller corridors inside those corridors.
The Sphere Fold
The sphere fold rounds things off, inflates surfaces, and creates the bulging, almost biological shapes you see in between the flat panels. The ratio between the minimum and fixed radius controls how much inflation happens. Tight ratios give you something bony and structural. Wide ratios make it look like the geometry is melting.
The Scale Parameter
At a scale of -1.5, you get tight, spiky detail. At -2.0, the classic "boxed" look. Near -2.5, the structure opens up into something organic and porous. Positive scale values produce a completely different family of shapes. A change of 0.1 in scale can turn a solid block into lace.
Rendering
The Mandelbox is rendered with ray marching, not polygons. A distance estimator function tells the ray marcher how close each point is to the fractal surface. The DE function tracks how the folding operations stretch and compress space, multiplying the derivative through each iteration to estimate a safe step size. This lets the renderer walk rays through the scene without missing thin features or punching through walls.
Exploring It
Circles the structure from the outside, showing how its silhouette changes from every angle.
Flies through corridors and chambers inside the fractal. This is where you see the self-similarity up close.
Smoothly shifts scale, radius, and fold limits so you can watch the structure reshape itself in real time.
Pushes into the surface to find smaller copies of the larger geometry nested inside.
Full manual control with WASD, QE, or touch. Go where you want.
Origin
Tom Lowe (known online as Tglad) introduced the Mandelbox in early 2010 on FractalForums.com. He was experimenting with folding operations in 3D (box folds and sphere folds applied iteratively) to see if they could produce bounded, self-similar structures the way the Mandelbrot iteration does in 2D. They could, and the results looked unlike any other 3D fractal.
What set the Mandelbox apart was its versatility. The Mandelbulb, discovered a few months earlier, has a fixed character: always bulbous and rounded. The Mandelbox can look entirely different with a small parameter tweak. That range made it a favorite for fractal artists and for people trying to understand what "folding" operations actually do to space.