POV-Ray : Newsgroups : povray.binaries.scene-files : finally: my lighting macro. : Re: finally: my lighting macro. Server Time
2 Sep 2024 10:17:03 EDT (-0400)
  Re: finally: my lighting macro.  
From: Kari Kivisalo
Date: 4 Feb 2002 15:10:36
Message: <3C5EEAEF.77DE348E@engineer.com>
Jaime Vives Piqueres wrote:

>     color LightColor*7*pow((DX+DZ)/2,2)
>     fade_distance 1
> 
>   and you will see they give the same scene!'

Now scale the whole scene by 0.00001 and keep fade_distance 1 :)
Use one source.

> So, what this means?

It means the the difference in in the far field is not visible. Even
for X and sqrt(X) :)

> > http://www.pp.htv.fi/kkivisal/relative_error.gif
> 
>   Sorry, I'm not that mathematically minded: I do not see what the graphic
> is suposed to show... :( I really prefer to test things with pov! :)

It's the relative error of axial intensity between distances 1-25, when using
fade_distance 1 and fade_distance 5 to estimate 25x25 square source. Just to
demonstrate fade_distance 1 produces higher error. The error decreases with
distance so in the far field the error becomes insignificant for both cases.
The blue curve is fade_distance 1. 

The equation used in pov clearly tries to estimate the combined axial near
field of multiple point sources on planar surface. fade_distance tells the
size of the source.


_____________
Kari Kivisalo


Post a reply to this message

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