POV-Ray : Newsgroups : povray.general : [POV 3.5] Warning? : Re: [POV 3.5] Cylindrical lights & photons? testing Server Time
6 Aug 2024 10:28:00 EDT (-0400)
  Re: [POV 3.5] Cylindrical lights & photons? testing  
From: bob h
Date: 3 Apr 2002 19:20:17
Message: <3cab9c41@news.povray.org>
"Micha Riser" <mri### [at] gmxnet> wrote in message
news:3cab8185@news.povray.org...
>
> Can anybody show a scene where cylindrical lights and photons are working
> correctly? I could not get it work as expected...

I modified Chris Huff's optic.pov scene to check on this more and I sure
don't see a problem with parallel used or not, spotlight or cylinderlight.
I don't know if it'd be appropriate to post that file, but it's relative
easy to modify it yourself. I just added a rotated plane to show the photons
at the ends of the (reflected and refracted) light beams. I checked both
with and without media.
I put switches to change between all possiblities, i.e. spot, cylinder,
parallel or not, media or not. The cylinder light is simply the spotlight
with a keyword change.
Suggest you also lower ior to 1.1 in order to see the photons better.

Here's the additions, may make it easier to try, you should be able to see
how it goes into the scenes\advanced\optics.pov:

-- start of file (add) --
#declare Media=no;
#declare Parallel=yes;
#declare Spot=no;

-- light (edit) --
    #if (Spot=yes)
    spotlight radius 0.3 falloff 0.35 #if (Parallel=yes) parallel #end
point_at <0, 0.5, 0>
    #else
    cylinder radius 0.3 falloff 0.35 #if (Parallel=yes) parallel #end
point_at <0, 0.5, 0>
    #end

-- media (edit)--
#if (Media=yes)
    interior {
        media {
            scattering {1, color White extinction 0}
//            emission color White*0.2
            method 3
            intervals 1 samples 4
        }
    }
#end

-- ior (edit?)--
#declare GlassInt1 =
interior {ior 1.1}

-- end of file (add) --
plane {x,0
pigment {rgb 1}
finish {ambient 0 diffuse 1}
rotate -60*z translate 3*x
 // PhotonTarget(no, no, no)
hollow
}


Post a reply to this message

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