Mandelbulb

From HandWiki
Short description: Three-dimensional fractal

File:Visit of the Mandelbulb (4K UHD; 50FPS).webm

A ray-traced image of the 3D Mandelbulb for the iteration vv8 + c

The Mandelbulb is a three-dimensional fractal, constructed for the first time in 1997 by Jules Ruis and in 2009 further developed by Daniel White and Paul Nylander using spherical coordinates.

A canonical 3-dimensional Mandelbrot set does not exist, since there is no 3-dimensional analogue of the 2-dimensional space of complex numbers. It is possible to construct Mandelbrot sets in 4 dimensions using quaternions and bicomplex numbers.

White and Nylander's formula for the "nth power" of the vector 𝐯=x,y,z in 3 is

𝐯n:=rnsin(nθ)cos(nϕ),sin(nθ)sin(nϕ),cos(nθ),

where

r=x2+y2+z2,
ϕ=arctanyx=arg(x+yi),
θ=arctanx2+y2z=arccoszr.

The Mandelbulb is then defined as the set of those 𝐜 in 3 for which the orbit of 0,0,0 under the iteration 𝐯𝐯n+𝐜 is bounded.[1] For n > 3, the result is a 3-dimensional bulb-like structure with fractal surface detail and a number of "lobes" depending on n. Many of their graphic renderings use n = 8. However, the equations can be simplified into rational polynomials when n is odd. For example, in the case n = 3, the third power can be simplified into the more elegant form:

x,y,z3=(3z2x2y2)x(x23y2)x2+y2,(3z2x2y2)y(3x2y2)x2+y2,z(z23x23y2).

The Mandelbulb given by the formula above is actually one in a family of fractals given by parameters (pq) given by

𝐯n:=rnsin(pθ)cos(qϕ),sin(pθ)sin(qϕ),cos(pθ).

Since p and q do not necessarily have to equal n for the identity |vn| = |v|n to hold, more general fractals can be found by setting

𝐯n:=rnsin(f(θ,ϕ))cos(g(θ,ϕ)),sin(f(θ,ϕ))sin(g(θ,ϕ)),cos(f(θ,ϕ))

for functions f and g.

Cubic formula

Cubic fractal

Other formulae come from identities parametrising the sum of squares to give a power of the sum of squares, such as

(x33xy23xz2)2+(y33yx2+yz2)2+(z33zx2+zy2)2=(x2+y2+z2)3,

which we can think of as a way to cube a triplet of numbers so that the modulus is cubed. So this gives, for example,

xx33x(y2+z2)+x0
yy3+3yx2yz2+y0
zz33zx2+zy2+z0

or other permutations.

This reduces to the complex fractal ww3+w0 when z = 0 and ww3+w0 when y = 0.

There are several ways to combine two such "cubic" transforms to get a power-9 transform, which has slightly more structure.

Quintic formula

Quintic Mandelbulb
Quintic Mandelbulb with C = 2

Another way to create Mandelbulbs with cubic symmetry is by taking the complex iteration formula zz4m+1+z0 for some integer m and adding terms to make it symmetrical in 3 dimensions but keeping the cross-sections to be the same 2-dimensional fractal. (The 4 comes from the fact that i4=1.) For example, take the case of zz5+z0. In two dimensions, where z=x+iy, this is

xx510x3y2+5xy4+x0,
yy510y3x2+5yx4+y0.

This can be then extended to three dimensions to give

xx510x3(y2+Ayz+z2)+5x(y4+By3z+Cy2z2+Byz3+z4)+Dx2yz(y+z)+x0,
yy510y3(z2+Axz+x2)+5y(z4+Bz3x+Cz2x2+Bzx3+x4)+Dy2zx(z+x)+y0,
zz510z3(x2+Axy+y2)+5z(x4+Bx3y+Cx2y2+Bxy3+y4)+Dz2xy(x+y)+z0

for arbitrary constants A, B, C and D, which give different Mandelbulbs (usually set to 0). The case zz9 gives a Mandelbulb most similar to the first example, where n = 9. A more pleasing result for the fifth power is obtained by basing it on the formula zz5+z0.

Fractal based on z → −z5

Power-nine formula

Fractal with z9 Mandelbrot cross-sections

This fractal has cross-sections of the power-9 Mandelbrot fractal. It has 32 small bulbs sprouting from the main sphere. It is defined by, for example,

xx936x7(y2+z2)+126x5(y2+z2)284x3(y2+z2)3+9x(y2+z2)4+x0,
yy936y7(z2+x2)+126y5(z2+x2)284y3(z2+x2)3+9y(z2+x2)4+y0,
zz936z7(x2+y2)+126z5(x2+y2)284z3(x2+y2)3+9z(x2+y2)4+z0.

These formula can be written in a shorter way:

x12(x+iy2+z2)9+12(xiy2+z2)9+x0

and equivalently for the other coordinates.

Power-nine fractal detail

Spherical formula

A perfect spherical formula can be defined as a formula

(x,y,z)(f(x,y,z)+x0,g(x,y,z)+y0,h(x,y,z)+z0),

where

(x2+y2+z2)n=f(x,y,z)2+g(x,y,z)2+h(x,y,z)2,

where f, g and h are nth-power rational trinomials and n is an integer. The cubic fractal above is an example.

Uses in media

  • In the 2014 computer-animated film Big Hero 6, the climax takes place in the middle of a wormhole, which is represented by the stylized interior of a Mandelbulb.[2][3]
  • In the 2018 science fiction horror film Annihilation, an extraterrestrial being appears in the form of a partial Mandelbulb.[4]
  • In the webcomic Unsounded the spirit realm of the khert is represented by a stylized golden mandelbulb.

See also

References

  1. "Mandelbulb: The Unravelling of the Real 3D Mandelbrot Fractal". http://www.skytopia.com/project/fractal/2mandelbulb.html.  see "formula" section.
  2. Desowitz, Bill (January 30, 2015). "Immersed in Movies: Going Into the 'Big Hero 6' Portal". Indiewire. http://blogs.indiewire.com/animationscoop/immersed-in-movies-going-into-the-big-hero-6-portal-20150130. 
  3. Hutchins, David; Riley, Olun; Erickson, Jesse; Stomakhin, Alexey; Habel, Ralf; Kaschalk, Michael (2015). "Big Hero 6: Into the portal". ACM SIGGRAPH 2015 Talks. SIGGRAPH '15. New York, NY, USA: ACM. pp. 52:1. doi:10.1145/2775280.2792521. ISBN 9781450336369. 
  4. Gaudette, Emily (February 26, 2018). "What Is Area X and the Shimmer in 'Annihilation'? VFX Supervisor Explains the Horror Film's Mathematical Solution". Newsweek. http://www.newsweek.com/annihilation-meaning-shimmer-area-x-lighthouse-818834. 

6. http://www.fractal.org the Fractal Navigator by Jules Ruis