The Persistence of Vision Raytracer (POV-Ray).
This is the legacy Bug Tracking System for the POV-Ray project. Bugs listed here are being migrated to our github issue tracker. Please refer to that for new reports or updates to existing ones on this system.
FS#334 - HLS colors
Attached to Project:
POV-Ray
Opened by Mike H (SharkD) - Saturday, 23 January 2016, 00:21 GMT
Last edited by William F Pokorny (wfpokorny) - Tuesday, 25 April 2017, 11:38 GMT
Opened by Mike H (SharkD) - Saturday, 23 January 2016, 00:21 GMT
Last edited by William F Pokorny (wfpokorny) - Tuesday, 25 April 2017, 11:38 GMT
|
DetailsIt would be nice to be able to specify colors in HLS as well as RGB.
Currently, you can use a macor to convert individual colors. But this does not work in color_maps where you want smooth gradations/interpolations between two or several colors. |
This task depends upon
Going by your specification of the feature, that's an absolute no-go. Here's why:
In my book there is exatly one reasonable approach to achieve what you are trying to do: Implement a non-linear interpolation mode for colour_map (and also for pigment_map while we're at it), as a feature that is independent of the colour model originally used to specify the colours. it would explicitly take linear RGB colours, interpolate them non-linearly according to some special rule (which may or may not involve actual conversion to HSL), and explicitly produce linear RGB colours again.
As a matter of fact, the basis for such a feature already exists in POV-Ray 3.7.1 (currently in development, with source and semi-official Windows builds publicly available), in the form of the blend_mode keyword, which may already be doing what you're trying to achieve, as one of the modes available uses linear interpolation for chromaticity but non-linear interpolation for brightness.
Now tracked on github as issue #281.