POV-Ray : Newsgroups : povray.binaries.scene-files : ACI to RGB convertion, modyfied CHSL2RGB : ACI to RGB convertion, modyfied CHSL2RGB Server Time
2 Sep 2024 00:13:16 EDT (-0400)
  ACI to RGB convertion, modyfied CHSL2RGB  
From: Przemek Loesch
Date: 3 Jul 2003 16:23:39
Message: <3f0490cb$1@news.povray.org>
Hi to everyone! This is my first post here.
ACI - Autocad Color Index is mainly used for specyfing colors of entities in
DXF files. This scene was made to test the method of reading ACI colors I am
preparing for my cad-like program.
By the way I discovered a strange behaviour of CHSL2RGB macro from
"Colors.inc". It seems this macro does the conversion in an other way than
most of a graphics software do. When calling CHSL2RGB(0,1,1) one receives
rgb<1,1,1> instead of rgb<1,0,0>. This macro adds some white to rgb vector
(based on value of L) when it should rather work like increasing values of
two color components to the level of the component which has the highest
value, but no higher then this value. Anyway this is a matter of convention
and I'm not telling this macro is wrong. Just if you want to convert colors
from HSL to RGB like Photoshop do you can use my version.
Greetings!


Post a reply to this message


Attachments:
Download 'ACI_to_RGB.pov.txt' (4 KB)

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