POV-Ray : Newsgroups : povray.general : Light Attenuation : Light Attenuation Server Time
21 Apr 2024 04:06:15 EDT (-0400)
  Light Attenuation  
From: Trevor G Quayle
Date: 9 Mar 2011 12:10:00
Message: <web.4d77b443f36cbfe281c811d20@news.povray.org>
For POV, light attenuation uses the function a=2/(1+(d/FD)^FP) [] for
light sources.  However for materials, the light attenuation function is
similar: a=1/(1+(d/FD)^FP), but it also allows you to implement a realistic
exponential function: a=exp(-d/FD) by setting FP=>1000.  My general question, is
why has this more realistic function (generally following Lambert Law of
Absorption) not been implemented for light sources as well?  By playing with the
FD & FP values, a close approximation can be found for some range (the best
seems to be by using FP=exp(1)=2.72) however it is limited to a specific range
and not the whole distance (e.g an absolute deviation of ~+/-0.006 exists only
from a relative distance of about 1.74 on, for a pecentage deviation it is even
more limited, for a +/-10% deviation from ~1.51 to ~3.67)


Post a reply to this message

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