POV-Ray : Newsgroups : povray.advanced-users : Evaluating pattern : Re: Evaluating pattern Server Time
30 Jul 2024 06:26:17 EDT (-0400)
  Re: Evaluating pattern  
From: Chris Huff
Date: 26 Jan 2000 17:29:01
Message: <chrishuff_99-799DDB.17294026012000@news.povray.org>
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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.