POV-Ray : Newsgroups : povray.general : Cone math for spotlight : Re: Cone math for spotlight Server Time
8 Aug 2024 04:08:50 EDT (-0400)
  Re: Cone math for spotlight  
From: Margus Ramst
Date: 18 Mar 2001 15:32:14
Message: <3ab51b4e@news.povray.org>
"MPunk3" <zer### [at] yahoocom> wrote:

> Does anybody have (or feel like writing) a macro which would generate a
> couple of cones using the parameters which copied the planned spotlight's
> location, look_at, radius, and falloff settings?

How about this one; you givit the cone's tip and base coordinates, plus an
angle (in your case, radius or falloff angle):

#macro cone_angle(Tip,Base,Angle)
#local Rad=tan(radians(Angle))*vlength(Tip-Base);
cone{Tip,0,Base,Rad open}
#end

-- 
Margus Ramst

Personal e-mail: mar### [at] peakeduee
TAG (Team Assistance Group) e-mail: mar### [at] tagpovrayorg
Home page http://www.hot.ee/margusrt


Post a reply to this message

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