POV-Ray : Newsgroups : povray.off-topic : Re: stochastic (monte-carlo) tracing : Re: stochastic (monte-carlo) tracing Server Time
7 Sep 2024 01:19:32 EDT (-0400)
  Re: stochastic (monte-carlo) tracing  
From: Severi Salminen
Date: 13 Sep 2008 09:05:01
Message: <web.48cbb9c63ac6d32033b2d9360@news.povray.org>
> * Instead of shooting RGB rays, shoot photons of a particular wave
> length, selected randomly from the spectrum of the light source at the
> emission point;

Yes. This should be implemented at some point to enable accurate dispersion.

> * at each surface of intersection, calculate the chances of refraction,
> reflection, absorption, and possible emission, and either shoot the
> photon off at another angle, or count it as absorbed and start a new photon;

Done!

> * Do constructive and destructive interference so that you can produce
> realistic iridescence.

Too far a way now...

> * A photon isn't drawn on the screen unless it hits the virtual film.
> Then you calculate its RGB value, and add that to the pixel at that
> point in the screen.

I start the rays from film plane so all rays always hit the film. I'm not sure
if anyone does it the other way and how it works in practice.


Post a reply to this message

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