3D Mandelbulb

parva
Petty Officer Second Class
Posts: 24
Joined: 06 Aug 2009, 13:00

3D Mandelbulb

Post by parva »

Really amazing what kind of quality a 3D fractal can create.
Image
I wished there would be a program that can store those kind of details as obj :D
I just remember xenomorph but that could'nt create such stunning results.

Here is the site to Daniel White
http://www.skytopia.com/project/fractal/mandelbulb.html
User avatar
Prodigy
Site Admin
Posts: 957
Joined: 21 May 2009, 14:46
Type the number ten into the box: 0
Location: Uruguay

Re: 3D Mandelbulb

Post by Prodigy »

Pretty amazing parva,
I love fractals but this is much more beautiful..

thanks for share!
๑۩۞۩๑ prodigy ๑۩۞۩๑
User avatar
Steinie
Captain
Posts: 2958
Joined: 21 May 2009, 17:38
Type the number ten into the box: 10

Re: 3D Mandelbulb

Post by Steinie »

Very cool! These are amazing examples.
User avatar
Rhino169
Senior Chief Petty Officer
Posts: 201
Joined: 29 Nov 2009, 03:15

Re: 3D Mandelbulb

Post by Rhino169 »

That video at the bottom of that link was awesome too..

Here's a link to other Fractural software...

http://www.fractalforums.com/windows-fractal-software/"
User avatar
Rhino169
Senior Chief Petty Officer
Posts: 201
Joined: 29 Nov 2009, 03:15

Re: 3D Mandelbulb

Post by Rhino169 »

Can our beloved Truespace create anything like this ...or is the polycount too deadly?

I would assume there would need to be some scritping involved.
8-)
User avatar
Rhino169
Senior Chief Petty Officer
Posts: 201
Joined: 29 Nov 2009, 03:15

Re: 3D Mandelbulb

Post by Rhino169 »

Here's some code.....if anyone is interested in having truespace make a mandelbulb. Not even sure it is possible! :roll:


What's the formula of this thing?
There are a few subtle variations, which mostly end up producing the same kind of incredible detail. Listed below is one version. Similar to the original 2D Mandelbrot, the 3D formula is defined by:

z -> z^n + c

...but where 'z' and 'c' are hypercomplex ('triplex') numbers, representing Cartesian x, y, and z coordinates. The exponentiation term can be defined by:

{x,y,z}^n = r^n { sin(theta*n) * cos(phi*n) , sin(theta*n) * sin(phi*n) , cos(theta*n) }
...where:
r = sqrt(x^2 + y^2 + z^2)
theta = atan2( sqrt(x^2+y^2), z )
phi = atan2(y,x)

And 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!

Here is some pseudo code of the above:

r = sqrt(x*x + y*y + z*z )
theta = atan2(sqrt(x*x + y*y) , z)
phi = atan2(y,x)

newx = r^n * sin(theta*n) * cos(phi*n)
newy = r^n * sin(theta*n) * sin(phi*n)
newz = r^n * cos(theta*n)

...where n is the order of the 3D Mandelbulb. Use n=8 to find the exact object in this article.

The formulae above is the higher power analogue to the first green object shown on the first page here, but also see the formulae on Paul Nylander's page, which corresponds to the second green object shown instead. Both produce amazing (and similar) objects when put to the higher powers.

There are also techniques to improve rendering speed as found by FractalForum.com members:

Distance estimation provided by David Makin.

Powers -2 to 4 and powers 5 to 8, without the trig, to increase speed, by Paul Nylander. Also see Karl's earlier version for power 2 to check for "divide by zero" errors for the y values. One may need to use that technique for the higher powers too.
.
danperk

Re: 3D Mandelbulb

Post by danperk »

Thanks for the link Marcel!!!

I checked out Subblues' Pixel Bender Plug-in for Photoshop & After Effects
and it works amazingly well.

Attached animated gif was quick result from 2 parameters key framed.

Warning, 4 Meg gif file.
Comp 4.gif
froo
Captain
Posts: 2554
Joined: 22 May 2009, 12:13

Re: 3D Mandelbulb

Post by froo »

well, I think this could be done in truespace, but maybe not an entire model.
The script/plugin would have to keep a count of the number of polygons
and triangles created, and just stop creating the model when a critical count
is reached.

So what you might end up with is a partial model. Which may be fine, depending
on your needs. Worth looking into.
User avatar
Rhino169
Senior Chief Petty Officer
Posts: 201
Joined: 29 Nov 2009, 03:15

Re: 3D Mandelbulb

Post by Rhino169 »

Hey....some of these displacement mapping images in this thread:

vi ... 339#p13339"

are looking similar to this mandelbulb thread....is there a way to make a mandelbulb using displacement? or does it have to be all polygons?
User avatar
nigec
Master Chief Petty Officer
Posts: 561
Joined: 21 May 2009, 18:46

Re: 3D Mandelbulb

Post by nigec »

Carrara can do formula models but I dunno how big you could go
here's one i did earlier :)

the math..

Code: Select all

a=1;c=1;r=PI;s=PI;
p=2*PI*(u-0.5);
q=2*PI*(v-0.5);
x=a*p*cos(q);
y=a*q*cos(p);
z=-c*cos(r*p)*cos(s*q); 
Attachments
form.jpg
User avatar
marcel
Captain
Posts: 2247
Joined: 21 May 2009, 19:52
Type the number ten into the box: 0
Location: paris - France

Re: 3D Mandelbulb

Post by marcel »

Rhino169 wrote:Hey....some of these displacement mapping images in this thread:

vi ... 339#p13339"

are looking similar to this mandelbulb thread....is there a way to make a mandelbulb using displacement? or does it have to be all polygons?
fractal soft calculate only what you see. when the cam move, each part is calculated again with new details. a soft like TS or standard 3d soft need to represent the whole fractal, witch is impossible because the number of polys is near the infinity. you will have only an object look like a fractal but not a fractal. But you can try this:
displacement mapping need too many polygos to have very little details. Maybe a first level with real polygons and bump map as a second level of details can be used to simulate something like fractal. to use the first level as displacement mapping you need to use an image witch represent the height with his levels of grey. the same image can be used as bump map with instances of material.
Design - illustration - Animation
http://www.crea-vision.fr
danperk

Re: 3D Mandelbulb

Post by danperk »

Cave entrance...
MBulbC.jpg
User avatar
Prodigy
Site Admin
Posts: 957
Joined: 21 May 2009, 14:46
Type the number ten into the box: 0
Location: Uruguay

Re: 3D Mandelbulb

Post by Prodigy »

Very nice! :bananathumb:
๑۩۞۩๑ prodigy ๑۩۞۩๑
User avatar
Rhino169
Senior Chief Petty Officer
Posts: 201
Joined: 29 Nov 2009, 03:15

Re: 3D Mandelbulb

Post by Rhino169 »

Marcel,

Yes that would work nicely I think....at least it would give the illusion of a mandelbulb.

Maybe ...if you have time, you could create a small tutorial...and then, we as a forum, could make images as a forum contest using these instructions...? :bananacool2: Might be a fun contest to try. :geek:

Return to “General Discussion”