Hello! I have 2 questions.
- I have one directional stationary light with cascaded shadow map. I need make for some objects always cast static shadows.
- How to make object always cast dynamic shadows without distance.
Please help me. Sorry for my English
I don’t really understand your questions.
Sorry) 1) How to make Static Mesh always cast static shadows. If my camera is near shadows they become dynamic. If in setting i off cast dynamic shadows, they become invisible.
2) If my camera is too fare dynamic shadows disappear. I what that my dynamic shadows always can be visible regardless of distance shadow cascade.
You can change the shadow parameters for objects in the details panel to affect how they receive and cast shadows.
There is a limited distance on how far and accurate dynamic shadows will cast. This is for performance reasons. Everything in the level cannot be dynamically lit at any distance all the time. You can set the max distance though which is 20,000.
This is also where stationary lights come in as a good balance between the two. Static shadows can be seen from any distance since they are baked into a lightmap. You can see the max dynamic distance and then as you get further away the static shadow will take over.
“1) You can change the shadow parameters for objects in the details panel to affect how they receive and cast shadows.”
Yes, all static meshes have two settings 1) cast static shadows 2) cast dynamic shadows. When i uncheck cast dynamic shadows and when my camera near the SM, it’s not cast any shadows. It’s cast shadows when distance more then in cascaded shadow map. How to repair this?
Thank you for help!
I’ve just tested this based on your comment, but was unable to get the same results. All you may need to do is just hit “Build” to rebuild your lighting. This was all I needed to do. Give that a shot and let me know how it goes.