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)

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

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:


iShadowMapResolution=4096 - This variable in SkyrimPrefs.ini directly controls shadow resolution and hence is the Major determinant of shadow quality in the game. It is part of the Shadow Detail in-game setting. At Shadow Detail Low iShadowMapResolution is set to 512; at Medium =1024; at High =2048; and =4096 at Ultra. A higher value of 8192 is possible for shadow resolution, which will improve shadows slightly, but will also reduce FPS substantially   =3072 a few suggest without any performance loss.
 
iShadowMaskQuarter=4 - This variable in SkyrimPrefs.ini also has an impact on the clarity shadows. If raised to higher values such as 10, it improves the crispness of shadows.
 
iBlurDeferredShadowMask=3 - This variable in SkyrimPrefs.ini controls the blurring effect applied to shadows. Lower values will sharpen shadows, and at 0 the blur effect on shadows is completely disabled, providing the sharpest shadows. Higher values will progressively soften the shadows until they become almost shapeless
 
fShadowDistance=8000 - This variable in SkyrimPrefs.ini has a significant impact on shadow quality in outdoor areas. It controls the distance at which shadows are visible, however due to the way the engine works, it also determines the overall level of detail of shadows in the game world. Lowering the value of this variable will improve shadow resolution, but will also remove shadows from more distant objects, which improves performance significantly. If set to 0, outdoor shadows are completely disabled. =4000 works for me.
 
fInteriorShadowDistance=3000.0000 - This variable in SkyrimPrefs.ini controls interior shadows. However lowering this value simply results in more areas of an interior being covered by shadow, rather than any noticeable improvement in shadow resolution. Increasing the value also seems to have little practical impact. In indoor locations, shadows are always sharper when closer to a light source than when further away from it regardless of this setting. Only raising the iShadowMapResolution variable can improve both exterior and interior shadows.  =2000 works for me.
 
fShadowBiasScale=0.1500 - This variable in SkyrimPrefs.ini determines the degree to which a surface is shadowed, possibly by altering the angle an object needs to be relative to a light source to cast a shadow. In practice, higher values will reduce the amount of shadowing, while lower values will increase the shadowing on various surfaces.  =.2500-.3000 stop Shadows Pop-In.  (at least for me)
 
END of GeForce Guide/Answers.  The Following is what I found google'n:
 
iShadowSplitCount=2 = 1. How many times shadows are split. ie how many shadows one object can cast. OR  2. might be the number of cascades a shadow projects.
...splitcount=2 seems the way to go.  I have tried 4 but saw no dif.  ?Maybe Shadows cast from more than two light sources will produce shadows in different directions?
 
fShadowLODStartFade: This variable controls the distance at which shadows fade out. However because there are virtually no shadows aside from those cast by characters in Fallout 3, there is no noticeable performance or visual impact from lowering this slider. In fact even at the lowest level on the slider, and at the longest zoom possible for third person view, you will still see your own shadow cast on the ground for example.   = Taken from TweakGuides/Fallout3
 
bShadowMaskZPrepass = 0  Anything above 3 will produce Noise. Quote from Defosh369 "From testing, I can tell that this will help with achieving slightly better shadow quality at minimal performance hit, due to shadows (especially moving ones) being "updated" quicker. This effect can give you an illusion that all the moving shadows are more complex than normal. This is a small improvement, that helps with removing slowly updating shadows (most noticeable on characters, when a character move, shadows like to "stay" in place for a half of a second or so)."


 
 
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 :


skyrim.ini
fShadowLODMaxStartFade=1000.0
fSpecularLODMaxStartFade=2000.0
fLightLODMaxStartFade=3000.0
iShadowMapResolutionPrimary=2048
fNearDistance=19.0000
fDefaultWorldFOV=70
fDefault1stPersonFOV=70
SkyrimPrefs.ini
iBlurDeferredShadowMask=4
fInteriorShadowDistance=2000.0000
fShadowDistance=3000.0000
iShadowMapResolutionSecondary=2048
iShadowMapResolutionPrimary=2048
iShadowSplitCount=2
fShadowLODStartFade=300.0000
iShadowMode=3
bTreesReceiveShadows=1
bDrawLandShadows=1
bFloatPointRenderTarget=1
iShadowMapResolution=2048
fShadowBiasScale=0.3000
iShadowMaskQuarter=2
iShadowFilter=4
bShadowsOnGrass=1
bDeferredShadows=0
bDrawShadows=1


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.