Welcome to Fractal Forums

Fractal Math, Chaos Theory & Research => Theory => Topic started by: bugman on December 04, 2009, 05:41:07 PM




Title: 3D Mandelbrot Formula based on the Hopf Map
Post by: bugman on December 04, 2009, 05:41:07 PM
In search of the ideal 3D Mandelbrot set, a couple of people on this forum have mentioned the hairy ball theorem. Basically, the problem with the Mandelbulb formula has something to do with the poles of the spherical coordinate system. Everything gets distorted near the poles. An ideal formula would have no poles, but this is only possible in 4 dimensions (because of the hairy ball theorem). This got me thinking, maybe we could create the ideal 4D Mandelbrot using the Hopf map (a mapping for the surface of the 4D sphere with no poles), I'll call it the "Hopfbrot". So I came up with the following formula and I tried rendering it. Unfortunately, it doesn't look as I had hoped, although it does contain the Mandelbulb. But perhaps this will provide some more food for thought.


Title: Re: 3D Mandelbrot Formula based on the Hopf Map
Post by: bib on December 04, 2009, 06:05:53 PM
Very nice! The quest goes on... :)

As I posted somewhere else, I think everybody "imagines" the ideal 3D Mandelbrot, it would look like this famous picture: http://www.renderosity.com/mod/gallery/index.php?image_id=1308487&member

So why not try a completely different approach, and of course completely wrong and purely artistic, for example by using a 3D software to draw a kind of apple (a 3D cardioid) and then plug spheres all around, etc... ??


Title: Re: 3D Mandelbrot Formula based on the Hopf Map
Post by: BradC on December 04, 2009, 06:49:03 PM
Coolness! Even though it has whipped cream / taffy, I like this idea. Thanks for the lesson. :)

In general, I think the taffy problem happens because the power function isn't conformal. The 3D White-Nylander power functions are least conformal near the poles. In experimenting with 2D escape time fractals over the years, I think I've noticed that fractals that look all stretched out come from formulas that aren't conformal, and fractals that look "nice" invariably come from formulas that are. I think this makes sense because that's what a non-conformal map does--it "stretches out" space.

As pointed out by Tglad on another thread, Liouville's theorem says that the only smooth conformal maps possible in > 2 dimensions are Moebius transformations, which unfortunately don't become complicated when iterated since they form a closed group. I suspect that if one could find a 3D map that was somehow "close" to being conformal, it still might not be good enough because any deviations from conformality might get magnified when iterated lots of times. I think completely getting rid of the taffy is likely a hopeless task, but there may be other nice ways to compromise. In my opinion, the high-degree Mandelbulb fractals are nice ones because they "spread the taffy around" so that there are lots of areas that aren't dominated by it. It seems kinda hard to find much variety in them though from what I've seen so far.


Title: Re: 3D Mandelbrot Formula based on the Hopf Map
Post by: kram1032 on December 04, 2009, 08:32:06 PM
Funny that you come with that idea...

I had an other idea which is kinda similar probably...

Yesterday I did some tries of slight variations of the riemann's surface mapping and got some interesting (yet not at all Mandelbrot-like) results. (Actually that was clear as I didn't do any variation which would include anything close to z^n+c)

The direct transformation didn't work as the third dimension is based on just two input values.

So my idea right now is, to use
(http://upload.wikimedia.org/wikipedia/commons/3/32/Hypersphere_coord.PNG)
Stereographic Projection but basically ignoring that the whole thing usually is said to be done on the hypersphere's surface.
If you use outranged values and use the convertion formulas as usually, you still get points inside the space....

That might allow for interesting projections... - only [0.0] can't be mapped afaik... - though an equivalent of the Mandelbrot would stay at 0 at that value, anyway....

The results might be mathematically senselessish but they should work anyway :)


Title: Re: 3D Mandelbrot Formula based on the Hopf Map
Post by: bugman on December 05, 2009, 07:28:00 PM
Here are some more slices of the Hopfbrot. The slice at zc = 0 looks like it might be worth further investigation. I think the slice at yc = 0 looks like a Christmas tree. And the slice at xc = 0 is just, weird.


Title: Re: 3D Mandelbrot Formula based on the Hopf Map
Post by: stigomaster on December 05, 2009, 09:32:32 PM
Wow! The zc = 0 one actually looks a little holy grail-ish. That's a lot like how I would imagine the 3d m-set.


Title: Re: 3D Mandelbrot Formula based on the Hopf Map
Post by: JosLeys on December 05, 2009, 10:35:43 PM
Hi Paul,

Although I made a movie some time ago about the Hopf fibration, I don't understand what you are doing here.

Here are some things I know about it, and I don't really see how it relates to you formula.

Let z1 and z2 be complex numbers, related as z2=a.z1 (a is a complex number also). The intersection of the plane z2=a.z1 with the three-sphere gives a circle in R^3 under stereographic projection from S^3 to R^3. As there are an infinite number of complex numbers a this gives an infinity of circles (and every one of those circles is linked with all the other ones)

See http://www.dimensions-math.org/Dim_reg_E.htm (http://www.dimensions-math.org/Dim_reg_E.htm) (see the films Dimensions_7 and Dimensions_8)

Can you clarify?


Title: Re: 3D Mandelbrot Formula based on the Hopf Map
Post by: kram1032 on December 06, 2009, 12:46:02 AM
Sorry for OT but can you tell me what piece is that nice main music used?
(Used all the way through in the preview and also a lot in the others...)


Title: Re: 3D Mandelbrot Formula based on the Hopf Map
Post by: JosLeys on December 06, 2009, 12:42:24 PM
It's "Sheep may safely graze" by J.S.Bach


Title: Re: 3D Mandelbrot Formula based on the Hopf Map
Post by: kram1032 on December 07, 2009, 03:15:11 PM
thanks a lot :D
I like it very much :)
- generally, the music you chose is nice :)


Title: Re: 3D Mandelbrot Formula based on the Hopf Map
Post by: Paolo Bonzini on December 07, 2009, 11:24:23 PM
What does the zc=0 slice look like for power 8?


Title: Re: 3D Mandelbrot Formula based on the Hopf Map
Post by: Daniel_P on December 08, 2009, 02:46:51 PM
Paul - great work, I think this is a very interesting direction.

Instead of rendering the flat slice where W=constant, perhaps you could try the intersection of the set with a 3-sphere, projected down stereographically ?

I described something along these lines here:
http://www.fractalforums.com/3d-fractal-generation/true-3d-mandlebrot-type-fractal/msg8472/#msg8472 (http://www.fractalforums.com/3d-fractal-generation/true-3d-mandlebrot-type-fractal/msg8472/#msg8472)

Here is the stereographic projection from the unit 3-sphere down to flat 3-space:

X = x / (1 - w)
Y = y / (1 - w)
Z = z / (1 - w)

And here is the reverse projection from flat 3-space up to the 3-sphere:

 X = 2 * x / (1 + x ^ 2 + y ^ 2 + z ^ 2)
 Y = 2 * y / (1 + x ^ 2 + y ^ 2 + z ^ 2)
 Z = 2 * z / (1 + x ^ 2 + y ^ 2 + z ^ 2)
 W = (-1 + x ^ 2 + y ^ 2 + z ^ 2) / (1 + x ^ 2 + y ^ 2 + z ^ 2)

These are the equations I used (in the opposite order and with a 4D rotation in between) to create the animations on these pages:
http://spacesymmetrystructure.wordpress.com/2008/12/11/4-dimensional-rotations/ (http://spacesymmetrystructure.wordpress.com/2008/12/11/4-dimensional-rotations/).
(http://spacesymmetrystructure.files.wordpress.com/2007/08/stanford_horse1.jpg)

Under this projection/rotation/projection any point in 3D sweeps out one of the circles of the Hopf fibration as described here:
http://spacesymmetrystructure.wordpress.com/links/4-dimensional-rotations-page4/ (http://spacesymmetrystructure.wordpress.com/links/4-dimensional-rotations-page4/)
http://vimeo.com/3945328


Title: Re: 3D Mandelbrot Formula based on the Hopf Map
Post by: kram1032 on December 08, 2009, 04:29:44 PM
great videos :D

That way, both the quaternionean (or offspring of that) Mandelbrot as well as the full Mandelbrot set, where also the c-plane changes, could be downprojected during rotations...

I'm not totally sure but I *think* I really never saw a stereographic projection of the full 2+2iD Mandelbrot object... - only inversed Mandelbrots, I think...


Title: Re: 3D Mandelbrot Formula based on the Hopf Map
Post by: bugman on December 08, 2009, 06:42:51 PM
Hi Paul,

Although I made a movie some time ago about the Hopf fibration, I don't understand what you are doing here.

Here are some things I know about it, and I don't really see how it relates to you formula.

Let z1 and z2 be complex numbers, related as z2=a.z1 (a is a complex number also). The intersection of the plane z2=a.z1 with the three-sphere gives a circle in R^3 under stereographic projection from S^3 to R^3. As there are an infinite number of complex numbers a this gives an infinity of circles (and every one of those circles is linked with all the other ones)

See http://www.dimensions-math.org/Dim_reg_E.htm (http://www.dimensions-math.org/Dim_reg_E.htm) (see the films Dimensions_7 and Dimensions_8)

Can you clarify?

I used slightly different notation, but I got the formula for my HopfInverse function from this Mathematica notebook by Srdjan Vukmirovic:
http://library.wolfram.com/infocenter/MathSource/5193/

I also posted some sample code here:
http://bugman123.com/Math/Math.html#HopfFibration

If the sphere is parameterized by angles phi and theta, then the HopfInverse function returns the 4D point from the fiber over phi and theta. Psi describes a particular point in the fiber:
HopfInverse(theta, phi, psi) = {cos(phi/2)*cos(psi), cos(phi/2)*sin(psi), cos(theta+psi)*sin(phi/2), sin(theta+psi)*sin(phi/2)}

I also defined the radius of the hypersphere:
r = sqrt(x²+y²+z²+w²).

So the complete transformation becomes:
{x, y, z, w} = r*HopfInverse(theta, phi, psi)

First I solved the inverse of this transformation for {r, theta, phi, and psi} in terms of {x, y, z, w}:
theta = acos(z/rzw) - psi
phi = 2*acos(rxy/r)
psi = acos(x/rxy)
where rxy = sqrt(x²+y²), rzw = sqrt(z²+w²)

Then I multiplied these angles by my constant power n and raised r to the nth power before feeding the new angles back into the HopfInverse function. So this becomes my final power function:
{x, y, z, w}^n = r^n HopfInverse(n*theta, n*phi, n*psi)


Title: Re: 3D Mandelbrot Formula based on the Hopf Map
Post by: Paolo Bonzini on December 08, 2009, 07:57:57 PM
I think you're right in eliminating the Abs.  It is just an artefact of using ArcCos (which has a range of only PI, not 2PI).  Just to be sure, if you feed Mathematica something based on arctan(y/x) it should produce formulas without Abs.

Have you taken a look at my quaternion thing? Can you try feeding it to Mathematica and see what it simplifies to?...


Title: Re: 3D Mandelbrot Formula based on the Hopf Map
Post by: bugman on December 21, 2009, 06:44:17 AM
Here are some 8th order renderings of the 3D slices using this Hopfbrot formula.


Title: Re: 3D Mandelbrot Formula based on the Hopf Map
Post by: TedWalther on December 22, 2009, 11:52:20 AM
Coolness! Even though it has whipped cream / taffy, I like this idea. Thanks for the lesson. :)

In general, I think the taffy problem happens because the power function isn't conformal. The 3D White-Nylander power functions are least conformal near the poles. In experimenting with 2D escape time fractals over the years, I think I've noticed that fractals that look all stretched out come from formulas that aren't conformal, and fractals that look "nice" invariably come from formulas that are. I think this makes sense because that's what a non-conformal map does--it "stretches out" space.

As pointed out by Tglad on another thread, Liouville's theorem says that the only smooth conformal maps possible in > 2 dimensions are Moebius transformations, which unfortunately don't become complicated when iterated since they form a closed group. I suspect that if one could find a 3D map that was somehow "close" to being conformal, it still might not be good enough because any deviations from conformality might get magnified when iterated lots of times. I think completely getting rid of the taffy is likely a hopeless task, but there may be other nice ways to compromise. In my opinion, the high-degree Mandelbulb fractals are nice ones because they "spread the taffy around" so that there are lots of areas that aren't dominated by it. It seems kinda hard to find much variety in them though from what I've seen so far.

Just out of curiosity, and because you KNOW I'm going to have to go now and find a 3d conformal function, can you explain in what sense the 2d mandelbrot function is conformal?  I read on wikipedia that conformal functions preserve angles; if I may ask, which angle is being preserved by the 2d mandelbrot function?


Title: Re: 3D Mandelbrot Formula based on the Hopf Map
Post by: Tglad on December 22, 2009, 01:41:16 PM
"if I may ask, which angle is being preserved by the 2d mandelbrot function?"
Hi Ted, I read up on this recently so I'll try and forge an answer. By conformal they mean that internal angles of any set of points that are close together stay the same. So if you choose three points in say a right angled triangle near to 0+i, then the map Z^2 will map those 3 points to a new right angled triangle near to -1+0i. In fact Z^2+c will convert any small shape in the complex plane into the same shape, just rotated and scaled, but importantly, not stretched.
Another way to visualise it is, if you apply the function to a regular grid, then the resulting distorted grid lines will still cross at right angles.

According to Liouville's theorem in 3d there are only 5 mappings that are conformal: translation, rotation by a fixed angle, uniform scaling, reflection and inverse (scaling vector by 1/length^2)... and combinations of these. Though combinations basically cancel down back to this simple set.

I looked a little at 'quasi-conformal' maps, which nearly preserve angles, so have an upper bound on their stretch. In particular, folding in a tetrahedral pattern seems quasi-conformal. None of the mandelbulb formulas are quasi conformal as their stretch goes to infinity at the poles.


Title: Re: 3D Mandelbrot Formula based on the Hopf Map
Post by: bugman on January 02, 2010, 11:32:10 PM
Very nice! The quest goes on... :)

As I posted somewhere else, I think everybody "imagines" the ideal 3D Mandelbrot, it would look like this famous picture: http://www.renderosity.com/mod/gallery/index.php?image_id=1308487&member

So why not try a completely different approach, and of course completely wrong and purely artistic, for example by using a 3D software to draw a kind of apple (a 3D cardioid) and then plug spheres all around, etc... ??


Here is a link to a similar artistic approach:
http://www.fractalforums.com/theory/mandelbrot-pearls/


Title: Re: 3D Mandelbrot Formula based on the Hopf Map
Post by: faxingberlin on May 03, 2017, 02:27:40 PM
In search of the ideal 3D Mandelbrot set, a couple of people on this forum have mentioned the hairy ball theorem. Basically, the problem with the Mandelbulb formula has something to do with the poles of the spherical coordinate system. Everything gets distorted near the poles. An ideal formula would have no poles, but this is only possible in 4 dimensions (because of the hairy ball theorem). This got me thinking, maybe we could create the ideal 4D Mandelbrot using the Hopf map (a mapping for the surface of the 4D sphere with no poles), I'll call it the "Hopfbrot". So I came up with the following formula and I tried rendering it. Unfortunately, it doesn't look as I had hoped, although it does contain the Mandelbulb. But perhaps this will provide some more food for thought.

Thanks for the information!
I made Hopfbrot Fractal using Houdini.