POV-Ray : Newsgroups : povray.general : scattering media emits light : Re: scattering media emits light Server Time
5 Aug 2024 16:17:20 EDT (-0400)
  Re: scattering media emits light  
From: Kari Kivisalo
Date: 20 Aug 2002 14:25:50
Message: <3D6289DE.A0A75FA6@luxlab.com>
"David Necas (Yeti)" wrote:
> 
> Scattering media behaves quite strangely when you put
> a light_source directly into it.

fade_power 2 makes it behave less strange. Without it the source's
energy output increases with distance. There is still a notable
difference when the source is in/out of the media. 


global_settings{assumed_gamma 1}

camera { location -30*z look_at 0 }

plane { y, -15 pigment { checker rgb<1,0,0> rgb<0,1,0> scale 10 } }

light_source{10.1*y 5
fade_power 2 fade_distance 1
media_attenuation on }

box {
  <-10,-10,-10>, <10,10,10> hollow pigment { color rgbt<1,1,1,1> }
  interior { media { scattering { 1, 0.2} } }
}


_____________
Kari Kivisalo


Post a reply to this message

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