Hi,
I’ve got problem with flickering shadows. It’s only when foliage is visible. I tried disable Base Pass Velocity in Project settings but it doesnt work.
I used only directional light.
Hi,
I’ve got problem with flickering shadows. It’s only when foliage is visible. I tried disable Base Pass Velocity in Project settings but it doesnt work.
I used only directional light.
If you are using virtual shadow maps try changing:
r.Shadow.Virtual.ResolutionLodBiasDirectional
To a larger value. So if its set to -1.5 set it to -0.5 or 0
You might also want to deactivate cast shadow and or reduce detail on the far away lods.
So…
I checked virtual shadow map and values with minus don’t change anything, but between 0 and 20 do. 20 disable all shadows, but it’s not the solution. Everything between 0 and 20 doesnt fix flickering. I tried r.forceLOD 0 and foliage.forceLOD 0… but still there are flickering shadows.
But there is something more what I discovered. In foliage I disable only for grass Cast Dynamic Shadows… and everything looks good, without that annoying flickering.
I need that dynamic shadows for animation, but looks like this is the problem. Any idea what can I do to fix it ?
Dont force LOD0. Lod 0 means no forced LOD at all. You have to much shadow casting detail in your scene. Try more aggressive LODs. Try culling your grass and trees in the distance. If its for a cinematic try removing everything thats not visible.
Btw did you try:
r.Shadow.Virtual.ResolutionLodBiasDirectional -0.5
For consideration.
A while back both skylight and directional light had the ability to cast shadows added which can be in conflict with one another depending on their settings. One that I’ve come across is when on is set to dynamic (movable) and the other is set to static which in my experience could cause overdraw issues as the two Z fight over which should redraw first.
If you are using both then consider turning off cast shadows on the sky light as it’s not required if the directional light is casting a shadow
How to culling grass and trees in the distance ? Im still newbie.
And I tried r.Shadow.Virtual.ResolutionLodBiasDirectional -0.5 and still the same, it doesnt work.
I tried change light and sky settings from static to movable and disable cast shadows for sky light but it doesnt work. It looks like one kind of grass making that flickering. Cast dynamic shadows for that models exactly. What is intresting- models of grass are from Quixel, and only one “family” have problem.