POV-Ray : Newsgroups : povray.binaries.images : Shadowless spotlight : Shadowless spotlight Server Time
9 Aug 2024 13:22:23 EDT (-0400)
  Shadowless spotlight  
From: Przemek Loesch
Date: 8 Feb 2005 04:25:00
Message: <web.42088446de5bce68b0aac12c0@news.povray.org>
See the message describing this problem in p.g:
http://news.povray.org/web.4207f0fd47077f18b0aac12c0%40news.povray.org

The attached image was produced with the following code:

camera {
  location <0,10,-35>
  look_at <0,10,0>
}

union {
  box {<-20,0,0>, <-10,20,10>}
  box {<-5,0,0>, <5,20,10>}
  box {<10,0,0>, <20,20,10>}
  clipped_by {plane {-z, -1}}
  pigment {rgb 1}
}

plane {y,-1 pigment {rgb <1,1,0>}}

#declare spot = cone{<0,-1,0>, 1, <0,0,0>, 0 pigment {rgb 1} finish {ambient
1}}

light_source {      // middle - unmodified
  <0,10,5>
  rgb 1
  spotlight
  radius 30
  falloff 45
  tightness 0
  point_at <0,0,5>
  looks_like {spot}
}

light_source {      // left:
  <-15,10,5>        // "shadowless" before spotlight defs
  rgb 1             // turns into a point light
  shadowless
  spotlight
  radius 30
  falloff 45
  tightness 0
  point_at <-15,0,5>
  looks_like {spot}
}

light_source {      // right:
  <15,10,5>         // "shadowless" after spotlight defs
  rgb 1             // no effect
  spotlight
  radius 30
  falloff 45
  tightness 0
  point_at <15,0,5>
  shadowless
  looks_like {spot}
}


Post a reply to this message


Attachments:
Download 'shadowless_spot.jpg' (16 KB)

Preview of image 'shadowless_spot.jpg'
shadowless_spot.jpg


 

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