POV-Ray : Newsgroups : povray.general : Soft Shadows? Server Time
31 Oct 2024 21:26:44 EDT (-0400)
  Soft Shadows? (Message 1 to 10 of 22)  
Goto Latest 10 Messages Next 10 Messages >>>
From: IronLogic
Subject: Soft Shadows?
Date: 7 Feb 2015 14:50:01
Message: <web.54d66c3668a5702357b385d60@news.povray.org>
I expect this question has been asked before, but i'm wondering whether there is
a specific reason why POV-Ray only supports soft shadows on Area lights,
considering its age and all the other features it has (e.g. radiosity,
volumetrics, photon mapping etc.).

Soft shadows on all lights is quite a standard feature of renderers, and in
theory quite a simple process (although I'm not a programmer), but I have no
idea why this renderer never got it despite its age. Being able to add soft
shadows to directional and point lights would be a tremendous benefit to most
scenes, unless of course there is a workaround for it.

P.S. Same goes for glossy reflections too, while there is a workaround for it,
it is not a particularly 'clean' solution (unless you use MegaPOV instead). AO
also seems impossible without using a workaround with Radiosity, which kind of
kills the point of using AO to 'fake' GI a bit and speed up renders :/


Post a reply to this message

From: Le Forgeron
Subject: Re: Soft Shadows?
Date: 7 Feb 2015 15:40:04
Message: <54d67824@news.povray.org>
Le 07/02/2015 20:49, IronLogic a écrit :
> I expect this question has been asked before, but i'm wondering whether there is
> a specific reason why POV-Ray only supports soft shadows on Area lights,
> considering its age and all the other features it has (e.g. radiosity,
> volumetrics, photon mapping etc.).
> 
> Soft shadows on all lights is quite a standard feature of renderers, and in
> theory quite a simple process (although I'm not a programmer), but I have no
> idea why this renderer never got it despite its age. Being able to add soft
> shadows to directional and point lights would be a tremendous benefit to most
> scenes, unless of course there is a workaround for it.
> 
> P.S. Same goes for glossy reflections too, while there is a workaround for it,
> it is not a particularly 'clean' solution (unless you use MegaPOV instead). AO
> also seems impossible without using a workaround with Radiosity, which kind of
> kills the point of using AO to 'fake' GI a bit and speed up renders :/
> 
> 

What is GI, AO ?

About soft shadow... if it's a point of light, it cannot be soft.-

Or you have a definition of point that is no more a point.

Area lights have many optimisation (such as adaptative) which can be
used to have real large array without the cost of as many point lights.

jitter, orient & circular are cool too.

http://www.povray.org/documentation/3.7.0/r3_4.html#r3_4_4_1_5

Maybe wanting something like the fading cone of spot light ?


Post a reply to this message

From: Christian Froeschlin
Subject: Re: Soft Shadows?
Date: 7 Feb 2015 22:22:13
Message: <54d6d665$1@news.povray.org>
On 07.02.2015 20:49, IronLogic wrote:

> I expect this question has been asked before, but i'm wondering whether there is
> a specific reason why POV-Ray only supports soft shadows on Area lights,
> considering its age and all the other features it has (e.g. radiosity,
> volumetrics, photon mapping etc.).

 From the documentation:

   "Any type of light source may be an area light."

In essence, the "area_light" keyword in POV-Ray should probably be
regarded as the name of the option that enables "soft shadows" for any
given light source (although it can do more with "area_illumination").

Also, since you mention radiosity, that will also give you soft
shadows appropriate for the geometry of the objects that are emitting
or scattering light.


Post a reply to this message

From: IronLogic
Subject: Re: Soft Shadows?
Date: 8 Feb 2015 11:05:01
Message: <web.54d7889215c15fdc57b385d60@news.povray.org>
Le_Forgeron <jgr### [at] freefr> wrote:

> What is GI, AO ?
>
> About soft shadow... if it's a point of light, it cannot be soft.-
>
> Or you have a definition of point that is no more a point.
>
> Area lights have many optimisation (such as adaptative) which can be
> used to have real large array without the cost of as many point lights.
>
> jitter, orient & circular are cool too.
>
> http://www.povray.org/documentation/3.7.0/r3_4.html#r3_4_4_1_5
>
> Maybe wanting something like the fading cone of spot light ?

GI = Indirect Lighting (Like Radiosity), AO is a fast method of faking shadows
in crevices, which helps enormously when faking indirect lighting to speed up
renders.

Also you can have soft shadows with point lights (or in fact any light), many
other render engines do it. You just have to trace a bunch of shadow rays up
towards the light rather than just one, and give them a semi-random offset
between the direction of the light and a user defined maximum (which defines how
soft the shadow is). The more rays you trace the cleaner it will be.


Post a reply to this message

From: IronLogic
Subject: Re: Soft Shadows?
Date: 8 Feb 2015 11:10:00
Message: <web.54d789b615c15fdc57b385d60@news.povray.org>
Christian Froeschlin <chr### [at] chrfrde> wrote:

>  From the documentation:
>
>    "Any type of light source may be an area light."
>
> In essence, the "area_light" keyword in POV-Ray should probably be
> regarded as the name of the option that enables "soft shadows" for any
> given light source (although it can do more with "area_illumination").
>
> Also, since you mention radiosity, that will also give you soft
> shadows appropriate for the geometry of the objects that are emitting
> or scattering light.

Ah thanks, that worked well. I was under the impression you could either have a
point, directional, or area light, but it seems some of their features are very
much 'stackable'.


Post a reply to this message

From: Zeger Knaepen
Subject: Re: Soft Shadows?
Date: 8 Feb 2015 12:03:13
Message: <54d796d1$1@news.povray.org>
> Also you can have soft shadows with point lights (or in fact any light), many
> other render engines do it. You just have to trace a bunch of shadow rays up
> towards the light rather than just one, and give them a semi-random offset
> between the direction of the light and a user defined maximum (which defines how
> soft the shadow is). The more rays you trace the cleaner it will be.

How is that still a point light then?
I'm not really familiar with many render engines, but as far as I 
understand, it's the same with every renderer: to get soft shadows, you 
either fake it with blurry shadow maps, or you have to use lights of a 
size>0, which means it's not a point light anymore.


Post a reply to this message

From: Nekar Xenos
Subject: Re: Soft Shadows?
Date: 8 Feb 2015 13:02:56
Message: <op.xtq2241vufxv4h@xena.home>
On Sun, 08 Feb 2015 18:02:26 +0200, IronLogic <nomail@nomail> wrote:

> Le_Forgeron <jgr### [at] freefr> wrote:
>
>> What is GI, AO ?
>>
>> About soft shadow... if it's a point of light, it cannot be soft.-
>>
>> Or you have a definition of point that is no more a point.
>>
>> Area lights have many optimisation (such as adaptative) which can be
>> used to have real large array without the cost of as many point lights.
>>
>> jitter, orient & circular are cool too.
>>
>> http://www.povray.org/documentation/3.7.0/r3_4.html#r3_4_4_1_5
>>
>> Maybe wanting something like the fading cone of spot light ?
>
> GI = Indirect Lighting (Like Radiosity), AO is a fast method of faking  
> shadows
> in crevices, which helps enormously when faking indirect lighting to  
> speed up
> renders.
>
> Also you can have soft shadows with point lights (or in fact any light),  
> many
> other render engines do it. You just have to trace a bunch of shadow  
> rays up
> towards the light rather than just one, and give them a semi-random  
> offset
> between the direction of the light and a user defined maximum (which  
> defines how
> soft the shadow is). The more rays you trace the cleaner it will be.
>
>

Do you mean like the shadows in Sky Captain and Toy Story 1?

Such shadows are totally unrealistic because they are blurred the same  
amount not matter how far away they are from the object. Just because  
other renderers do it, doesn't mean it is correct. These soft shadows are  
a scan-line renderer shortcut for actual area light shadows that render  
longer. Pov-Ray is not a scan-line renderer, it is a ray-tracer. I suggest  
you use an Area Light with jitter, circular and orient, and making it the  
size of the globe it represents to give you a more realistic soft shadow.

Take a look at any soft shadow in real life and you will see that where  
the shadow meats the object casting it, the shadow is sharp. The further  
away the shadow is from the object, the softer the shadow is.

-- 
-Nekar Xenos-


Post a reply to this message

From: Nekar Xenos
Subject: Re: Soft Shadows?
Date: 8 Feb 2015 13:04:33
Message: <op.xtq25vcgufxv4h@xena.home>
On Sun, 08 Feb 2015 18:07:18 +0200, IronLogic <nomail@nomail> wrote:

> Christian Froeschlin <chr### [at] chrfrde> wrote:
>
>>  From the documentation:
>>
>>    "Any type of light source may be an area light."
>>
>> In essence, the "area_light" keyword in POV-Ray should probably be
>> regarded as the name of the option that enables "soft shadows" for any
>> given light source (although it can do more with "area_illumination").
>>
>> Also, since you mention radiosity, that will also give you soft
>> shadows appropriate for the geometry of the objects that are emitting
>> or scattering light.
>
> Ah thanks, that worked well. I was under the impression you could either  
> have a
> point, directional, or area light, but it seems some of their features  
> are very
> much 'stackable'.
>
>

In that case you can ignore my previous comment :)

-- 
-Nekar Xenos-


Post a reply to this message

From: clipka
Subject: Re: Soft Shadows?
Date: 8 Feb 2015 15:07:48
Message: <54d7c214$1@news.povray.org>
Am 08.02.2015 um 17:02 schrieb IronLogic:

> Also you can have soft shadows with point lights (or in fact any light), many
> other render engines do it. You just have to trace a bunch of shadow rays up
> towards the light rather than just one, and give them a semi-random offset
> between the direction of the light and a user defined maximum (which defines how
> soft the shadow is). The more rays you trace the cleaner it will be.

Well, that's /exactly/ what POV-Ray area lights do in the "circular 
orient jitter" mode - except that POV-Ray uses stratified sampling in 
that mode rather than purely random offsets, and that it also still 
supports adaptive supersampling in that mode.


Post a reply to this message

From: Alain
Subject: Re: Soft Shadows?
Date: 8 Feb 2015 15:57:53
Message: <54d7cdd1@news.povray.org>

> Le_Forgeron <jgr### [at] freefr> wrote:
>
>> What is GI, AO ?
>>
>> About soft shadow... if it's a point of light, it cannot be soft.-
>>
>> Or you have a definition of point that is no more a point.
>>
>> Area lights have many optimisation (such as adaptative) which can be
>> used to have real large array without the cost of as many point lights.
>>
>> jitter, orient & circular are cool too.
>>
>> http://www.povray.org/documentation/3.7.0/r3_4.html#r3_4_4_1_5
>>
>> Maybe wanting something like the fading cone of spot light ?
>
> GI = Indirect Lighting (Like Radiosity), AO is a fast method of faking shadows
> in crevices, which helps enormously when faking indirect lighting to speed up
> renders.
>
> Also you can have soft shadows with point lights (or in fact any light), many
> other render engines do it. You just have to trace a bunch of shadow rays up
> towards the light rather than just one, and give them a semi-random offset
> between the direction of the light and a user defined maximum (which defines how
> soft the shadow is). The more rays you trace the cleaner it will be.
>
>

Does AO mean ambient oclusion? If that's the case, it's only a tiny 
subset of radiosity. It lack the ability to take into account the colour 
and reflectivity of the ocluding object: it may be black or white and 
cause exactly the same darkening.

NO, it's absolutely impossible to have any kind of soft shadow from a 
point light. Other renderers may /fake/ soft shadows, like you can 
/fake/ focal blur, in a non-realistic way.
The mechanism that you mention is faking it. It's probably no faster, 
nor beter, than using an area_light in POV-Ray.

Just use a light source, add area_light, the dimentions of the area, and 
the number of sub-lights. Greatly improve the performances by using 
adaptive. Great controll, good performance.
The larger the number of sub-lights, the cleaner the result. Make the 
dimention larger to get broader penumbrae.


Alain


Post a reply to this message

Goto Latest 10 Messages Next 10 Messages >>>

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