POV-Ray : Newsgroups : povray.binaries.images : In Search of the Maldives : Re: In Search of the Maldives Server Time
26 Apr 2024 08:33:05 EDT (-0400)
  Re: In Search of the Maldives  
From: gregjohn
Date: 23 Aug 2019 08:20:01
Message: <web.5d5fd9026cf5fb8cfbe02570@news.povray.org>
=?UTF-8?Q?J=c3=b6rg_=22Yadgar=22_Bleimann?= <yaz### [at] gmxde> wrote:
> Hi(gh)!
>
> On 23.08.19 12:38, gregjohn wrote:
> > This one based on wrinkles
> >
> Impressive! How did you tweak the wrinkles function to get those wide
> coastal plains?
>

1. Define a function{pigment{PATTERN turbulence FOO}}
2. Define a function{pigment{function}} based on 1 with a color map which sets
up a nonlinear relationship.
3. Declare a pigment{function}} based on 1, inserting whatever colors you like.
4. Declare an isosurface with function {y-function2} and pigment from 3.

Oh well, I'll just give away the kernel here:


#declare feestruct=
function{
    pigment{
        function{rawfee(x,y,z).grey}
        color_map{
            [0        color rgb 0.0]
            [sandline color rgb 0.0]
            [treeline color rgb 0.1]
            [1        color rgb 1]
            }

    }
}


Post a reply to this message

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