POV-Ray : Newsgroups : povray.general : lights Server Time
1 Nov 2024 04:14:42 EDT (-0400)
  lights (Message 1 to 2 of 2)  
From:
Subject: lights
Date: 8 Sep 2000 17:06:58
Message: <39b954f2@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: Bob Hughes
Subject: Re: lights
Date: 8 Sep 2000 18:53:19
Message: <39b96ddf@news.povray.org>

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

All you need do is to put a spotlight into a loop with the proper angles and
positions.  Like so:

#declare TopShelfUnderside= 2; // this has to be just below the shelf base
#declare AwayFromWallAmount= -1; // this has to be away from wall some
#declare StartHere= -10; // example placement only
#declare EndHere= 10; // example placement only

#while (StartHere<=EndHere)

light_source {0,1
 spotlight radius 30 falloff 45 point_at -y // points down to start with
  rotate 30*x // angle them toward -z some
  translate <StartHere,TopShelfUnderside,AwayFromWallAmount>
 // aligned on x axis
}

#declare StartHere=StartHere+5; // total of 5 lights at -10, -5, 0, 5, 10 *x

#end

Any number of lights can be done like this, any position and orientation,
all you need do is supply the numbers, etc.

Bob


Post a reply to this message

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