POV-Ray : Newsgroups : povray.general : Density help : Re: Density help Server Time
2 Aug 2024 10:26:27 EDT (-0400)
  Re: Density help  
From: Florian Brucker
Date: 17 Nov 2004 15:54:39
Message: <419bba8f$1@news.povray.org>
> 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

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