POV-Ray : Newsgroups : povray.advanced-users : Cylindrical radius-light : Re: Cylindrical radius-light, 1 way 2 do it Server Time
29 Jul 2024 08:15:36 EDT (-0400)
  Re: Cylindrical radius-light, 1 way 2 do it  
From: hughes, b 
Date: 26 Sep 2002 16:04:06
Message: <3d936836$1@news.povray.org>
// bob's little test scene

// fill light (helps to visualize scene)
light_source
{
        y,0.25
}

sphere
{
        0,1
        pigment
        {
                color rgb <1,0.5,0.25>
        }
        translate <0,-1,5>
}

box
{
        -1,1
        pigment
        {
                color rgb <0.25,0.5,1>
        }
        scale 5
        translate <0,3,4>
}


/* light disk macro */
#macro
        CyLite
        (Thickness,Color,FadeDistance,Orientation,Position)
union
{
light_source
{
        Thickness*y,Color
        spotlight
        point_at -y
        radius 89.99
        falloff 90
        tightness 0
        fade_distance FadeDistance
        fade_power 1
}
light_source
{
        -Thickness*y,-Color
        spotlight
        point_at -y
        radius 89.99
        falloff 90
        tightness 0
        fade_distance FadeDistance
        fade_power 1
}
        rotate Orientation
        translate Position
}
#end


 // multiple disk lights
#local Count=10;

#while (Count>0)

/* Create the disk of light.
 Thickness, Color, FadeDistance, Orientation, Position */
CyLite ( 0.05, <1,1,1>, 10, <-5,10,-15>*Count, <1,-1,0>*Count/10 )

#local Count=Count-1;

#end


Post a reply to this message

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