|
![](/i/fill.gif) |
stbenge <stb### [at] hotmail com> wrote:
> sooperFoX wrote:
>
> > The problem occurs when the colour value for any channel (R, G, B) exceeds 1.0 -
> > the value for that channel seems to wrap back around to 0.0 and this is causing
> > strange colour banding effects. I will post an image to p.b.i when I get home
> > from work in a few hours.
>
> I know Slime already gave you a fix for this, but in case you run into
> more related problems, and for future reference, I give you this little
> clippit. This will ensure that f(x,y,z) will not exceed a value of one:
>
> function{
> select(
> f(x,y,z)-1,
> f(x,y,z),
> 1)
> }
>
>
> Sam
Except that this clips the value at 1, which may not be the desired solution
under certain circumstances (i.e., you don't want them clipped). In this case
the values need to be scaled to be within the 0-1 range rather than simply
clipped.
-tgq
Post a reply to this message
|
![](/i/fill.gif) |