POV-Ray : Newsgroups : povray.newusers : How to use self defined functions as patterns? : Re: How to use self defined functions as patterns? Server Time
24 Apr 2024 08:11:25 EDT (-0400)
  Re: How to use self defined functions as patterns?  
From: Thorsten Froehlich
Date: 2 Apr 2018 12:25:00
Message: <web.5ac2592d1863261df773ca290@news.povray.org>
"rastertastic" <nomail@nomail> wrote:
> For example could I use a color map like
>
> color_map {
>   [0  color Red]
>   [10  color Green]
>   [20  color Blue]
>   [30  color Pink]
>   }
>
> But rendering the following doesn't produce what I might expect if that is
> supposed to work:
>
> plane { <0, 1, 0>, 0
>     texture {
>       pigment { function { Foo(x, y, z) }
>
>                color_map {
>                  [0  color Red]
>                  [10  color Green]
>                  [20  color Blue]
>                  [30  color Pink]
>                }
>       }
>     }
>
> }
>
> So basically I'm asking clarification on how to use such self-defined functions
> like  x + y + z  as patterns with, say, color maps.

Why don't you use a valid color map with range 0 to 1? - Then you will very
quickly see what happens and find the answer yourself.


Post a reply to this message

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