POV-Ray : Newsgroups : povray.advanced-users : function pigment problems : Re: function pigment problems Server Time: 27 Jul 2008 00:42:04 GMT
  Re: function pigment problems  
From: stbenge
Date: 17 Dec 2007 17:38:36
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 1991-2004 POV-Team™