POV-Ray : Newsgroups : povray.advanced-users : Area lights -- rotation? : Re: Area lights -- rotation? Server Time
26 Jun 2024 08:08:08 EDT (-0400)
  Re: Area lights -- rotation?  
From: Andy
Date: 9 Dec 2013 23:30:01
Message: <web.52a697af7ade050c4dc349de0@news.povray.org>
Alain <kua### [at] videotronca> wrote:

> > Can you rotate an area light?
> >
> > All the examples are just perpendicular, ex:
> >
> > <0,5,0>,<5,0,0>
> >
> >
> >
>
> Normaly, you use perpendiculat dimention vectors, but they can have any
> orientation you want and don't need to be strictly perpendicular.
>
> If you rotate the whole light_source, it will cause an equivalent
> rotation of the area light's axis.
>
> They can also be made to reorient themselve using the orient option that
> must be used with circular 2 vectors must have same lenght and the same
> number of elements in each directions.
>
>
> Alain

ah.. should have figured that out myself. Sorry for such a not-thought-out
question.

So, we'd end up with something like this:

light_source {
 <0, 24, 10> color rgb<0.88, 0.88, 0.88>
 area_light
 <0,0,10>,<10,0,0>,10,10
 adaptive 1
 jitter
 rotate <25,0,0>
}

it would rotate it 25 degrees on the X axis.

Thanks, guys... once again.
-andy.


Post a reply to this message

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