|
|
In article <388f10f4@news.povray.org>, "Gail Shaw"
<gsh### [at] monotixcoza> wrote:
> I recall that someone (Chris Huff? ) wrote a patch so that the value of a
> pattern could
> be evaluated at a point. Is this available in megapov,
Yes, I am the one who wrote the eval_pattern patch. No, it isn't in
MegaPOV, but it should be included in a future version.
> if not is there any
> way I could find out the value of a pigment at a certain point in a
> pattern?
Probably the only way would be to translate the code from the POV source
into the POV-Ray scene description language, and make a macro for the
patterns. This would only be easy for simple things like gradient,
spherical, etc. Bozo or anything else using a noise function would
probably be quite difficult.
> I have a bozo pattern (pigment) and I want to be able to get 15 random
> pigments that the pattern would have produced.
I am not quite sure what you mean, do you want 15 different colors? Or
15 different values? eval_pattern() returns the float value of a pattern
at a specific point, eval_pigment() returns the color of a pigment.
--
Chris Huff
e-mail: chr### [at] yahoocom
Web page: http://chrishuff.dhs.org/
Post a reply to this message
|
|