POV-Ray : Newsgroups : povray.advanced-users : D65 spectral locus : Re: D65 spectral locus Server Time
27 Apr 2024 08:08:51 EDT (-0400)
  Re: D65 spectral locus  
From: Mike Horvath
Date: 21 Mar 2017 21:43:20
Message: <58d1d6b8$1@news.povray.org>
On 3/20/2017 8:14 AM, clipka wrote:
>> Also, I don't understand why I can color each triangle by converting XYZ
>> to RGB and have the result look okay, but when I try to do the same
>> thing with a function the result is messed up (unless I follow your
>> method).
>
> That's because when you colour individual triangles you're using the
> colour conversion function directly; but when you're using (an average
> of multiple) function pigments, the function is used via a pattern,
> where an implicit mod(f,1) is applied to the function, wrapping around
> values outside the range 0..1 (e.g. a function value of 1.1 gets
> translated to a colour map index of 0.1).
>
> Or at least that's what I presume you're seeing. Been there, seen that.
>

Is there a way to disable the wrapping using a keyword? It might make a 
nice feature addition.


Mike


Post a reply to this message

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