POV-Ray : Newsgroups : povray.programming : recursion of photons Server Time
23 Dec 2024 02:25:44 EST (-0500)
  recursion of photons (Message 1 to 2 of 2)  
From: Penners
Subject: recursion of photons
Date: 11 Jul 2003 15:10:01
Message: <web.3f0f0a9ab1725a62c85284930@news.povray.org>
Hi,
  I am working on a scene in which I would like to use media photons.  I
looked into the source code to see how media photons (and photons in
general) work, and it seems funny to me that the photons getting deposited,
whether they be caustic or volume, are not continually traced via recursion
after their first hit with a surface or media.  Perhaps I am missing
something in regards to the structure of the code, but it seems to me that
a photon is shot, saved if it hits anything and then stops.  Any thoughts
on this?


Post a reply to this message

From: Warp
Subject: Re: recursion of photons
Date: 11 Jul 2003 19:18:40
Message: <3f0f45d0@news.povray.org>
Penners <pen### [at] hotmailcom> wrote:
>   I am working on a scene in which I would like to use media photons.  I
> looked into the source code to see how media photons (and photons in
> general) work, and it seems funny to me that the photons getting deposited,
> whether they be caustic or volume, are not continually traced via recursion
> after their first hit with a surface or media.

  What do you mean?

  I don't have any problems getting photons to reflect and refract in media.
For example: http://www.cs.tut.fi/~warp/images/photontest.jpg
(It doesn't use any trick, it's simply photons shot at a big media
container.)

-- 
plane{-x+y,-1pigment{bozo color_map{[0rgb x][1rgb x+y]}turbulence 1}}
sphere{0,2pigment{rgbt 1}interior{media{emission 1density{spherical
density_map{[0rgb 0][.5rgb<1,.5>][1rgb 1]}turbulence.9}}}scale
<1,1,3>hollow}text{ttf"timrom""Warp".1,0translate<-1,-.1,2>}//  - Warp -


Post a reply to this message

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