|
|
>
> 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] peakeduee
TAG (Team Assistance Group) e-mail: mar### [at] tagpovrayorg
Post a reply to this message
|
|