|
|
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
Attachments:
Download 'mandelball.jpg' (22 KB)
Preview of image 'mandelball.jpg'
|
|