|
|
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
|
|
|
|
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
|
|