POV-Ray : Newsgroups : povray.newusers : lights Server Time
28 Nov 2024 13:45:25 EST (-0500)
  lights (Message 1 to 5 of 5)  
From:
Subject: lights
Date: 8 Sep 2000 17:28:59
Message: <39b95a1b@news.povray.org>
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.


Post a reply to this message

From: Margus Ramst
Subject: Re: lights
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

From: Chuck Roberts
Subject: Re: lights
Date: 15 Sep 2000 09:41:09
Message: <39C226E6.15AAF259@alleganisd.org>
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

From:
Subject: Re: lights
Date: 15 Sep 2000 11:16:26
Message: <39c23d4a@news.povray.org>
hey can you be a little clearer I cant get the light tube to emit light in
all directions it just lights up one end




news:39b95a1b@news.povray.org...
> 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.
>
>
>
>


Post a reply to this message

From: Josh English
Subject: Re: lights
Date: 15 Sep 2000 11:27:36
Message: <39C2400E.BBD1C2F4@spiritone.com>
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] spiritonecom
The POV-Ray Cyclopedia http://www.spiritone.com/~english/cyclopedia/


Post a reply to this message

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