weird shadow artifacts

hi there, got this nasty shadows issue on my archviz scene (displaced mesh). i tried fixing it with r.raytracing.shadows.enabletwosidedgeometry 0 but that doesn’t fix the issue. anyone got an idea how it can be fixed?

Cheers, Philip

@ClockworkOcean u got an idea what’s going on?

I’m assuming you mean the interference here

image

The pattern is just too fine in the distance, you’re getting a moiré effect.

The way to avoid it, is to code the material so it has two UV values. One for nearby, and one for distance. You fade between them based on camera distance.

I can’t find a tuut on it right now, but it’s just basically using this into a lerp

image

You probably only need to fade the normal, or perhaps the albedo. If it’s the normal, rather than changing the UV, just flatten it.

Hi @ClockworkOcean ,

i mean that there are shadows where there shouldn’t be shadows.

as you see in the image below, even though the sun is directly hitting the mesh, some “shadows” don’t fade away.

can i solve this by using the explanation u used in the post above this one, or is it a different problem?

Cheers :smiley:

@ClockworkOcean

same goes for these nanite trees

r.raytracing.shadows.enabletwosidedgeometry 0 doesn’t work

For the trees, did you try all of these?

Do you mean here?

image

Could just be the albedo.