Mandelbulb: Difference between revisions
No edit summary |
No edit summary |
||
Line 10: | Line 10: | ||
Ruis's formula for the "''n''th power" of the vector <math>\mathbf v = \langle x, y, z\rangle</math> in {{math|ℝ<sup>3</sup>}} is to see at http://www.fractal.org/Formula-Mandelbulb.pdf |
Ruis's formula for the "''n''th power" of the vector <math>\mathbf v = \langle x, y, z\rangle</math> in {{math|ℝ<sup>3</sup>}} is to see at http://www.fractal.org/Formula-Mandelbulb.pdf |
||
The exponentiation term can be defined by: |
|||
: <math>\mathbf v^n := r^n \langle\sin(n\theta) \cos(n\phi), \sin(n\theta) \sin(n\phi), \cos(n\theta)\rangle,</math> |
|||
{x,y,z} ^n = (r^n) { cos(n*φ) * cos(n*θ), sin(n*φ) * cos(n*θ), sin(n*θ)} |
|||
where r = sqrt (x^2 + y^2 + z^2) and r1 = sqrt (x^2 + y^2) |
|||
As we define θ as the angle in z-r1-space and φ as the angle in x-y-space |
|||
where |
|||
then θ = atan2 (z / r1) so θ = atan2 (z / sqrt (x^2 + y^2)) and φ = atan2 (y/x) |
|||
: <math>\phi = \arctan\frac{y}{x} = \arg(x + yi),</math> |
|||
: <math>\theta = \arctan\frac{\sqrt{x^2 + y^2}}{z} = \arccos\frac{z}{r}.</math> |
|||
The addition term in z -> z^n + c is similar to standard complex addition, and is simply defined by: |
|||
The Mandelbulb is then defined as the set of those <math>\mathbf c</math> in {{math|ℝ<sup>3</sup>}} for which the orbit of <math>\langle 0, 0, 0\rangle</math> under the iteration <math>\mathbf v \mapsto \mathbf v^n + \mathbf c</math> is bounded.<ref>{{cite web |
|||
(x,y,z} + {a,b,c) = {x+a, y+b, z+c} |
|||
|url=http://www.skytopia.com/project/fractal/2mandelbulb.html |
|||
The rest of the algorithm is similar to the 2D Mandelbrot! |
|||
|title=Mandelbulb: The Unravelling of the Real 3D Mandelbrot Fractal}} see "formula" section.</ref> 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 [[mathematical beauty|more elegant]] form: |
|||
Summary Formula 3D Mandelbulb, Juliusbulb and Juliabulb |
|||
: <math>\langle x, y, z\rangle^3 = \left\langle\frac{(3z^2 - x^2 - y^2) x (x^2 - 3y^2)}{x^2 + y^2}, \frac{(3z^2 - x^2 - y^2) y (3x^2 - y^2)}{x^2 + y^2}, z (z^2 - 3x^2 - 3y^2)\right\rangle.</math> |
|||
r = sqrt (x^2 + y^2 + z^2) |
|||
θ = atan2 (z / sqrt(x^2 + y^2) |
|||
The Mandelbulb given by the formula of Jules Ruis is actually one in a family of fractals given by parameters (''p'', ''q'') given by |
|||
φ = atan2 (y/x) |
|||
newx = (r^n) * cos(n*φ) * cos(n*θ) |
|||
: <math>\mathbf v^n := r^n \langle\sin(p\theta) \cos(q\phi), \sin(p\theta) \sin(q\phi), \cos(p\theta)\rangle.</math> |
|||
newy = (r^n) * sin(n*φ) * cos(n*θ) |
|||
newz = (r^n) * sin(n*θ) |
|||
Since ''p'' and ''q'' do not necessarily have to equal ''n'' for the identity |''v<sup>n</sup>''| = |''v''|<sup>''n''</sup> to hold, more general fractals can be found by setting |
|||
where n is the order of the 3D Mandelbulb, Juliusbulb/Juliabulb. |
|||
: <math>\mathbf v^n := r^n \big\langle\sin\big(f(\theta, \phi)\big) \cos\big(g(\theta, \phi)\big), \sin\big(f(\theta, \phi)\big) \sin\big(g(\theta, \phi)\big), \cos\big(f(\theta, \phi)\big)\big\rangle</math> |
|||
for functions ''f'' and ''g''. |
|||
==Quadratic formula== |
==Quadratic formula== |
Revision as of 15:10, 13 September 2021
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.[1]
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.
Ruis's formula for the "nth power" of the vector in ℝ3 is to see at http://www.fractal.org/Formula-Mandelbulb.pdf
The exponentiation term can be defined by: {x,y,z} ^n = (r^n) { cos(n*φ) * cos(n*θ), sin(n*φ) * cos(n*θ), sin(n*θ)} where r = sqrt (x^2 + y^2 + z^2) and r1 = sqrt (x^2 + y^2)
As we define θ as the angle in z-r1-space and φ as the angle in x-y-space then θ = atan2 (z / r1) so θ = atan2 (z / sqrt (x^2 + y^2)) and φ = atan2 (y/x)
The addition term in z -> z^n + c is similar to standard complex addition, and is simply defined by: (x,y,z} + {a,b,c) = {x+a, y+b, z+c} The rest of the algorithm is similar to the 2D Mandelbrot!
Summary Formula 3D Mandelbulb, Juliusbulb and Juliabulb r = sqrt (x^2 + y^2 + z^2) θ = atan2 (z / sqrt(x^2 + y^2) φ = atan2 (y/x) newx = (r^n) * cos(n*φ) * cos(n*θ) newy = (r^n) * sin(n*φ) * cos(n*θ) newz = (r^n) * sin(n*θ) where n is the order of the 3D Mandelbulb, Juliusbulb/Juliabulb.
Quadratic formula
Other formulae come from identities parametrising the sum of squares to give a power of the sum of squares, such as
which we can think of as a way to square a triplet of numbers so that the modulus is squared. So this gives, for example,
or various other permutations. This "quadratic" formula can be applied several times to get many power-2 formulae.
Cubic formula
Other formulae come from identities parametrising the sum of squares to give a power of the sum of squares, such as
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,
or other permutations.
This reduces to the complex fractal when z = 0 and 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
Another way to create Mandelbulbs with cubic symmetry is by taking the complex iteration formula 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 .) For example, take the case of . In two dimensions, where , this is
This can be then extended to three dimensions to give
for arbitrary constants A, B, C and D, which give different Mandelbulbs (usually set to 0). The case 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 .
Power-nine formula
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,
These formula can be written in a shorter way:
and equivalently for the other coordinates.
Spherical formula
A perfect spherical formula can be defined as a formula
where
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 kerht is represented by a stylized golden mandelbulb.
See also
References
- ^ "Hypercomplex fractals".
- ^ Desowitz, Bill (January 30, 2015). "Immersed in Movies: Going Into the 'Big Hero 6' Portal". Animation Scoop. Indiewire. Archived from the original on May 3, 2015. Retrieved May 3, 2015.
- ^ 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: 52:1. doi:10.1145/2775280.2792521. ISBN 9781450336369.
- ^ Gaudette, Emily (February 26, 2018). "What Is Area X and the Shimmer in 'Annihilation'? VFX Supervisor Explains the Horror Film's Mathematical Solution". Newsweek. Retrieved March 9, 2018.
6. http://www.fractal.org the Fractal Navigator by Jules Ruis
External links
- for the first use of the Mandelbulb formula on www.fractal.org website Jules Ruis
- Mandelbulb: The Unravelling of the Real 3D Mandelbrot Fractal, on Daniel White's website
- Several variants of the Mandelbulb, on Paul Nylander's website
- An opensource fractal renderer that can be used to create images of the Mandelbulb
- Formula for Mandelbulb/Juliabulb/Juliusbulb by Jules Ruis
- Mandelbulb/Juliabulb/Juliusbulb with examples of real 3D objects
- Video : View of the Mandelbulb
- The discussion thread in Fractalforums.com that led to the Mandelbulb
- Video fly through of an animated Mandelbulb world