|
|
Thomas de Groot <tho### [at] degrootorg> wrote:
> Still looking for improvements. This is the closest I could get
> presently on a small scale (see image). On a large ring scale, it does
> not look good/convincing at all.
>
> Using the following code:
>
> #declare f_particles =
> function(x,y,z) {
> 0.5 - f_crackle(40*x, 40*y, 40*z)
> + f_granite(x*0.1, y*0.1, z*0.1)
> - f_onion(x*10, 0, z*10)
> }
>
> isosurface {
> function { f_particles(x,y,z) }
> contained_by {
> box {<-0.50, -0.5, -0.5>, <0.5, 0.2, 0.5>}
> }
>
> accuracy 0.0001
> max_gradient 1000
> texture {
> pigment {srgb <0.98, 0.98, 0.98>}
> }
> translate 0.25*y
> }
>
>
> --
> Thomas
I like this. the method which combines two functions looks useful.
It seems there are a lot of techniques on building functions.
Post a reply to this message
|
|