|
![](/i/fill.gif) |
On Thu, 24 Aug 2000 10:29:42 +0100, "Ammar Al-Allak"
<a.a### [at] uea ac uk> wrote:
>Can somebody give me the algorithm used for the Rayleigh Scattering in POV
>Ray and how it could me modified so that it is wavedependent.
The ray marching algorithm is explained in the POV-Ray docs where you
can also find the type 4 (Rayleigh) scattering diagram.
Now, to make it wavelength-dependent, you'll need to know the spectrum
of every light ray. This means that colors should either be
represented by their spectra or should fake a solution by
RGB-to-spectrum-space conversion (like RGB->HSB). It may or may not
require subsequent sampling of light rays like in the light dispersion
patch. In any case this will require massive changes in the source
code.
The good news is that someone is (or was?) working on this and even
posted some results some time ago. The bad news is, I don't remember
who it was. Maybe Ken has a link.
Peter Popov ICQ : 15002700
Personal e-mail : pet### [at] usa net
TAG e-mail : pet### [at] tag povray org
Post a reply to this message
|
![](/i/fill.gif) |