|
![](/i/fill.gif) |
Nieminen Juha wrote in message <38d09d1f@news.povray.org>...
> And a question:
> I'm trying to get a visible reflected light beam. I thought that making
>the photons to interact with the scattering media would do it. However it
>doesn't work. The light beam starting from the spotlight is visible, but
>none of the reflected beams is. Is it supposed to? Perhaps I'm doing
something
>wrong?
Here is the code I used for the visible laser beam in my "Now Possible..."
animation in p.b.a. It was written for the UVPov 5.4 photons, so you will
need to change things for using it with MegaPOV.
Mark
#declare phd = 1;
global_settings{
max_trace_level 20
photons{
gather 20, 80
radius .2*phd, 2, .1*phd
autostop 0
jitter .2
expand_thresholds 0.2, 40
max_trace_level 20
max_media_steps 100
media_spacing_factor 1
}
}
#declare BasicLens = intersection{
sphere{ <1,0,0>, 1.75 }
sphere{ <-1,0,0>, 1.75 }
texture{ pigment{ rgbt 1 } }
interior{ior 1.5}
photons{
refraction on
separation 0.03*phd
}
}
#declare BasicMirror = box{<-2,-1,-.1>,<2,1,0>
pigment{rgb 1}
finish{ambient 0 diffuse 0 reflection 1}
photons{
separation 0.03*phd
refraction off
reflection on
}
}
sphere{ /*Media to scatter light*/
0, 20
pigment{rgbt 1}
finish{ambient 0 diffuse 0}
hollow
interior{
ior 1
media{
scattering{ 1, .25 extinction 0}
method 3
intervals 1
samples 40, 40
}
}
photons{photons_pass_through}
}
Post a reply to this message
|
![](/i/fill.gif) |