Archive 17/01/2023.

Setting to remove shadow lines

Lumak

I’m sure this has been discussed, but what is the shadow settings to remove the lines shown in the image? And shouldn’t the default setting be set so that such thing is not shown?

Lumak

Nvm, solved. twenty chars

Alex-Doc

Can you please tell how you solved?

Eugene

Tweaking biases and distances, probably… That’s classic solution.

Bananaft

There is no basic setting that will cover all cases. This shadow acne artifact is very dependent on scene scale, geometry shape, light angle, and ways to fight it will vary too.

slapin

Could you please elaborate? I’d like to know what handles I’m to tweak with stuff like this…

Eugene

Huh, let me recall…

  • Tweak Depth Constant Bias, Depth Slope Bias and Normal Offset parameters of Light component.

  • Make shadow distance smaller or use more cascades;

  • Increase depth buffer precision or resolution;

  • Use back face culling for shadow pass or vice versa.

This usually helps to reduce artifacts (bias artifacts and peter panning)

Lumak

https://discourse.urho3d.io/t/shadow-map-normal-offset-bias/1904

slapin

Thanks so much for the help!