POV-Ray : Newsgroups : povray.binaries.images : Saturn Ring - a first wip : Re: Saturn Ring - a first wip Server Time
5 Jul 2024 04:33:09 EDT (-0400)
  Re: Saturn Ring - a first wip  
From: And
Date: 12 Jan 2015 01:30:01
Message: <web.54b367c25558cbe0da787fe0@news.povray.org>
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

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