POV-Ray : Newsgroups : povray.beta-test : arealight and light_fading bug Server Time
2 Nov 2024 11:25:36 EDT (-0400)
  arealight and light_fading bug (Message 1 to 5 of 5)  
From: Simon Adameit
Subject: arealight and light_fading bug
Date: 15 Dec 2001 17:59:59
Message: <3c1bd5ef@news.povray.org>
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

From: Peter Popov
Subject: Re: arealight and light_fading bug
Date: 15 Dec 2001 18:09:56
Message: <fsln1usab1ugselp7lrsl0s12nuqbpe2j7@4ax.com>
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

From: Warp
Subject: Re: arealight and light_fading bug
Date: 15 Dec 2001 18:30:49
Message: <3c1bdd28@news.povray.org>
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

From:
Subject: Re: arealight and light_fading bug
Date: 17 Dec 2001 03:28:07
Message: <5nar1ugmselcureds1p38rb1ik0ppnv7nf@4ax.com>
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

From: Warp
Subject: Re: arealight and light_fading bug
Date: 17 Dec 2001 11:31:13
Message: <3c1e1dd1@news.povray.org>
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

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