POV-Ray : Newsgroups : povray.general : Spotlight question : Spotlight question Server Time
11 Aug 2024 03:29:47 EDT (-0400)
  Spotlight question  
From: Rune S  Johansen
Date: 12 Sep 1999 08:54:38
Message: <37dba28e@news.povray.org>
/*
When I use spotlight then why is the light intensity
not at full intensity within the "radius" angle?

In the following example when I use normal point light
the whole plane is full illuminated. with spotlight I
expected the area inside the red lines to be full
illuminated but it is not so at all. Why? I can't find
the answer in the docs.
*/

// off = normal light, on = spotlight.
#declare Spotlight = on;

// angle for both "radius" and "falloff".
#declare Angle = 60;

camera {
   location 100*y
   look_at 0
}

plane {
   y, -0.001
   pigment {color rgb 1}
   finish {ambient 0 diffuse 1 brilliance 0}
}

light_source {
   0, color 1
   #if (Spotlight=on)
      spotlight
      radius Angle
      falloff Angle
      point_at x
   #end
}

cylinder {y, y+100*x, 0.5 rotate +Angle*y pigment {color red 1} finish
{ambient 1 diffuse 0}}
cylinder {y, y+100*x, 0.5 rotate -Angle*y pigment {color red 1} finish
{ambient 1 diffuse 0}}

/*
Greetings,

Rune S. Johansen

---
Visit The RSJ Website at http://rsj.mobilixnet.dk
for 3D images including still lives, dragons,
mathematical shapes, and more. Stereograms,
tutorials, The POV Desktop Theme, hundreds of
raytracing jokes, miscellaneous other things,
and a lot of fun!
*/


Post a reply to this message

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