POV-Ray : Newsgroups : povray.general : Soft Shadows? Server Time
5 Jul 2024 11:12:25 EDT (-0400)
  Soft Shadows? (Message 11 to 20 of 22)  
<<< Previous 10 Messages Goto Latest 10 Messages Next 2 Messages >>>
From: Alain
Subject: Re: Soft Shadows?
Date: 8 Feb 2015 16:04:01
Message: <54d7cf41@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'.
>
>

area_light is an option.
spot_light, cylindrical and parallel are also options.
You can have a light with area_light, parallel AND spot_light without 
any problem.

Also, if you want to use photons, to have forward tracing, ALL light but 
shadowless emit photons by default.


Post a reply to this message

From: IronLogic
Subject: Re: Soft Shadows?
Date: 8 Feb 2015 19:10:01
Message: <web.54d7fa0115c15fdc57b385d60@news.povray.org>
"Nekar Xenos" <nek### [at] gmailcom> wrote:

> 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.

I think you're thinking of shadow maps. What I mean is a commonly used method of
faking 'true' soft shadows that do spread out the further away an object is from
the thing it casts its shadow onto, no matter what type of light source is used.

In this method the shadow rays would be traced from the hitpoint and spread out
more the father away the object casting the shadow is, causing a softer shadow
to form. For example, a shadow ray would hit a ground plane, then something like
16 shadow rays could then be traced from the hitpoint on the ground plane up to
a light source, each randomly offset from the path to the light source by say 10
degrees.
     That would give you a ~20 degree 'cone' of shadow rays going up from the
hitpoint to the light. Some shadow rays would hit an object, e.g. a sphere, and
some would miss, so then the average colour of all those rays would be a shade
of grey. The closer towards an object the more rays would hit the sphere,
leading to a darker colour and vice versa. And the farther away the object is
the more rays from farther hitpoints would hit it too, leading to a much more
'spread out' and softer shadow.


Post a reply to this message

From: IronLogic
Subject: Re: Soft Shadows?
Date: 8 Feb 2015 19:30:01
Message: <web.54d7ff6515c15fdc57b385d60@news.povray.org>
Alain <kua### [at] videotronca> wrote:

> 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.

I know, the point is to cut corners to reduce render times, whilst still ending
up with a nice looking result. AO is a very handy and quick method of adding in
a lot of extra detail, but not a lot of extra render time. Of course it won't
look as realistic as full-on global illumination, but it will certainly make
things look nicer than no GI at all and open up some extra artistic
possibilities.

> 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.

I didn't mean a physically correct point light, you are right that a 'real'
point light won't give soft shadows. I did in fact mean the fake method used by
most other render engines when dealing with point lights in 3D software, to give
you extra artistic control and ease of use and still end up with a nice result.
But thankfully the area light method seems to be a good workaround.

After all, if you just want complete physical correctness you're gonna be
sacrificing a lot of render time and artistic flexibility. A lot of CG is about
faking and optimizing things to keep render times under control, especially when
it comes to animations, and even more so when you don't have a render farm at
your disposal.


Post a reply to this message

From: IronLogic
Subject: Re: Soft Shadows?
Date: 8 Feb 2015 19:35:01
Message: <web.54d7ffe415c15fdc57b385d60@news.povray.org>
Alain <kua### [at] videotronca> wrote:

> area_light is an option.
> spot_light, cylindrical and parallel are also options.
> You can have a light with area_light, parallel AND spot_light without
> any problem.
>
> Also, if you want to use photons, to have forward tracing, ALL light but
> shadowless emit photons by default.

Thanks, that's useful to know. The photon mapping method sounds like a good
method too.


Post a reply to this message

From: Zeger Knaepen
Subject: Re: Soft Shadows?
Date: 8 Feb 2015 19:57:50
Message: <54d8060e$1@news.povray.org>
> I didn't mean a physically correct point light, you are right that a 'real'
> point light won't give soft shadows. I did in fact mean the fake method used by
> most other render engines when dealing with point lights in 3D software, to give
> you extra artistic control and ease of use and still end up with a nice result.
> But thankfully the area light method seems to be a good workaround.

I don't see how it's a workaround.


Post a reply to this message

From: IronLogic
Subject: Re: Soft Shadows?
Date: 8 Feb 2015 22:25:00
Message: <web.54d8280515c15fdc57b385d60@news.povray.org>
Zeger Knaepen <zeg### [at] povplacecom> wrote:

> I don't see how it's a workaround.

Well it's not a solution, it's just a convincing substitute for many situations.
For example you could use an array of area lights to sort of fake the soft
shadows for an omni-directional point light, and whilst it won't quite be as
good or behave in quite the right way, it could still be convincing enough for
most purposes.


Post a reply to this message

From: Mike Horvath
Subject: Re: Soft Shadows?
Date: 8 Feb 2015 23:14:49
Message: <54d83439$1@news.povray.org>
On 2/8/2015 7:57 PM, Zeger Knaepen wrote:
>> I didn't mean a physically correct point light, you are right that a
>> 'real'
>> point light won't give soft shadows. I did in fact mean the fake
>> method used by
>> most other render engines when dealing with point lights in 3D
>> software, to give
>> you extra artistic control and ease of use and still end up with a
>> nice result.
>> But thankfully the area light method seems to be a good workaround.
>
> I don't see how it's a workaround.


Workaround for a fluorescent bulb maybe.


Post a reply to this message

From: Zeger Knaepen
Subject: Re: Soft Shadows?
Date: 9 Feb 2015 05:25:31
Message: <54d88b1b$1@news.povray.org>
>> I don't see how it's a workaround.
>
> Well it's not a solution, it's just a convincing substitute for many situations.
> For example you could use an array of area lights to sort of fake the soft
> shadows for an omni-directional point light, and whilst it won't quite be as
> good or behave in quite the right way, it could still be convincing enough for
> most purposes.

I really don't seem to understand what you are talking about. Your 
solution for soft shadows, or what you believe other renderers use, 
sounds exactly the same as a highly inefficient implementation of 
area_lights in POV-Ray.
In POV-Ray light_sources are omni-directional by default, so when you 
make them into area_lights, they too are omni-directional.

Also, area_lights are only workarounds in that they (by default) only 
affect shadows. Add area_illumination, and they also affect shading and 
highlights. In no way are area_lights with area_illumination more a 
workaround than your solution sounds. I would even say it's the other way.


Post a reply to this message

From: Nekar Xenos
Subject: Re: Soft Shadows?
Date: 9 Feb 2015 12:44:06
Message: <op.xtswvpddufxv4h@xena.home>
On Mon, 09 Feb 2015 02:57:50 +0200, Zeger Knaepen  
<zeg### [at] povplacecom> wrote:

>> I didn't mean a physically correct point light, you are right that a  
>> 'real'
>> point light won't give soft shadows. I did in fact mean the fake method  
>> used by
>> most other render engines when dealing with point lights in 3D  
>> software, to give
>> you extra artistic control and ease of use and still end up with a nice  
>> result.
>> But thankfully the area light method seems to be a good workaround.
>
> I don't see how it's a workaround.

He means the more physically correct Pov-Ray method is a workaround for  
the fake scan-line renderer method.

-- 
-Nekar Xenos-


Post a reply to this message

From: Alain
Subject: Re: Soft Shadows?
Date: 9 Feb 2015 18:46:43
Message: <54d946e3@news.povray.org>

> Zeger Knaepen <zeg### [at] povplacecom> wrote:
>
>> I don't see how it's a workaround.
>
> Well it's not a solution, it's just a convincing substitute for many situations.
> For example you could use an array of area lights to sort of fake the soft
> shadows for an omni-directional point light, and whilst it won't quite be as
> good or behave in quite the right way, it could still be convincing enough for
> most purposes.
>
>

In POV-Ray, ALL lights start out as been omnidirectional. Only the 
parallel, spotlight and cylinder options make them directional.

For ALL area_light, adding the orient option make them as been 
effectively spherical. Without that option, they behave as a planar 
light source, much like a light pannel. This makes the soft shadows 
behave identicaly for any directions from the light's location.
This is a much beter, and dramaticaly faster, way of having truely 
omni-directional soft shadows.
The orient option have been there since version 3.6, maybe 3.5.

So, jittering the shadow rays and single light source location IS a 
workaround. Using an area light is NOT a substitute, it's the /real/ thing!

Remember that using adaptive can dramaticaly improve your rendering time 
by detecting when you don't need to sample all the elements of the area 
light's array. The location jittering just can't detect any case when a 
point is totaly illuminated or shadowed. It can't detect if you only 
need to subsample the left side of the array or only it's bottom right.


Alain


Post a reply to this message

<<< Previous 10 Messages Goto Latest 10 Messages Next 2 Messages >>>

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