POV-Ray : Newsgroups : povray.newusers : Can't get photons to show up in media... : Can't get photons to show up in media... Server Time
31 Jul 2024 02:20:24 EDT (-0400)
  Can't get photons to show up in media...  
From: Warp
Date: 2 Mar 2003 11:06:33
Message: <3e622c09@news.povray.org>
I have been fighting with this simple scene for some time now. I made
the scene to demonstrate how photons can interact with media so that a
reflected light beam will show up.
  For some reason, no matter what I do, it doesn't work.
  Could someone lighten me up in this issue? How do I get the reflected
photons to show up in the media?


#global_settings { photons { spacing .01 media 100 } }
media { scattering { 1,.5 extinction .1 } }
camera { location <1.8,0,-3> look_at 0 angle 80 }

sphere { -x*1.01, 1 pigment { rgb 1 } }

light_source
{ 0, 1
  spotlight point_at x radius 15 falloff 18
}
cone
{ -x*.1,0, x*.5,.25 open
  pigment { rgb 1 }
  interior_texture { pigment { rgb 1 } finish { ambient 1 } }
}

box
{ <2,-5,-10>, <2.1,5,10>
  pigment { rgb 1 }
  finish { reflection 1 }
  photons { target reflection on }
}
box
{ <-2,-5,-10>, <-2.1,5,10>
  pigment { rgb 1 }
}


-- 
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}//  - Warp -


Post a reply to this message

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