POV-Ray : Newsgroups : povray.programming : Another question about radiosity : Re: Another question about radiosity Server Time
28 Jul 2024 08:23:30 EDT (-0400)
  Re: Another question about radiosity  
From: Nathan Kopp
Date: 3 Sep 2002 22:58:59
Message: <3d7576f3$1@news.povray.org>
Yes, that's old MegaPov code.  The feature that you are referring to
(PHOTONS_DIRECT) was also called "global photons."  When enabled, global
photons would be used to focus the radiosity rays towards brighter objects
in the scene.  The purpose was to give better results with fewer samples.
It wasn't completely successful, so it didn't get included in POV 3.5.

The purpose of the "scale" variable was to offset the bias introduced by the
non-uniform distribution function.  Because the regular distribution is
uniform (or at least carefully selected to be specifically non-uniform), we
don't have any bias to offset, so the scale factor is 1.0.  Of course, now
this is an unnecessary computation that wastes CPU cycles.

-Nathan


"Christoph Hormann" <chr### [at] gmxde> wrote...
>
> I found another strange thing in the radiosity code: There is a 'scale'
> factor in the ra_gather() function (file radiosit.cpp) that is used in
> line 794:
>
> VAddScaledEq(Colour_Sums, scale, Temp_Colour);
>
> to scale the color.  It's value is set to 1.0 in line 668 but not used or
> changed anywhere else.  It seems to be a remainder from megapov when there
> was a 'PHOTONS_DIRECT' switch - i'm not sure what it was about.
>
> Christoph
>
> --
> POV-Ray tutorials, IsoWood include,
> TransSkin and more: http://www.tu-bs.de/~y0013390/
> Last updated 13 Aug. 2002 _____./\/^>_*_<^\/\.______


Post a reply to this message

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