|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
When I use an arealight with light fading, the light fades like if it was a
point light.
povwin 3.5 beta 8 windows 98 SE
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
On Sat, 15 Dec 2001 23:59:23 +0100, "Simon Adameit" <gom### [at] gmxde>
wrote:
>When I use an arealight with light fading, the light fades like if it was a
>point light.
It has always been this way. This is known behaviour and is
documented. A work around the issue is to use several point light
sources or a pure radiosity light source.
Peter Popov ICQ : 15002700
Personal e-mail : pet### [at] vipbg
TAG e-mail : pet### [at] tagpovrayorg
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Peter Popov <pet### [at] vipbg> wrote:
:>When I use an arealight with light fading, the light fades like if it was a
:>point light.
: It has always been this way. This is known behaviour and is
: documented. A work around the issue is to use several point light
: sources or a pure radiosity light source.
One has to remember that the area light definition has effect *ONLY* in
shadow calculations, nothing else.
I wonder how difficult it would be for it to be taken into account in
other things as well (lighting, highlights, fading...).
--
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}// - Warp -
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
On 15 Dec 2001 18:30:49 -0500, Warp <war### [at] tagpovrayorg> wrote:
> I wonder how difficult it would be for it to be taken into account in
> other things as well (lighting, highlights, fading...).
I know you can write your own macro but I wondered the same.
Below macro works fine but makes me wonder another thing: is it really necessary
in any routines to make bounding box of light infinite? With Bounding limited
to location min_extent(Light) could be useful.
#include "math.inc"
#macro Area_Light(Location,Color,Axis1,Axis2,Size1,Size2)
#local C1=0;
#while (C1<Size1)
#local C2=0;
#while (C2<Size2)
light_source{
Location
+Interpolate(C1,0,Size1-1,-Axis1/2,Axis1/2,1)
+Interpolate(C2,0,Size2-1,-Axis2/2,Axis2/2,1)
Color/(Size1*Size2)
}
#local C2=C2+1;
#end
#local C1=C1+1;
#end
#end
ABX
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
The problem with making lots of point light sources is that things get
very slow very soon. The area_light is good because you can use optimizations
to speed it up (adaptive sampling).
--
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}// - Warp -
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
|
|