POV-Ray : Newsgroups : povray.advanced-users : function pigment problems : Re: function pigment problems Server Time
5 Jul 2024 16:10:56 EDT (-0400)
  Re: function pigment problems  
From: stbenge
Date: 17 Dec 2007 12:38:36
Message: <4766b41c$1@news.povray.org>
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


Post a reply to this message

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