|
|
That's cool.
I've been wondering the same thing, but I haven't made any effort to
find out if it's possible to do the Mandelbulb in POV. I figure someone
who knows a lot more than me will figure it out first.
On 2009-11-16 20:30, CShake wrote:
> After seeing the mandelbulb getting some press recently on slashdot, I
> started to wonder how close I could get with povray.
> I forgot to segment the parts of the isosurface into the x,y,z
> components (added them instead), and this happened, at least it's fun
> looking.
>
> #local n = 8;
> #local r = function{sqrt(pow(x,2)+pow(y,2)+pow(z,2))};
> #local theta = function{atan2(sqrt(pow(x,2)+pow(y,2)),z)};
> #local phi = function{atan2(y,x)};
> isosurface{
> function {
>
pow(r(x,y,z),n)*(sin(theta(x,y,z)*n)*cos(phi(x,y,z)*n)+sin(theta(x,y,z)*n)*sin(phi(x,y,z)*n)+cos(theta(x,y,z)*n))
> }
> threshold 0
> max_gradient 57
> contained_by {sphere{0,1}}
> texture{
> pigment{color rgb 0.8}
> finish{ambient 0 diffuse 1}
> }
> }
Post a reply to this message
|
|