|
![](/i/fill.gif) |
In article <39AB252B.3DE01FB8@istar.ca>, sde### [at] istar ca wrote:
> However, I would like to use this new pigment I created with colour
> maps. Since it's average based, I can't apply the colourmaps prior to
> averaging.
This sounds like it would be a lot easier to do with a function. Then
you can just use the function as a pattern in the color pigment...
pigment {
function {
(noise3d(x, y, z) +
noise3d(x*2, y*2, z*2))/2
}
color_map {...}
}
> Also, I noticed that in the course of the averaging, the whole pigment
> approached a greyish colour, as the white bits became darker, and the
> dark bits lighter. Is there an easy way to normalize the pigments
> between Black and White again?
You can use pigment_pattern with a color_map that has solid bands of
color at each end. If you use a function, it is very simple: subtract
the minimum from the value, and multiply by an amount that makes the
maximum equal 1.
But I think your pattern probably has areas with values of 0 and 1(or
very close to these), it might be a better idea to apply some waveform
to amplify differences in the middle of the range so the extremes become
more visible. Maybe something based on the sine function...again, this
would most easily be done with functions.
> [1] I've looked, hopefully, at "pigment_pattern", but I don't think this
> is what I want...
It sounds like it is exactly what you want. Use the grayscale version of
the pigment in pigment_pattern, and add your color_map.
--
Christopher James Huff
Personal: chr### [at] mac com, http://homepage.mac.com/chrishuff/
TAG: chr### [at] tag povray org, http://tag.povray.org/
<><
Post a reply to this message
|
![](/i/fill.gif) |