|
|
I've got a declared pigment pattern. I want to have another pigment that is
only the red component of that pattern, AND is *red*. I tried some things with
multiplying functions, but povray kept turning it into a pigment that is *white*
when the original is red.
Any ideas?
Post a reply to this message
|
|
|
|
Wasn't it gregjohn who wrote:
>I've got a declared pigment pattern. I want to have another pigment that is
>only the red component of that pattern, AND is *red*. I tried some things with
>multiplying functions, but povray kept turning it into a pigment that
>is *white*
>when the original is red.
This creates a pigment where the B and G components are always zero, and
the R component is from the original pigment:
#declare f=function{pigment {p}}
#declare p2 = pigment{function{f(x,y,z).red}
colour_map {[0 rgb 0][1 rgb <1,0,0>]}}
red => red
blue => black
green => black
white => red
--
Mike Williams
Gentleman of Leisure
Post a reply to this message
|
|
|
|
gregjohn nous illumina en ce 2009-05-02 14:36 -->
> I've got a declared pigment pattern. I want to have another pigment that is
> only the red component of that pattern, AND is *red*. I tried some things with
> multiplying functions, but povray kept turning it into a pigment that is *white*
> when the original is red.
>
> Any ideas?
>
>
Another way of doing the same thing : Multiply your resulting pigment by <1,0,0>
Post a reply to this message
|
|