POV-Ray : Newsgroups : povray.binaries.images : Friday abstract: spectral subtractive color mixing : Re: Friday abstract: spectral subtractive color mixing Server Time
7 Nov 2024 04:54:30 EST (-0500)
  Re: Friday abstract: spectral subtractive color mixing  
From: clipka
Date: 18 Nov 2016 13:27:46
Message: <582f4822$1@news.povray.org>
Am 18.11.2016 um 19:13 schrieb Cousin Ricky:
> clipka <ano### [at] anonymousorg> wrote:
>> From my experience, you get the best results by applying the following
>> algorithm:
>>
>>   - For each colour involved, compute its luminance.
>>
>>   - For each colour, compute the lightness from the luminance.
>>   - Compute the arithmetic average of all the lightness values.
>>   - Compute the result luminance from the averaged lightness.
>>
>>   - For each colour involved, normalize it to unity luminance
>>     by dividing each component by the colour's computed luminance.
>>   - Compute the arithmetic average of the normalized colours.
>>
>>   - Renormalize the result colour to the result luminance
>>     by multiplying each component with the result luminance.
> 
> Does this work with spectral rendering?

If you can compute the luminance of a colour across all channels that
will eventually be rendered, then yeah -- that should certainly work.


Post a reply to this message

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