|
![](/i/fill.gif) |
>
> I am trying to make a track of lights and I cant get it to work out right
> can any one help me I am making a set of shelves and putting the track of
> lights under it to shine done on the shelf below it.
If I understand correctly that you want an array of lights, this should work:
//Start, End - start & end coordinates of the line
//Brightness - combined brightness of the array of lights
//Number - number of lights in the array
#macro Lights(Start, End, Brightness,Number)
#local C=0;
#local J=(End-Start)/(Number-1);
#while(C<Number)
light_source{Start+J*C rgb Brightness/Number}
#local C=C+1;
#end
#end
--
Margus Ramst
Personal e-mail: mar### [at] peak edu ee
TAG (Team Assistance Group) e-mail: mar### [at] tag povray org
Post a reply to this message
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
Here is how I did it:
Make a cylinder which subtracts another cylinder of slightly
smaller size. Put a light inside it. Now you have a "light can".
It doesn't work if you make a hollow cylinder and put a light
inside it.
>
> I am trying to make a track of lights and I cant get it to work out right
> can any one help me I am making a set of shelves and putting the track of
> lights under it to shine done on the shelf below it.
--
See my Free stuff page. It compares free website providers, and
lists free internet access providers.
http://www.crosswinds.net/~robertsc/free.htm
Win98 help file loaded with hints and tips, including securing a
Win 95/98 PC in a classroom setting. VB4 help file with lots of
code and hints.
At http://www.crosswinds.net/~robertsc/
Post a reply to this message
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
I would use an area_light.
light_source { 0*x color rgb 1.0
area_light
<8, 0, 0> <0, 0, 1> 16, 1
adaptive 0
// jitter
looks_like { cylinder { <-4,0,0> <4,0,0> 0.25 pigment { rgb <1,1,1> }
finish { ambient 1 } } }
//rotate 90*y
translate <0, 3, 10> // <x y z> position of light
}
Shadows will be accurate, but highlights wont be, which is why most people
dont' like area lights.
Instead of the 8 in the first vector, just put in the total width of the
light
> I am trying to make a track of lights and I cant get it to work out right
> can any one help me I am making a set of shelves and putting the track of
> lights under it to shine done on the shelf below it.
--
Josh English -- Lexiphanic Lethomaniac
eng### [at] spiritone com
The POV-Ray Cyclopedia http://www.spiritone.com/~english/cyclopedia/
Post a reply to this message
|
![](/i/fill.gif) |