POV-Ray : Newsgroups : povray.general : Illuminated Pie Chart : Re: Illuminated Pie Chart Server Time
10 Aug 2024 13:18:51 EDT (-0400)
  Re: Illuminated Pie Chart  
From: Chris Huff
Date: 8 Dec 1999 18:41:46
Message: <chrishuff_99-E7191F.18420708121999@news.povray.org>
In article <384ee843@news.povray.org>, "David Vincent-Jones" 
<geo### [at] galaxynetcom> wrote:

> I would like to create a sector light, such as would be found on a small
> boat.
> It is rather like a pie chart with one part showing a red light, one part
> green and one part remains black.
> It is important that as the angle changes there is no black area between 
> the
> red and green nor any bleed from one color to the other.
> 2 spotlights with a very sharp fall-off looks about correct but how can I
> fit two of them ( or more ) into a single cylinder?

If I understand what you want, try using a sphere with a radial pattern, 
and a color map divided into a red section, a green section, and a black 
section. Give the red and green a filter of 1, place a spotlight inside 
the sphere, oriented correctly, and use the reorient macro or just 
transforms to move it into position.
Oh, it helps to know that you can add light_sources to a union, that 
makes keeping everything together much easier.

-- 
Chris Huff
e-mail: chr### [at] yahoocom
Web page: http://chrishuff.dhs.org/


Post a reply to this message

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