POV-Ray : Newsgroups : povray.animations : for spotlight : Re: for spotlight Server Time
28 Jul 2024 12:34:25 EDT (-0400)
  Re: for spotlight  
From: Pabs
Date: 19 Jun 2000 22:06:52
Message: <394ED1EA.15191119@nospam.hotmail.com>
rsibbald wrote:

> perhaps I should clarify....
>
>    I would like to have a line similar to the following...
>
> #declare light_source = camera_location + <0,1,0>
>
>   yet, I can't seem to manage.  Any ideas???

Look at the docs for spotlights - you will find the point_at keyword
which can be used as follows

#declare camloc = <1,1,1>;//cam position in any one frame
#declare spotloc = camloc+y*3;//make the spot location be 3 pov units
above the camera location
#declare look = <0,0,0>;//cam lookat position in any one frame
camera{
    location camloc
    look_at look //look at this point
    ...
}
light_source {
    spotloc
    spotlight
    point_at camloc //point at the camera
//    point_at look //point the spotlight at this point (where the
camera is looking)
    rgb 1
}

Hope I was of some/any help

Pabs


Post a reply to this message

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