POV-Ray : Newsgroups : povray.advanced-users : Gamma and light sources : Re: Gamma and light sources Server Time
19 Apr 2024 11:59:17 EDT (-0400)
  Re: Gamma and light sources  
From: clipka
Date: 19 Nov 2016 20:47:35
Message: <583100b7$1@news.povray.org>
Am 20.11.2016 um 01:59 schrieb Mike Horvath:
> On 11/18/2016 7:47 AM, clipka wrote:
>> Since they're not used as commonly as sRGB, I doubt we'll add support
>> via a keyword (not until we do a major overhaul of the parser at any
>> rate). Note that `colors.inc` does provide various macros to convert to
>> and from HSL, HSV and L*a*b, and adding support for other colour models
>> in the same manner should be no big deal.
> 
> It's hard to blend between different values for H in HSL or HSV unless
> you sample a lot of steps.

Adding native support for those colour models in the same manner as sRGB
wouldn't change that: Colours you specify via the "srgb" keyword are
immediately converted to linear RGB (presuming you're using
"assumed_gamma 1.0").


To change the blending behaviour, we wouldn't have to implement a
different syntax for specifying colours, but a different mode to
interpolate colour maps (see the `blend_mode` keyword). To add
custom-tailored blend modes for each and every colour model ever
designed would, in my opinion, be unreasonable -- my guess is that most
of those interpolation modes would only be ever used to render scenes
demonstrating that particular colour model.


Post a reply to this message

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