Spotlight shadow-caster culling control
I have a setup with a car that has two spotlights for headlights. They're dynamic lights.
Staticmesh objects that get in front of the car cast shadows fine so long as the camera is close to the mesh. When the camera gets further away from the static mesh, the mesh won't cast shadows any longer. The distance the camera can get before the object stops casting depends on the size of the static mesh -- larger static meshes allow a further distance. So it's a function of object size and camera distance, but the field of view isn't taken into account and so lower FOV (around 40) will give lots of shadow popping.
Skeletal meshes always appear to cast shadows, as far as I can tell - regardless of the scale on screen.
I'm looking hopefully for a setting where I can set the distance the camera can get from an object (or more likely the size an object can be on the screen) before its shadow disappears. The min screen radius setting in Project Settings only applies to cascaded shadows, which aren't used for spotlights.
If there's no setting, is this a bug? It seems to me it should take the camera FOV into account.
asked Nov 06 '14 at 05:54 AM in Rendering
Hey kurtrussellfanclub -
Currently you have reached a limitation to the engine, but I have entered a request for our engineers to look at implementing possible solutions to this issue. I am assuming that your car is mobile and controlled in game. If it is static and not moving then you can use the new Distance Field Ray Traced Shadows to achieve the look you want with a Stationary Light, but lose the ability to move the light itself.
I will keep you informed as we investigate this issue further
answered Nov 07 '14 at 05:13 PM
Lovecraft_K ♦♦ STAFF
Follow this question
Once you sign in you will be able to subscribe for any updates here