|
![](/i/fill.gif) |
"Greg M. Johnson" wrote:
> I had delusions of grandeur of being able to tweak existing code and
> make some really cool new object... An isosurface?--hmm, thanks will
> try that instead...
Superellipsoids are nicely done by isosurfaces. Below is some code for an
icecube. Works great with photon mapping.
G.
#declare IceTxt=material{
texture { pigment { rgbt<189/255,194/255,197/255,1>} finish { ambient 0
specular 1 roughness 0.0001 reflection 0.1}
}
interior{
ior 1.309
fade_power 2 fade_distance 2.5
media {
emission col2*0.3
method 2
density{boxed turbulence 1 color_map{[0 Black][1
White*2]}}
scale 0.7
}
}
}
#declare e=0.05;
#declare n=0.05;
#declare IceCube=isosurface {
function {( abs(x)^(2/e)+abs(y)^(2/e))^(e/n)+abs(z)^(2/n)-1 +
1.2*noise3d(x*1.22,y*1.2,z*1.2)}
contained_by { box { -1, 1 } }
threshold 0
method 2 max_gradient 14
hollow
material{IceTxt}
}
--
**********************
http://www.oyonale.com
**********************
Graphic experiments
Pov-ray gallery
Post a reply to this message
|
![](/i/fill.gif) |