Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

How to improve dynamic shadow resolution and distance?

Hello, so basically I'm trying to port my RTS project from Unity Pro to UE4, and I have noticed one thing: the shadow (that comes from a moveable directional light) has a really poor quality from above (~16 meters), and after ~32meters (I guess?) it starts to fade away. So I searched around if there's a way to improve that and didn't find anything useful. Is there a way to improve that distance and quality?

Product Version: Not Selected
more ▼

asked Sep 29 '14 at 10:40 AM in Rendering

avatar image

13 1 2 2

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

The main parts of a shadow's quality are set through the scalability of your project. So first of all, are you using the Epic settings?

There is a file in the Engines Config folder called BaseScalability which holds some information about shadow quality based on the scalability you have chosen. You will find things like r.ShadowQuality=2, r.Shadow.MaxResolution=1024 and r.Shadow.RadiusThreshold=0.03 useful to try and change. I have found changing the Radius threshhold to a lower number makes the shadows stay on screen for a longer distance to camera.

You can open the console command at run time and try these commands (r.shadow.somethinghere) with different values to see if they have any effect. Once you have a good setting for your shadows, you can change the base scalability config file so that you don't have to do it each time you run the game.

more ▼

answered Sep 29 '14 at 10:49 AM

avatar image

1.9k 53 40 200

avatar image Time2Die Sep 29 '14 at 11:53 AM

Thanks! Also I've tried to change Dynamic Shadow Distance to 4096 and Cascade Distribution Exponent to 1 in Directional Light Properties/Details and it looks much better now with r.Shadow.MaxResolution=2048.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question