POV-Ray : Newsgroups : povray.advanced-users : Spotlight problems : Re: Spotlight problems Server Time
3 Jul 2024 05:47:41 EDT (-0400)
  Re: Spotlight problems  
From: Bob
Date: 16 Feb 2009 04:24:16
Message: <499930c0$1@news.povray.org>
Don't know if this will be completely right for what you want to do, using 
projected_through might be one solution.
Render the following to see this "oval" spotlight shine onto a wall and 
floor, no camera needed. You might need to reposition it to see it better, 
just notice this is inside a box if you do.
There could be problems trying to adjust the actual light to fit your needs. 
Not sure if area_light likes projected_through, or vice versa.

/* BEGIN */
light_source
{ // placed at origin, pointing toward +z
    0,
    1  // color
    spotlight
    point_at z
    radius 5
    falloff 25
    area_light x/30,y/15,9,18 adaptive 1 jitter
    projected_through
    {
        sphere
        { // oval object placed in front of spotlight
            z, 0.5
            scale <1/3,1,1>/6
        }
    }
    rotate 45*x // angle downward
    translate 6*y // position upward
}

box
{ // floor and wall, for light to shine onto
    <-3,-1,-3>,<3,9,9>
    pigment { rgb 1 }
    finish { ambient 0 diffuse 1 }
}
/* END */


Post a reply to this message

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