POV-Ray : Newsgroups : povray.advanced-users : Why don't shadows get blurry after a certain distance? ("Distance Field Sha= Server Time
21 Nov 2024 07:30:29 EST (-0500)
  Why don't shadows get blurry after a certain distance? ("Distance Field Sha= (Message 1 to 10 of 12)  
Goto Latest 10 Messages Next 2 Messages >>>
From: HackerDaGreat57
Subject: Why don't shadows get blurry after a certain distance? ("Distance Field Sha=
Date: 3 Jun 2022 23:55:00
Message: <web.629ad72c39a252e62dae6647fefbff93@news.povray.org>
I was just rendering the Biscuit sample and found something strange: The shadows
on objects don't get blurrier as they get farther away from the object.

If your mind is completely foggy and you are confused and don't know what I'm
talking about, take a look at this Unreal Engine 4 documentation page:
https://docs.unrealengine.com/4.27/en-US/BuildingWorlds/LightingAndShadows/RayTracedDistanceFieldShadowing/


Post a reply to this message

From: And
Subject: Re: Why don't shadows get blurry after a certain distance? ("Distance Field= Sha=3D
Date: 4 Jun 2022 00:55:00
Message: <web.629ae502d86d60dac11d6faaaa81652d@news.povray.org>
"HackerDaGreat57" <Hac### [at] gmailcom> wrote:
> I was just rendering the Biscuit sample and found something strange: The shadows
> on objects don't get blurrier as they get farther away from the object.
>
> If your mind is completely foggy and you are confused and don't know what I'm
> talking about, take a look at this Unreal Engine 4 documentation page:
>
https://docs.unrealengine.com/4.27/en-US/BuildingWorlds/LightingAndShadows/RayTracedDistanceFieldShadowing/


If you are familiar with another 3D render engine,...
I think the render engine of POV-Ray is somewhat old. It reflected the history
of 3D technology around 1990s~2010s, but lack the more realistic approach during
2010~2020.

It can produce blurred shadow, but you must put an "area light" on the position
of light_source, then turn on it. You can see the document.


Post a reply to this message

From: Cousin Ricky
Subject: Re: Why don't shadows get blurry after a certain distance? ("Distance Field Sha=
Date: 4 Jun 2022 03:12:57
Message: <629b05f9$1@news.povray.org>
On 2022-06-03 23:53 (-4), HackerDaGreat57 wrote:
> I was just rendering the Biscuit sample and found something strange: The shadows
> on objects don't get blurrier as they get farther away from the object.

See area lights in the documentation:

https://wiki.povray.org/content/Reference:Light_Source#Area_Lights


Post a reply to this message

From: Alain Martel
Subject: Re: Why don't shadows get blurry after a certain distance? ("Distance Field Sha=
Date: 4 Jun 2022 09:14:31
Message: <629b5ab7$1@news.povray.org>
Le 2022-06-03 à 23:53, HackerDaGreat57 a écrit :
> I was just rendering the Biscuit sample and found something strange: The shadows
> on objects don't get blurrier as they get farther away from the object.
> 
> If your mind is completely foggy and you are confused and don't know what I'm
> talking about, take a look at this Unreal Engine 4 documentation page:
>
https://docs.unrealengine.com/4.27/en-US/BuildingWorlds/LightingAndShadows/RayTracedDistanceFieldShadowing/
> 

That scene use a point light. That kind of light always produce sharp 
shadows without any blurring. It's an infinitely small light source.

The used light is :
light_source {<-140,200, 300> rgb <1.0, 1.0, 0.95>*1.5}

To have blurring shadows, you need to use an area_light.
Change it to :
#declare Size = 3;
light_source {<-140,200, 300> rgb <1.0, 1.0, 0.95>*1.5 area_light Size*x 
Size*z 17 17 jitter adaptive 0 circular orient}

to simulate a spherical light source with a diameter of 3 units.
The «adaptive 0» makes it render much faster by using an adaptive 
sampling method.
Change «Size» to change the broadness of the penumbra, or how much the 
shadow get blurry.


Post a reply to this message

From: HackerDaGreat57
Subject: Re: Why don't shadows get blurry after a certain distance? ("Distance Field= Sha=3D
Date: 4 Jun 2022 13:00:00
Message: <web.629b8f38d86d60da2dae6647fefbff93@news.povray.org>
Alain Martel <kua### [at] videotronca> wrote:

> > I was just rendering the Biscuit sample and found something strange: The shadows
> > on objects don't get blurrier as they get farther away from the object.
> >
> > If your mind is completely foggy and you are confused and don't know what I'm
> > talking about, take a look at this Unreal Engine 4 documentation page:
> >
https://docs.unrealengine.com/4.27/en-US/BuildingWorlds/LightingAndShadows/RayTracedDistanceFieldShadowing/
> >
>
> That scene use a point light. That kind of light always produce sharp
> shadows without any blurring. It's an infinitely small light source.
>
> The used light is :
> light_source {<-140,200, 300> rgb <1.0, 1.0, 0.95>*1.5}
>
> To have blurring shadows, you need to use an area_light.
> Change it to :
> #declare Size = 3;
> light_source {<-140,200, 300> rgb <1.0, 1.0, 0.95>*1.5 area_light Size*x
> Size*z 17 17 jitter adaptive 0 circular orient}
>
> to simulate a spherical light source with a diameter of 3 units.

> sampling method.

> shadow get blurry.

Is it possible to change the 'Radius' of the point light? Like in Blender's
Cycles for example, there is an option to change the point light's radius which
increases the 'amount' of penumbra on my shadows.

Thanks anyway for the useful reference though.


Post a reply to this message

From: Bald Eagle
Subject: Re: Why don't shadows get blurry after a certain distance? ("Distance Field=
Date: 4 Jun 2022 18:30:00
Message: <web.629bdc925880425d1f9dae3025979125@news.povray.org>
"HackerDaGreat57" <Hac### [at] gmailcom> wrote:

> Is it possible to change the 'Radius' of the point light? Like in Blender's
> Cycles for example, there is an option to change the point light's radius which
> increases the 'amount' of penumbra on my shadows.
>
> Thanks anyway for the useful reference though.

Not in the way you're asking.
But maybe another way.

If you create a sphere with an emissive finish, then you could make a scene
using radiosity, and that might work in the way you want it to.

You can also add no_image to the object definition so that it doesn't show up in
the scene, if it's in the camera's view frustum.


Post a reply to this message

From: HackerDaGreat57
Subject: Re: Why don't shadows get blurry after a certain distance? ("Distance Field=
Date: 5 Jun 2022 01:10:00
Message: <web.629c3a8b79b4ae92dae6647fefbff93@news.povray.org>
"Bald Eagle" <cre### [at] netscapenet> wrote:
> "HackerDaGreat57" <Hac### [at] gmailcom> wrote:
>
> > Is it possible to change the 'Radius' of the point light? Like in Blender's
> > Cycles for example, there is an option to change the point light's radius which
> > increases the 'amount' of penumbra on my shadows.
> >
> > Thanks anyway for the useful reference though.
>
> Not in the way you're asking.
> But maybe another way.
>
> If you create a sphere with an emissive finish, then you could make a scene
> using radiosity, and that might work in the way you want it to.
>
> You can also add no_image to the object definition so that it doesn't show up in
> the scene, if it's in the camera's view frustum.

That would, in fact, work like a charm.

Do emissive materials count as light sources? (I'm concerned about the 127 light
limit)


Post a reply to this message

From: Bald Eagle
Subject: Re: Why don't shadows get blurry after a certain distance? ("Distance Field=
Date: 5 Jun 2022 06:45:00
Message: <web.629c885879b4ae91f9dae3025979125@news.povray.org>
"HackerDaGreat57" <Hac### [at] gmailcom> wrote:

> Do emissive materials count as light sources? (I'm concerned about the 127 light
> limit)

I doubt it.   The whole radiosity mechanism is completely different from the
typical raytracing from a light source way of doing things - the way I
understand it is, basically every object in your scene is treated as a "light
source" since a lot of the point of radiosity is picking up and transferring the
color of surrounding objects to a surface via reflected ambient light.

So, if you had a room painted blue, and put a white box on a table, and shone a
light onto one of the walls, the box would appear blue - because it would be lit
only by the blue light reflected from the walls.   That sort of thing.

The real trick is understanding and properly adjusting the settings to get a
good result.   I'd start by using some of the radiosity levels in the include
file "rad.inc" or whatever it's called....


Post a reply to this message

From: And
Subject: Re: Why don't shadows get blurry after a certain distance? ("Distance Field=
Date: 6 Jun 2022 03:50:00
Message: <web.629db0bb79b4ae9c11d6faaaa81652d@news.povray.org>
"HackerDaGreat57" <Hac### [at] gmailcom> wrote:
> "Bald Eagle" <cre### [at] netscapenet> wrote:
> > "HackerDaGreat57" <Hac### [at] gmailcom> wrote:
> >
> > > Is it possible to change the 'Radius' of the point light? Like in Blender's
> > > Cycles for example, there is an option to change the point light's radius which
> > > increases the 'amount' of penumbra on my shadows.
> > >
> > > Thanks anyway for the useful reference though.
> >
> > Not in the way you're asking.
> > But maybe another way.
> >
> > If you create a sphere with an emissive finish, then you could make a scene
> > using radiosity, and that might work in the way you want it to.
> >
> > You can also add no_image to the object definition so that it doesn't show up in
> > the scene, if it's in the camera's view frustum.
>
> That would, in fact, work like a charm.
>
> Do emissive materials count as light sources? (I'm concerned about the 127 light
> limit)

You can use an object with texture{ finish{emission 1.0}} instead of regular
light_source, when the radiosity turn on.
But, you need very high radiosity quality settings, especially "error_bound", or
you will get a very blurred shadow without accuracy created by radiosity.

The accuracy will establish when error_bound is very small. But at this time you
need high "count" to eliminate spotted result.



radiosity{
 pretrace_start 64/image_width
 pretrace_end   4/image_width

 count 160
 nearest_count 2
 error_bound 0.28      // this should be smaller
                       // if you use radiosity emission
                       // as a light source
 recursion_limit 4
 low_error_factor 0.5
 gray_threshold 0.0
 brightness 1.0         // brightness 1 is natural correct
 media off

}


radiosity {} block place in the global_settings{}


Post a reply to this message

From: Alain Martel
Subject: Re: Why don't shadows get blurry after a certain distance? ("Distance Field=Sha=3D
Date: 6 Jun 2022 10:34:38
Message: <629e107e$1@news.povray.org>
Le 2022-06-04 à 12:58, HackerDaGreat57 a écrit :
> Alain Martel <kua### [at] videotronca> wrote:
>> Le 2022-06-03 à 23:53, HackerDaGreat57 a écrit :
>>> I was just rendering the Biscuit sample and found something strange: The shadows
>>> on objects don't get blurrier as they get farther away from the object.
>>>
>>> If your mind is completely foggy and you are confused and don't know what I'm
>>> talking about, take a look at this Unreal Engine 4 documentation page:
>>>
https://docs.unrealengine.com/4.27/en-US/BuildingWorlds/LightingAndShadows/RayTracedDistanceFieldShadowing/
>>>
>>
>> That scene use a point light. That kind of light always produce sharp
>> shadows without any blurring. It's an infinitely small light source.
>>
>> The used light is :
>> light_source {<-140,200, 300> rgb <1.0, 1.0, 0.95>*1.5}
>>
>> To have blurring shadows, you need to use an area_light.
>> Change it to :
>> #declare Size = 3;
>> light_source {<-140,200, 300> rgb <1.0, 1.0, 0.95>*1.5 area_light Size*x
>> Size*z 17 17 jitter adaptive 0 circular orient}
>>
>> to simulate a spherical light source with a diameter of 3 units.
>> The «adaptive 0» makes it render much faster by using an adaptive
>> sampling method.
>> Change «Size» to change the broadness of the penumbra, or how much the
>> shadow get blurry.
> 
> Is it possible to change the 'Radius' of the point light? Like in Blender's
> Cycles for example, there is an option to change the point light's radius which
> increases the 'amount' of penumbra on my shadows.
> 
> Thanks anyway for the useful reference though.
> 

Not at all. The default point light have no dimension, only a location 
and colour.

The only way to have a penumbra is to use the area_light feature.

A word about the adaptive option :
It use adaptive sampling. It start to sample the illumination with a 
subset of the elements of the area_light. That number of samples is 
determined by the integer value that follows the adaptive key word.
The starting samplings according to the adaptive value are :
0 → 2 x 2 (2^0 +1)
1 → 3 x 3 (2^1 +1)
2 → 5 x 5 (2^2 +1)
3 → 9 x 9 (2^3 +1)
...
If all samples from a 2 x 2 block are identical, then, no further 
sampling is done within that block, all sampling points inside that 
block are assumed to be identically illuminated or not. If at least one 
is different, then, 5 more samples are taken : One between each corner 
and one in the centre. This is repeated until the maximum sampling 
density is reached.

The circular option make the sampling rectangle into a circle or ellipse.

The orient ensure that the plane of the samples is always perpendicular 
to the vector between the light and the currently rendered point in the 
scene. Orient demand that the circular option is also used AND require 
that the length and width to be the same and that the number of samples 
in both direction are identical.

The size of the area_light are it's width and length.
An area_light can be long and narrow and can simulate a fluorescent tube 
like this :
light_source {<-140,200, 300> rgb <1.0, 1.0, 0.95>*1.5 area_light 20*x
1*z 63 5 jitter adaptive 1}


Post a reply to this message

Goto Latest 10 Messages Next 2 Messages >>>

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