Jump to content

Recommended Posts

Posted

We'd like some user input into the effects of the following [Display] INI settings that affect shadows (all eslse being equal!):

Default SkyrimPrefs.ini settings (vanilla presets):
iBlurDeferredShadowMask = 3    ;higher values 'blur' shadows and decrease resolution, but also decreases edge pixellation ... ideally, this should remainl rather low, but who knows for sure?
fShadowLODStartFade = 200.0000
bShadowMaskZPrepass = 0

bDrawShadows = 1

bDeferredShadows = 1
fShadowBiasScale = 0.1500
iShadowMapResolution = 1024

iShadowFilter = 3
iShadowMode = 3


Problem: Skyrim shadows are bad, even on the default 'Ultra' settings. Outdoor sjadows have pixellated edjecs, so they appear as shadows of "Lego versions" of the actual ojects. There are limited known ways of enhancing shadows, especially outdoors. fShadowDistance also impacts outdoor shadow quality in that smaller values drastically improve shadow resolution, but also decrease the rendered shadow distance ... but edjes are clocky no matter what.

Objective: Maximize shadow draw distance, resolution and edge smoothness ALL AT ONCE if possible.



Testing conditions:

Please establish the default INIs using the STEP-recommended Skyrim Launcher setup and the following INI adjustments. No other custom modifications to the base config please (it does not matter if you have mods installed or not as long as they are not altering the vanilla configuration files):

bTreesReceiveShadows = 1
bDrawLandShadows = 1
fShadowDistance = 8000.0000 ;this is the 'ultra' value, 'high' is 4000.0000


Please only mess with the default INI settings indicated above and nothing else in the game or otherwise (monitor res, gamma, brightness, contrast, etc). The goal is to try and define settings that actually have a positive impact towards obtaining the Objective and to identify shadow settings that simply don't need to be messed with (have no impact or have a high performance impact).


Thanks for helping out!


Below is a recommendation based on testing for Skyrim shadows:

 

Vanilla shadow users:

 

SkyrimPrefs.ini

[Display]
bDeferredShadows=1
bShadowMaskZPrepass=0
fInteriorShadowDistance=4000.0000
fShadowBiasScale=1
fShadowDistance=4000.0000
;May increase fShadowDistance to higher values
iBlurDeferredShadowMask=4
iShadowFilter=3
iShadowMapResolution=2048
;set iShadowMapResolution to 1024 (medium), 2048 (high), or 4096 (ultra) depending on the preset the Launcher assigned to you

ENB shadow users:

 

SkyrimPrefs.ini

[Display]
bDeferredShadows=1
bShadowMaskZPrepass=0
fInteriorShadowDistance=4000
fShadowBiasScale=0.4
;Somewhere between 0.4 and 1.0 is best for fShadowBiasScale
fShadowDistance=4000
;May increase fShadowDistance to higher values
iBlurDeferredShadowMask=1
;Setting iBlurDeferredShadowMask to 0 will cause buggy ENB shadows. This may be increased at user discretion.
iShadowFilter=3
iShadowMapResolution=2048
;set iShadowMapResolution to 1024 (medium), 2048 (high), or 4096 (ultra) depending on the preset the Launcher assigned to you
Posted

As far as I know the shadow quality of Skyrim will degrade with larger draw distance. That is because the Skyrim engine renders one big shadow for the whole scene. If it is larger with the same resolution the quality will be lower.

 

Another point is that some .ini settings regarding shadows look odd with certain ENB configs. Opethfeldt's ENB for example looks best at iBlurDeferredShadowMask=3 while a setting of 4 helped with my vanilla shadows. I'm sorry that I cannot make comparison shots to back up my claims atm because I sold my GPU and am still waiting for a new one.

  • 2 weeks later...
Posted

I found that these settings gave me the best shadows' appearance:

iBlurDeferredShadowMask=5
fInteriorShadowDistance=2500.0000
fShadowDistance=2500.0000
iShadowMapResolutionSecondary=4096
iShadowMapResolutionPrimary=4096
iShadowSplitCount=2
iShadowFilter=4
iShadowMode=4
iShadowMapResolution=4096
fShadowBiasScale=0.1500
iShadowMaskQuarter=4

Edit:

Screenshots:

 

Without Enb:

Posted Image

 

Posted Image

 

Posted Image

 

With Enb (Bleak Enb):

 

Posted Image

 

Posted Image

Posted

There seems to be someone one the nexus who already had an indepth look into this. He made 9 presets for different hardware and different fov.

Low:

https://www.nexusmods.com/skyrim/mods/19632/?

Medium:

https://www.nexusmods.com/skyrim/mods/283/?

Ultra:

https://www.nexusmods.com/skyrim/mods/7638/?

 

His video about LOD shadow issues (seems to be FOV dependent):

 

Since ENB boost is very desirable anyway and there is a shadow fix ENB boost version out there, wouldn't it be best to use that instead of ini tweaking?

https://www.nexusmods.com/skyrim/mods/50244

  • +1 1
  • 2 weeks later...
Posted

I tried making changes one at a time leaving all others at the default as defined in the OP. The differences are very, very small.

 

There are now a bunch of photos, the settings are in the name and I uploaded a 7zip here:

https://www.mediafire.com/download/upzjiuhrr43tcn7/shadows_1_change_at_a_time.7z

2 pictures of each setting: one picture of bush shadows & one of a rock with vertical lines. Curious about that, what is it?

 

I'm not sure how you want to test performance differences. Top of the steps at Whiterun? stay there for a minute? or run down to the gate?

  • 3 months later...
Posted

On a small side note for ENB users, the only two shadow quality settings (meaning strictly quality, not view distance or sunupdate) to play with are shadow map resolution and iBlurDeferredShadowMask. On a r9 290 @1440p amd 8k shadow distance, 2k shadow map resolution and iBlurDeferredShadowMask=5 were the perfect settings for me. 1k shadow map resolution got me ~1 fps and a perceivable quality loss while 4k cost me ~4-5 FPS with almost no gain leaving iBlurDeferredShadowMask the only setting to really play with. Sadly I cannot provide comparison shots atm but I prefer a value of 5 as a good mix of sharpness and hiding some edge imperfections.

  • +1 1
Posted

I have discovered how to fix the aura/glow around player, npc and object in front of a shadow.

 

I have published a guide here:

https://www.nexusmods.com/skyrim/mods/54335/?

 

Basically you use whatever shadow settings you like for performance, quality and draw distance.

 

But do this to remove the aura/glow:

 

1. In skyrimprefs.ini

iBlurDeferredShadowMask=1iMultiSample=0bFXAAEnabled=0bTransparencyMultisampling=0bDeferredShadows=1

 

2. Use ENB with enblocal.ini settings:

UsePatchSpeedhackWithoutGraphics=false

EnableEdgeAA=trueEnableTemporalAA=falseEnableSubPixelAA=trueEnableTransparencyAA=true

 

3. Use enbseries.ini settings to adjust ShadowBlurRange to your liking. Dont change iBlurDeferredShadowMask anymore.

 

4. It is compatible with injectSMAA so you can use that too.

 

This will result in the aura/glow being removed, but also no issues with a one-pixel white edge or blocky shadows.

 

If you set iBlurDeferredShadowMask=0 you can also remove the aura, but it isnt a real solution because shadows will be blocky (edges not blurred at all). And also the ENB blurring effects wont work nicely. My fix avoids those problems.

Posted (edited)
  On 5/28/2014 at 9:42 AM, Garfink said:

Does the aura/glow changes alter performance in anyway?

Performance wont be made any worse or better by the fix. Normal shadow performance rules still apply (draw distance, shadow resolution, enabling/disabling certain types of shadows), but none of those will have any effect on the aura.

 

ENB antialising is superior to the game's own or driver-forced AA, as far as performance is concerned anyway. So if anything itll improve performance because of that. Using only ENB AA (and only improving it beyond that with injectSMAA) is essential to the fix so that the remaining 1-pixel aura is removed.

Edited by zyg0tic
Posted
  On 5/28/2014 at 2:38 PM, zyg0tic said:

Performance wont be made any worse or better by the fix. Normal shadow performance rules still apply (draw distance, shadow resolution, enabling/disabling certain types of shadows), but none of those will have any effect on the aura.

 

ENB antialising is superior to the game's own or driver-forced AA, as far as performance is concerned anyway. So if anything itll improve performance because of that. Using only ENB AA (and only improving it beyond that with injectSMAA) is essential to the fix so that the remaining 1-pixel aura is removed.

The ENB AA for transparency is not performance friendly at all. The other three AA types in ENB are very performance friendly, but EdgeAA can cause blurriness and Temporal can cause ghosting. I'd stick with driver forced SGSSAA (Nivdia only I believe) and play with that. Also, look at the woven fences with ENB AA and there is so much noise in them. Only, MSAA and SSAA seem to a good job fixing that.

Posted (edited)

I found that only the ENB AA settings were the only ones that removed the 1-pixel edge. That is why I said not to use driver-forced AA. If a different form of AA could be found which does the same thing then Id happily change my recommendation, but Ive not yet tested enough options. Disabling ENB's AA and using only injectSMAA might work.

 

UPDATE: I have discovered that the only thing that causes a 1-pixel edge (like a hard glow) is the game's own AA. I tried multiple combinations of other AA types (injectSMAA, all the ENB options, driver-forced transparecy AA) and none of them gave the 1-pixel white edge except iMultiSample (game's own AA).

 

So given that discovery, I can now rethink my fix. I will recommend only the bare essentials necessary for to remove all traces of the glow - additional tweaks unrelated to the essential fix will be labelled as such.

Edited by zyg0tic
Posted (edited)

Hi STEP.  A lil late but wanted to share...
 
Here are some Answers copied from Geforce.com/Guides for the Highlighted Green Default Shadow Variables z929669 posted.  I hope this isn't TMI.  If it is, Admins Please Delete it.
 
NOTE: I agree with these Answers but NOT the Tweaks:

  Reveal hidden contents


 
 
My Successful Tweak for the Ground Shadow Lines Close to/In front of player: =uTube vid of Shadow Line.
 
STEP Z-Fighting fix= fNearDistance=20.0000-25.0000 (mine is=17.0000).  Which has also fixed my Shadow Line problem. With fNearDistance=19.0000 set, the Shadow Ground Lines that run Horizontal in front of the player disappear.  I am still trying to find the sweet spot with SkyReaLism ENB and the Shadow tweaks in the Skyrim.ini/prefs.ini.  fNearDistance=19 clips at walls (corner of screen) but fNearDistance=20+ Clips ¼ of the screen at Walls.  I had fNearDistance=18.0000 set but shadow lines were present, though I didn't have clipping next to walls/objects.
 
I thought it may have to do with my FieldOfView=70 that fNeardistance=19 got rid of the lines.
fShadowBiasScale=.2500-.6000 is the fix I found googling, but after trying different variables with no change, I changed fNearDistance=19.0000 and lines were gone.
 
 
Display sections for Skyrim/Prefs.ini : Only the Shadow Variables :

  Reveal hidden contents


My shadows are coming along quite nicely :D

Edited by AyleidRuin

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Guidelines, Privacy Policy, and Terms of Use.