POV-Ray : Newsgroups : povray.newusers : lights : Re: lights Server Time
5 Sep 2024 14:21:58 EDT (-0400)
  Re: lights  
From: Margus Ramst
Date: 8 Sep 2000 19:42:27
Message: <39B96B40.BDC18CC1@peak.edu.ee>

> 
> 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

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