POV-Ray : Newsgroups : povray.newusers : Newbie question about the light_source function. : Re: Newbie question about the light_source function. Server Time
29 Jul 2024 06:24:44 EDT (-0400)
  Re: Newbie question about the light_source function.  
From: Christopher James Huff
Date: 10 Nov 2003 08:47:07
Message: <cjameshuff-48A936.08454510112003@netplex.aussie.org>
In article <3faf4d7a$1@news.povray.org>,
 "Marc Jacquier" <jac### [at] wanadoofr> wrote:

> Your monitor
> > can only display colors with a limitedd range of brightness and most
> > file formats only store percentages of maximum brightness rather than
> > absolute brightness, so the colors are clipped at output.
> But pixels colors are computed from light color>fade due to distance>object
> pigment/diffuse properties... so not inevitably clipped.

Distance fading is off by default and scenes usually have at least some 
pigment/diffuse properties that come close to white.


> If you want maximum dynamic range in your image (i.e white highlights and
> black most dark shadows) you can multiply your light color.

By what?
Yes, you can pack more information into the output image by making sure 
the lighting is dark enough that clipping is minimized, and then 
post-processing the scene to get the normally lit portions (which are 
now very dark because of the light scaling) to show up right. However, 
this has bad precision effects...a 24-bit image has 8 bits per color 
component. That's 256 levels from black to 100% intensity. If you use 
100% to mean 2x max viewable intensity, you've just limited the normal 
[0, 1] range of lighting to 128 levels of intensity. If 100% means 10x 
max viewable intensity, you limit it to 25 levels.

You could render multiple images at different color scales and combine 
their data, but your best bet is to just use a patch that adds a high 
dynamic range output format.

-- 
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tagpovrayorg
http://tag.povray.org/


Post a reply to this message

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