POV-Ray : Newsgroups : povray.beta-test : Colour clipping. : Re: Colour clipping. Server Time
30 Jul 2024 16:25:12 EDT (-0400)
  Re: Colour clipping.  
From: Ben Birdsey
Date: 1 Dec 2001 13:19:02
Message: <3C091FDB.F692B6CD@mail.com>
Trevor,


I agree with Warp that the values should be clipped at 1, but there
should be some way for a completely red object to saturate to white if
it is bright enough.  Right now, a color will only saturate to white if
none of its color components are zero.


I have experimented with this a bit, and it seems to me that POV could
simulate saturation of bright light sources better.


What should be done?  Well, the "red sensors" in your eye and on film or
in a video camera (or etc.) are also a little bit sensitive to green and
slightly sensitive to blue.  To simulate this, the rendered colors could
be modified by

red_out   = min( red         + green/256 + blue/256/256 , 1.0);
green_out = min( red/256     + green     + blue/256     , 1.0);
blue_out  = min( red/256/256 + green/256 + blue         , 1.0);

in POV's "color clip" function.


This would not break 24-bit images with ordinary light sources, and
would not have any significant computational cost.


- Ben


Post a reply to this message

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