archived as

more of this topic at

note: because important websites are frequently "here today but gone tomorrow", the following was archived fromon November 18, 2008. This is NOT an attempt to divert readers from the aforementioned website. Indeed, the reader should only read this back-up copy if the updated original cannot be found at the original author's site.

The "Mandelbulb": first 'true' 3D image of famous fractal

by Jacob Aron

New Scientist, November 18, 2009

It may look like a piece of virtuoso knitting. But the makers of an image they call the Mandelbulb (see right) claim it is most accurate 3-dimensional representation to date of the most famous fractal equation: the Mandelbrot set.

Fractal figures are generated by an "iterative" procedure. You apply an equation to a number … apply the same equation to the result … and repeat that process over-and-over again. When the results are translated into a geometric shape, they can produce striking "self-similar" images -- forms that contain the same shapes at different scales. For instance, some look uncannily like a snowflake. The tricky part is finding an equation that produces an interesting image.

The most famous fractal equation is the 2-D Mandelbrot set -- named after the mathematician Benoît Mandelbrot of Yale University who coined the name "fractals" for the resulting shapes in 1975.

But there are many other types of fractal both in 2 and 3 dimensions. The "Menger sponge" is one of the simplest 3-D examples.

Fake fractal

There have been previous attempts at a 3-D Mandelbrot image. But they do not display real fractal behavior says Daniel White, an amateur fractal image maker based in Bedford, UK.

Spinning the 2-D Mandelbrot fractal like wood on a lathe, raising and lowering certain points, or invoking higher-dimensional mathematics can all produce apparently 3-dimensional Mandelbrots. Yet none of these techniques offer the detail and self-similar shapes that White believes represent a true 3-D fractal image.

2 years ago, he decided to find a "true" 3-D version of the Mandelbrot.

The next dimension

"I was trying to see how the original 2-D Mandelbrot worked and translate that to the third dimension," he explains. "You can use complex maths. But you can also look at things geometrically."

This approach works thanks to the properties of the "complex plane" -- a mathematical landscape where ordinary numbers run from "East" to "West" while "imaginary" numbers (i.e., based on the square root of -1) run from "South" to "North". Multiplying numbers on the complex plane is the same as rotating it. And addition is like shifting the plane in a particular direction.

To create the Mandelbrot set, you just repeat these geometrical actions for every point in the plane. Some will balloon to infinity escaping the set entirely while others shrink down to zero. T he different colors on a typical image reflect the number of iterations before each point hits zero.

White wondered if performing these same rotations and shifts in a 3-D space would capture the essence of the Mandelbrot set without using complex numbers (i.e., real numbers plus imaginary numbers) which do not apply in three dimensions because they are on only two axes. In November 2007, White published a formula for a shape that came pretty close.

Higher power

The formula published by White gave good results but still lacked true fractal detail. Collaborating with the members of Fractal Forums (a website for fractal admirers), he continued his search. It was another member -- Paul Nylander -- who eventually realized that raising White's formula to a higher power (i.e., equivalent to increasing the number of rotations) would produce what they were looking for.

White's search isn't over, though. He admits the Mandelbulb is not quite the "real" 3-D Mandelbrot. "There are still 'whipped cream' sections where there isn't detail," he explains. "If the real thing does exist – and I'm not saying 100 percent that it does – one would expect even more variety than we are currently seeing."

Part of the problem is that extending the Mandelbrot set to 3-D requires many subjective choices that influence the outcome. For example, you could extend a flat plane to 3-D by stretching it to form a box, but you could also turn it into a sphere.

"It's an interesting academic exercise to think what you should get," says Martin Turner, a computer scientist specializing in fractal images at the University of Manchester, UK. "But it all depends on what properties you want to keep in the third dimension."

The equations White used may get the job done. But the system of algebra used is not applicable to all 3-D mathematics. "The next stage is mathematical rigor," says Turner.

2-D fractal

Mathematicians have studied self-similar shapes like this one since the turn of the last century. But it was Benoît Mandelbrot who named them "fractals" in 1975. Fractals are more than pretty pictures, though, as the mathematics behind them can explain natural phenomena from the length of coastlines to the structure of the Universe.

There are many types of fractals, both in 2 and 3 dimensions. But the most famous is the 2-D Mandelbrot set shown here. Past attempts to extend it to the third dimension have met with difficulty.

(image: Wolfgang Beyer)

Spun

One method for generating a 3-D Mandelbrot image is to spin the classic 2-D Mandelbrot around a central axis like a block of wood in a lathe. You end up with a 3-D shape. But it's not much different to the original. There are a few ways to produce this shape but none of them add any extra detail.

(image: Paul Bourke)

Raised

The traditional Mandelbrot image is produced through an iterative process with different colors indicating the number of iterations at that point. Another method of making a 3-D Mandelbrot (shown here) keeps the 2-D version but swaps the different colors for changes in height.

With some parts higher and some lower, the effect is similar to the hills and valleys of a relief map. But it's still essentially 2-dimensional.

(image: Aexion)

Whipped

This tasty-looking 3-D Mandelbrot is actually a projection from 4 dimensions just as a square is a 2-D projection of a cube. It is generated using a 4-D version of complex numbers called quaternions. But despite that complexity, its smooth appearance means there is no interesting fractal detail when you zoom in. Even higher-dimensional maths can be used to create 3-D Mandelbrots but with no better results.

(image: Paul Bourke)

Mandelbulb

Daniel White's "Mandelbulb" takes a different approach. He took the geometrical properties of the "complex plane" where multiplication becomes rotation and addition becomes movement of the plane in a particular direction and applied them to a 3-dimensional space.

(image: Daniel White)

Mandelbulb close-up

It took 2 years to perfect the formula which contains incredible detail at even 1000x magnification.

(image: Daniel White)

Mandelbulb close-up 2

Here is a close-up of a spiral section of the Mandelbulb juxtaposed with a 2-D Mandelbrot image.

(image: Daniel White)

Mandelbulb close-up 3

A close-up of the Mandelbulb "spine" and a similar 2-D Mandelbrot.

(image: Daniel White)

Mandelbulb close-up 4

The whole Mandelbulb again from a different viewpoint.

(image: Daniel White)

Readers' Comments

1. Gilding The Lilly?

by Tom / Wed Nov 18, 2009 13:48:34 GMT

Interesting. But adding another dimension to an infinitely complex fractal will only reveal things that were there anyway if you had looked closely enough.

2. A Little Help

by Geraint / Wed Nov 18, 2009 13:53:41 GMT

Now admittedly I've scanned over this briefly before I go to work so likely I've skipped an explanation somewhere. But as interesting as this is, what are the practical applications of mapping fractal equations in this way? It mentioned that the patterns are reminiscent of certain elements in Nature. Is this related to things like weather predictions and such like?

I'd be grateful if someone could reply to a layman here. Mathematics has never been my most intuitive subject! :)

3. A Little Help

by Tony Coleby / Wed Nov 18, 2009 14:45:41 GMT

Hey, I'm a layman too. But one obvious real world application -- at least once computers are fast enough to do these kind of equations on the fly (2 years?!) -- is the generation of realistic objects in computer games and simulations which keep their complexity at infinite scales.

Apart from that, it's just fascinating and is -- I believe -- a work of Art!

4. re: "A Little Help"

by soylent / Wed Nov 18, 2009 15:50:22 GMT

"Hey, I'm a layman too. But one obvious real world application -- at least once computers are fast enough to do these kind of equations on the fly (2 years?!) …""

Not two years, not 20 years. If you can extend Moore's law (and the algorithm is embarrassingly parallelizable), that's only a factor 1000 performance improvement. That doesn't even get you close!

"is the generation of realistic objects in computer games and simulations which keep their complexity at infinite scales."

The market for games centered on abstract art is pretty negligible.

Twiddle with the parameters all you like. All you're going to get is a series of abstract and weird-looking shapes. You're not going to get an infinitely-detailed and accurately-textured mountain all of a sudden. The kind of fractals that Nature employs are more like 3-D versions of Koch's snowflake.

5. re: "A Little Help"

by jamie / Wed Nov 18, 2009 17:19:18 GMT

It's fundamentally possible today. Double-precision support via dx11 and the use of compute shaders will put this kind of thing in "real-time" dependant on resolution today! That is if MS can get their dx11 support squared away anytime soon.

6. Urgh

by Brokk / Wed Nov 18, 2009 15:02:42 GMT

I have a background in maths and find fractals useful and interesting. But there are some images like this one which produce a visceral reaction in me. Others (on this site and elsewhere) are saying the Mandelbulb is "beautiful" and "awesome". I find it disturbing. I know this says more about me than about the maths. But I'm curious to know am I the only one?

7. re: "Urgh"

by Anonymous / Wed Nov 18, 2009 17:29:11 GMT

At first I thought it looked cool. But upon closer inspection, I find it mildly creepy. Not really disturbing but something just "feels off" about it. So nope, you're not the only one! ;)

8. Complex 3-D

by Fritz / Wed Nov 18, 2009 15:20:38 GMT

Maybe White could expand the complex plane into quaternions and use the imaginary part for the 3 dimensions? Beautiful!

9. No Mysticism, Please

by Samuel Monnier / Wed Nov 18, 2009 15:36:58 GMT

Though I enjoy a lot the results obtained by these guys, "finding the 3-D Mandelbrot set" is completely meaningless to me. The Mandelbrot set is obtained by looking at the asymptotic behavior of the iteration z → z2 + c where z and c are complex number.

Starting with z = 0 and an arbitrary value of c, iterate this equation. If the norm of z diverges to infinity, you're outside the Mandelbrot set. If the norm of z converges to zero, you are inside. The norm of z might stay bounded and yet not converge. In which case you're on the boundary.

Now, how can we generalize this by seeing z and c as more general objects than complex number (in particular, we would like z and c to be elements of a 3-D vector space to get a "3-D Mandelbrot set")? We need a vector space for which we are able to multiply 2 vectors and obtain another vector. That's what is called an algebra. Moreover, we need a norm for the bailout condition so we need a normed algebra (also called a Banach algebra).

That's it. I doubt there are so many of 3-D Banach algebras. A trivial one appears in the 3rd example of the Wikipedia article with n=3. But I doubt that it will give you anything interesting. Except from this, I'd be tempted to conjecture that there are no other 3-D Banach algebras. But I didn't try to check it.

And yes, the "whipped cream" quaternions are 3-D slices of a generalization of the Mandelbrot set to 4 dimensions even if it doesn't satisfies the aesthetic taste of Mr. Nylander.

Let me be clear. I really enjoy that people are finding algorithms to produce new amazing 3-D fractals. I just find it pretty stupid to turn this into some mystical and meaningless quest about what is the true 3-D Mandelbrot set. These are just words. They have no more meaning that the one we attribute to them.

10. re. "No Mysticism, Please"

by Brokk / Wed Nov 18, 2009 16:10:40 GMT

As I understand it, it's a "3-D Mandelbrot" in the sense that it does in 3-D what the complex number operations do in 2-D. The operation z2+c does a magnification and rotation (the squaring of z) followed by a translation (c). From what I've read elsewhere, the Mandelbulb is made by combining rotations and translations in 3-D. But I don't know exactly what these are.

So if I'm right about that, the Mandelbulb is geometrically analogous to the Mandelbrot set. But it doesn't use complex arithmetic.

11. Been There, Done That.

by Allen / Wed Nov 18, 2009 16:17:58 GMT

When I saw the "Mandelbulb" images, I was reminded of similar landscapes from the late 60s, early 70s (if you catch my drift). I haven't seen anything reproduce that as well until these images. Ring a bell with anyone else out there?

12. The Mandelbrot Set Is 3-D Already

by David / Wed Nov 18, 2009 16:38:44 GMT

The third dimension is usually represented as a color gradient expressing how quickly the equation diverges.

13. So What …

by alphachapmtl / Wed Nov 18, 2009 18:12:52 GMT

They seem to be doing some random meaningless tweaks to some improvised formula until they get something 3-D that looks cute. But is there any meaning to it?

This was not the way to the Mandelbrot set. The 2-D Mandelbrot set was not designed. It was the inescapable consequence of iterating the very simplest non trivial second-degree equation over the complex plane.

14. Wrong Definition

by Mark / Wed Nov 18, 2009 18:39:51 GMT

"Some will balloon to infinity escaping the set entirely while others shrink down to zero. The different colors on a typical image reflect the number of iterations before each point hits zero."

When calculating the points in the set, a "size" is calculated after each iteration. If the "size" grows to 2, it will continue to infinity. These points are outside the Mandelbrot set. The number of iterations it takes to get to size 2 are used to determine the color of that pixel. For a fully zoomed-out image, the iterations are usually less that 200 per point. The Mandelbrot set is actually the uninteresting dark bits at the middle of the image. To my knowledge, none of the points ever reaches zero.

The Mandelbrot set is the set of all Julia sets. For the Mandlebulb to be a true fractal, perhaps it should be the set of all Juliabulbs.

Fractals are objects that have fractional dimensions. Mandelbrot later regretted using the term "self-similarity" to describe them. It's not the defining factor.

15. Fracrove Did It Years Ago

by Roy Taylor / Wed Nov 18, 2009 19:52:08 GMT

In the early 90s, I wrote a DOS program called "FracRove" that showed the Mandelbrot Set was a 4-D object and showed how to slice through various 3-D views of it. That program continues in its Windows incarnation on my website ( ).

The technique of multiplying, rotating, etc. doesn't produce a true 3-D image but is simply creating something out of the 2-D conventional view. I don't deny their method produces spectacular new fractal regions to explore. But I don't believe it to be the true 3-D structure.

16. re: "Fracrove Did It Years Ago"

by Tom / Thu Nov 19, 2009 00:15:14 GMT

Since you didn't explain in your program the other 2 axes are of the Julia set at each 2-D Mandelbrot coordinate. This gives a "whipped cream" effect. Julia sets are not Mandelbrots so it is not a higher dimension Mandelbrot-like fractal.

Mandelbrots are significantly different from other fractals and have much more variety than Julia sets.

Even if this Mandelbulb isn't the unique simplest 3-D Mandelbrot, it still will probably contain most of the shapes and patterns. Just like an order '4' Mandelbrot contains the same sort of patterns and swirls as the regular Mandelbrot.

17. re: "Fracrove Did It Years Ago"

by fransiss / Thu Nov 19, 2009 15:22:23 GMT

Have you seen the stuff on Daniel's website? Does anybody know what app can produce this thing and what formulae to paste in? I tried POVRAY yesterday but I can't even get an image from that thing.

I find their stuff stunning but have not much clue how they manage to get the 3-D feel and lightning and shadowing as they do.

18. Mandelbrot=2?

by Rodney / Wed Nov 18, 2009 22:34:31 GMT

Nice to see the attempt. But the Mandelbrot isn't 2-D. It is a solution on the complex plane (that is, singular complex numbers). You can't do 3-D on its own. That's why quaternions were discovered. You need to use two pairs of complex numbers, giving 4 values when calculating or a real and 3 imaginary of the quaternion. As soon as you do this, you then have to ask what is the octonion Mandelbrot? And is the square the value 2 because that's the solution you're looking for, the attractor.

What if we look for W=W^(Z(1))+(Z(2)). Would it give the solution for the point Z(1), complex, quaternion, octonion etc. given Z(1)=2.0 real for the Mandelbrot set and Z(2) is the scan over the complete set of points of that function, for that solution?

Or would you end up with something only explorable in the LHC?

19. Error

by james / Thu Nov 19, 2009 13:13:57 GMT

The colors of the Mandelbrot image represent the number of iterations before the value escapes a certain limit -- not when it reaches zero.

Only points in the centre of the set ever reach zero. Points close to the boundary (i.e., the fractal's edge) never reach either, often behaving chaotically.

20. Convert Any 3-D Object Into A Fractal

by nick / Thu Nov 19, 2009 13:23:33 GMT

After seeing this figure, i think any 3-D object can be turned into some fractal object. For example, take a human skull and let it be made out of repeating skulls which are made from skulls to (or parts of skulls). Just like they can make Mona Lisa from tiny totally different pictures in the right color and fit them in.