|
![](/i/fill.gif) |
On Thu, 11 Oct 2001 23:00:48 +0200, Elias Pschernig wrote:
>Is there a way to add 2 pigments together into a new pigment? Something like
>"average", but only adding the values, without dividing afterwards. I tried
>all sort of things, even splitting both pigments into different color
>channel functions, adding the functions, and then combining them again into
>the new pigment.. but it's quite complicated and messy, only for such a
>simple thing. I think there must be a simpler solution and I'm just not
>seeing it.
>
>For example, I have one pigment which is <0,0,0> everywhere and has a stripe
>of <1,0,0> somewhere, and another pigment which also is black and has
>another red stripe. The resulting pigment should be black as well, but have
>both stripes. If I use average, it has both stripes, but they get very
>dark. I must be overlooking something..
You can use larger values in the declarations of the two source pigments.
If you make your red stripes be rgb <2,0,0> it should balance out in the end.
--
#local R=rgb 99;#local P=R-R;#local F=pigment{gradient x}box{0,1pigment{gradient
y pigment_map{[.5F pigment_map{[.3R][.3F color_map{[.15red 99][.15P]}rotate z*45
translate x]}]#local H=pigment{gradient y color_map{[.5P][.5R]}scale 1/3}[.5F
pigment_map{[.3R][.3H][.7H][.7R]}]}}}camera{location.5-3*z}//only my opinions
Post a reply to this message
|
![](/i/fill.gif) |