How to improve the Shadow resolution with Dynamic Lighting?

Hi Espii,

If you’re using Distance Fields Shadows the shadow resolution for the generated distance field mesh will depend on the resolution of the said distance field mesh. By default these use a resolution of 1, which for some meshes with more complex geometry can cause issues like you’re seeing.

Here is a sample image of a test asset with more rounded geometry:

To increase the resolution you can open the Static Mesh in its Static Mesh Editor and then in the details panel on the right you will see the Build Settings. You’ll want to adjust the Distance Field Resolution setting. Only adjust it incrementally (ie. 1, 2, 3, etc) so that you only use the maximum resolution that gives you the best results, otherwise it’s overkill and a wait of volume texture memory.

Keep in mind that this may not work for every type of mesh. It’s better to use a combination of both Cascaded Shadows (default dynamic shadowing method) and Distance Field Shadows.

You can keep a low distance, like 500 (5m) or 1000 (10m) to keep nice shadows up close and use the distance fields for further out shadows. The method was used in the Kite World Demo that Epic released back in March.

I hope this has helped.

Tim

1 Like