|
|
In article <kl7ROA8DViqumXDDshn3p=K2ut20@4ax.com>, Peter Popov
<pet### [at] usanet> wrote:
> On Thu, 16 Mar 2000 07:10:57 -0500, Chris Huff
> <chr### [at] yahoocom> wrote:
>
> >How about a new pigment_map type, "additive", which holds multiple
> >pigments and adds up their results, with a syntax similar to "average".
> >You could use one pigment for the red, another for the green, and a
> >third for the blue, etc.
>
> You mean like using a function pigment?
No, like using an average pigment.
4.7.7.2 Average
Technically average is not a pattern type but it is listed here
because the syntax is similar to other patterns. Typically a pattern
type specifies how colors or normals are chosen from a pigment_map ?
texture_map , density_map , or normal_map , however average tells
POV-Ray to average together all of the patterns you specify. Average
was originally designed to be used in a normal statement with a
normal_map as a method of specifying more than one normal pattern on
the same surface. However average may be used in a pigment statement
with a pigment_map or in a texture statement with a texture_map or
media density with density_map to average colors too.
...
For example
pigment {
average
pigment_map {
[1.0 Pigment_1]
[2.0 Pigment_2]
[0.5 Pigment_3]
}
}
An "additive" pattern would add the colors/densities/normals/whatever
together instead of averaging them together. You could subtract a
"channel" by using negative numbers for it. Maybe "multiplicative" would
also be good.
It would also be nice to be able to specify the way they are combined by
using an isosurface function, but I don't know how this would be
specified with the current syntax or how difficult it would be to
implement.
--
Chris Huff
e-mail: chr### [at] yahoocom
Web page: http://chrishuff.dhs.org/
Post a reply to this message
|
|