|
|
Tom Melly <tom### [at] tomandlucouk> wrote:
> #declare R=2*2;
> #declare FSphere=function {(x*x+y*y+z*z) - R}
Having the radius as parameter has certain advantages, though.
For instance, the radius does not have to be constant thorough the
entire surface of the sphere... :)
Example:
#declare FSphere = function(x,y,z,R) { (x*x+y*y+z*z) - R*R }
isosurface
{ function { FSphere(x,y,z, 2-.5*f_noise3d(x*5,y*5,z*5)) }
...
}
--
plane{-x+y,-1pigment{bozo color_map{[0rgb x][1rgb x+y]}turbulence 1}}
sphere{0,2pigment{rgbt 1}interior{media{emission 1density{spherical
density_map{[0rgb 0][.5rgb<1,.5>][1rgb 1]}turbulence.9}}}scale
<1,1,3>hollow}text{ttf"timrom""Warp".1,0translate<-1,-.1,2>}// - Warp -
Post a reply to this message
|
|