As these pic,some of those foliage plants got the correct shadow,but most of them didn’t.And as we see,some of those plants did have correct AO and selfShadow,but most of them didn’t.The type of these plants are the same.So how can I fix it?How can I got the correct shadow for all of these foliage?
I am using dynamic lighting.
Yes,but just part of their shadow could show when the camera close enough.Others must change the view angle,from the back side could show the shadow and self shadow.
I will try to use different mesh,but I’m using almost the same mesh,most of the bushes and trees are the same.
Are you using static or dynamic lighting?
Do they show shadows when you get a bit closer? ( It’s hard to tell your distance ).
Try different meshes.
Have you tweaked the directional light at all? Default values are pretty good.
You have to increase the distance field shadow amount:
Never Mind,I found the solution,is the commond line:r.RayTracing.Geometry.InstancedStaticMeshes.Culling 0
Now I could see shadows from any distance.
When I check the option"cast shadow as two side",the shadow shows correctly.But I found shadow disappear when the camera far away from my foliage,I just want the shadow shows when the camera far away from the foliage,So how can I do it?
I tried Cascaded shadow for several times,it’s no change in my case.So I just turn off the cull of rayTracing
Hi Mei. I have same issue once. CSM and DFAO seem like not working at raytracing shadows So if you want to enable CSM and DFAO (start to work) you need to turn off “cast raytracing shadows” of directional light. Hope that help:)