POV-Ray : Newsgroups : povray.newusers : Can't get photons to show up in media... : Re: Can't get photons to show up in media... Server Time
31 Jul 2024 02:20:28 EDT (-0400)
  Re: Can't get photons to show up in media...  
From: hughes, b 
Date: 2 Mar 2003 13:46:01
Message: <3e625169@news.povray.org>
Scratch that. Not only because of the cone being nonhollow but it does need
a container for the media. I was too quick to reply. Here it is, working:

#global_settings {
 photons { spacing .01 media 50 } // low sampling, ugly but faster
}

sphere {0,5 // media container
pigment {rgb 0}
interior {
media { method 2 // hasten the render more
 scattering { 1,.5 extinction 0.25}
} }
hollow
}

camera { location <1.8,.1,-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
  photons {reflection on} // added
}

cone
{ -x*.1,0, x*.5,.25 open
  pigment { rgb 1 }
  interior_texture { pigment { rgb 1 } finish { ambient 1 } }
 hollow // wasn't hollow before
}

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


Post a reply to this message

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