POV-Ray : Newsgroups : povray.unofficial.patches : Photon bug? : Re: Photon bug? Server Time
2 Sep 2024 08:16:37 EDT (-0400)
  Re: Photon bug?  
From: Mark Wagner
Date: 17 Mar 2000 00:52:00
Message: <38d1c800@news.povray.org>
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

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