POV-Ray : Newsgroups : povray.binaries.images : 'Accidental' isosurface : 'Accidental' isosurface Server Time
18 May 2024 00:59:26 EDT (-0400)
  'Accidental' isosurface  
From: CShake
Date: 16 Nov 2009 20:30:15
Message: <4b01fca7@news.povray.org>
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'
mandelball.jpg


 

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.