How to increase shadow distance view

How can I increase the distance before the shadows aren’t showed anymore? Right now this is the distance:

I want to increase it even more as I have some scenes where the camera will be like this, top down from a bit far away, but I still want the shadows to appear.

Because general hardware isn’t quite there yet to support lumen on mid range GPU’s, I’ll focus more with it disabled, and maybe add support for it later (but even with Lumen enabled, the shadows disappear at the same distance), but I am using Nanites. That being said this is what I use right now:

  • Dynamic Global Illumination Method: None
  • Reflection Method: Screen Space
  • Shadow Map Method: Virtual Shadow Maps

In the world I also have:

  • Exponential Height Fog
  • Post Process Volume (Infinite Extend (Unbound): Enabled)
  • Sky Atmosphere
  • Sky Light

For lighting I’m using Directional Light:

  • Mobility: Movable

I’ve seen somewhere a suggestion to change the value of Dynamic Shadow Distance Movable Light, and I tried it, but it doesn’t seem to make any difference. I’ve set it to 0 as well as a huge number. The shadows didn’t showed, neither did those on screen disappear. Maybe this is what I should change but before doing that I need to set something else also?

Any help is appreciated.

//Edit Solution:

For my case this worked, but as a note, as of this posting this doesn’t work for meshed that use nanites.

3 Likes

See the first part of this post

1 Like

I tried this and it worked in the scenario I showed, thank you! I’ll try the other commands to see what they also change, maybe I’ll like the effect they produce.

Am I correct in thinking that this command affect how big the character has to be on the screen for it’s shadow to appear?

Also, while this does work on characters (which as of now in the engine don’t have nanites) and on foliage without nanites enabled, it doesn’t work on foliage with nanites enabled. I have a tree from Megascans and I made two copies of the mesh. In one I enabled nanites and in the other they are disabled and use the normal LODs. Now on the level for the one without nanites the shadow distance is controlled with that command, but the one that has nanites enabled isn’t affected by it. Is there a new command for nanites as well, or being in beta state there isn’t one just yet?

I think the problem is, you basically can’t have shadows to infinity, otherwise your PC would explode :slight_smile:

Almost everyone fakes this kind of thing is some way. How, depends on what you’re goal is.

Yeah, shadows/lighting are a big thing, and the new tech instead of making them cost less, in general it makes them look prettier (lumen / RT) but also at a way bigger cost.

For now I should be fine as the top down camera isn’t for player gameplay action, only for showing something in rare cases, I just wanted to know of a way for the future in case I would need it.

1 Like

For really long distances only “DistanceField Shadow DIstance” helps