|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Hi there
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.
Cheers,
Ammar
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Ammar Al-Allak wrote:
>
> Hi there
>
> 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.
>
> Cheers,
>
> Ammar
You should have a look at the povray sourcecode for that. (it's available at the
povray.org website).
searching for "rayleigh" among the source files gives media.c/media.h so have a
look at them.
Christoph
--
Christoph Hormann <chr### [at] gmxde>
Homepage: http://www.schunter.etc.tu-bs.de/~chris/
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
On Thu, 24 Aug 2000 10:29:42 +0100, "Ammar Al-Allak"
<a.a### [at] ueaacuk> 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] usanet
TAG e-mail : pet### [at] tagpovrayorg
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Ammar Al-Allak wrote:
> Hi there
>
> 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.
I spent a good deal of the summer doing research involving Rayleigh
Scattering. While I don't understand all of it, I can at least point you in
the direction of some good resources...
I also have a bunch of equations I used to calculate the extinction values due
to Rayliegh scattering dependant on wavelength, atomospheric composition,
altitude, etc. They're in LaTeX, but I could probably convet them to something
a bit more convenient.
Simon
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |