|
![](/i/fill.gif) |
> Looks like it's the noise function sampled along the surface
> of a sphere:
Nice. Fast. Beautiful.
Great job! Not that I really understand it, though.
noisefunc(x,y,z,sqrt(x*x+y*y+z*z)
The sqrt() part is the distance to the origin.
f_noise3d(x/dist,y/dist,z/dist)
And now you use the noise3d result of the current point, scaled with the
inverse of that distance? Could you give some more explanation on how
this works? All this function stuff is pretty new to me :)
Thanks!
Florian
--
camera{look_at-y*10location<8,-3,-8>*10}#local a=0;#while(a<999)sphere{
#local _=.01*a-4.99;#local p=a*.01-5;#local c=.01*a-4.995;<sin(p*pi)*5p
*10pow(p,5)*.01>sin(c*c*c*.1)+1pigment{rgb 3}}#local a=a+1;#end
/******** http://www.torfbold.com ******** http://www.imp.org ********/
Post a reply to this message
|
![](/i/fill.gif) |