POV-Ray : Newsgroups : povray.advanced-users : Help please: eval_pigment rgb expression to float : Re: Help please: eval_pigment rgb expression to float Server Time
29 Jul 2024 08:16:25 EDT (-0400)
  Re: Help please: eval_pigment rgb expression to float  
From: Andrew Cocker
Date: 17 Aug 2002 18:24:21
Message: <3d5ecd15$1@news.povray.org>
Thanks for this, ABX! As you may have read in another post of mine, I implemented your
suggestion, and parse time went from almost a minute to just 1 second. I'm happy :-)

One thing though: When I use pattern in the function, it returns a float. However,
when I use
pigment (which I think I have to do, as I need to  specify a color_map), I have to use
Marc-Hendrik's suggestion of Sampling.x. Still, it works, which is all that matters.

All the best,

Andy Cocker

"ABX" <abx### [at] babilonorg> wrote in message
news:3d7qlu0r7p11kgk4h2169m84434m5dj70a@4ax.com...
> On Fri, 16 Aug 2002 16:43:09 +0100, "Andrew Cocker" <mai### [at] mariner9net> wrote:
> > Hi,
> >
> > I'm trying to vary the size of each sphere in a 100x100 grid by sampling a bozo
pigment.
>
> #declare Sampling=function{pattern{bozo}};
>
> #declare Float=Sampling(0,0,0);
>
> ABX


Post a reply to this message

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