Hi !
A little question about soft shadow and dynamic shadow.
Here is the thing, I’ve a little map with some static meshes with a world position offset trick (these meshes represent plants and bushes moving with wind). I’d like that these meshes cast dynamic shadows according to the leaves’ move due to the wind (world position offset). But, at the same, there is a big rock/cliff behind the camera which is casting a large shadow on a right of that map and i would like a quite soft shadow on that one.
The problem is :
If I enable CSM shadows, I got great dynamic moving shadows according to the plants moves, but the shadows are too sharp, especially for the one from the big rock.
If I disable CSM and enable Ray-traced dynamic shadow (or even Static shadows with area shadows enabled), I get great progressive soft shadows but the shadows don’t move dynamically for the plants.
Indeed, I saw somewhere in the doc that RTDF shadows can’t handle the world position offset.
But is there a workaround to get both progressive soft shadows and dynamic ones for plants actually ?
For now, I got a workaround like this :
- Turned on RTDF shadows
- Disabled CSM shadows
- Turned all the plants meshes from Static to Stationnary
- Put 200-300 for the “Override Distance Field Self Shadow Bias” of each of those meshes. I need it to get rid of most of the shadow from RTDF and let just the dynamic shadow from Stationary.
=> And voilà ! But… the dynamic shadow quality isn’t really great even if it’s still dynamic.
Strangely, I have CSM disabled and didn’t check “Dynamic Inset Shadow” for those meshes but there are some dynamic shadow even thoug (even after building lights of course). And if I check or not Dynamic Inset Shadow, there is no difference.
I heard it wasn’t the best solution and plus I can’t change the quality of these dynamic shadows.
Is there another workaround for these kind of problem right now ?
Thanks a lot for your help and information.
See you ! Have a good night or day !
PS : I’m using a Skylight, Skysphere and a directional light set to stationnary.
On the left, there are the moving small tree and vine. As you can see, the shadow behind the vine is quite weird as well.
And the character is looking at the spot where there is the soft shadow from the big rock behind.