Is this working Distance Field Shadow?

I wanted to blur shadows based on distance, so I searched Distance Field Shadow. And I tried it.
But I got a different result than what I searched for.
I made a very tall structure and looked at the shadow at the tip and it was very sharp.


I checked some settings.
-cascade distance is zero
-using Lumen and Virtual Shadow Maps
-DirectX 12

But result is like this. am I missing some setting? or is this normal and I misunderstanding the functionality?

So, to try to offer some clarification if I can:

  1. Distance field shadows, virtual shadow maps, and Cascaded shadow maps (which use the cascade distance setting) are all competing shadowing methods, and no light can have more than one enabled at a time (that is technically untrue, but it’s complicated). They don’t determine directly how soft a shadow is, just which method is used to render it (which granted, can determine how good the soft shadows look).

  2. Lumen is only for indirect lighting and will not affect direct shadowing at all.

  3. If by shadows blurring in the distance I’m assuming you’re talking about shadows undergoing contact hardening like they do in the real world (with a variable penumbra), then you control that by adjusting the source radius of the light itself. A light that is a perfect point will have perfectly sharp shadows for optical reasons, a light that is an area will have more diffuse shadows.

  4. Like I said before, different shadowing methods can create soft shadows better or worse: Hardware RT shadows are the best able to support soft shadowing, followed by distance field shadows, virtual shadow maps, and finally cascaded shadowmaps. You basically need some kind of ray-tracing to do good soft shadows.

Last time I tried, I think it was UE 5.2, raytrace shadows were doing very nice soft shadows and contact hardening, but they were having errors with foliage. I think they used the low poly version and ignore the nanite version of foliage. And I think I also read here about raytrace shadows ignoring foliage animation ?

Can raytrace shadows replace virtual shadows maps ? Or do they still have all these limitations, even in UE 5.4 ?

RT shadows can handle animated foliage as long as you tell the lights to evaluate world position offset, and enable raytracing.nanite.mode 1

This answer gave me more information than Google !
Thank you. I’ll try various things.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.