Project

General

Profile

Bug #24995

Terrain flickering

Added by Alexoff almost 5 years ago. Updated over 3 years ago.

Status:
Confirmed
Severity:
Low
Assignee:
-
Category:
Camera
Target version:
-
Start date:
03/05/2020
% Done:

10%

Version:
Platform:
Windows
Expansion:
Core Game
Language:
English (US)
Mod Related:
No
Votes:
Arrow u r green
Arrow d r red

Description

Trere is some annoying terrain texture flickering. I watched it on Kerbin, Mun and Minmus at least. It can happen during low altitude flight or rover moving. Or without any reason.
Here my video with Minmus flickering: https://www.youtube.com/watch?v=6bcHLJe198k
Yes, I have some mods, but I think it's only core game bug. For example, you can see this bug in this video of russian KSP streamer - https://www.youtube.com/watch?v=HvyK8ow6Sdg (5:48-6:10).

History

#1 Updated by Sidney.Christian almost 5 years ago

  • Status changed from New to Confirmed
  • % Done changed from 0 to 10

#3 Updated by Anth12 almost 5 years ago

Yeah saw this from the release of 1.9.0

#4 Updated by blackrack over 4 years ago

Hello, I don't know what is your current progress on this issue, but I have cobbled together a fix for it in my mod scatterer.

It involves modifying the screenSpaceShadows shader:

1) When the ratio of farClipPlane/nearClipPlane is high, I found that precision suffers when reconstrucing position from depth using the ray method, instead I use the inverse projection method which usually has lower precision but in this case is actually better, you can do this by using the shadow subshader tagged "PCF_SOFT_FORCE_INV_PROJECTION_IN_PS".

2) I add a bias to the shadow receiver based on depth, I found that precision is good near the camera but degrades further away, this seems to fix all issues for me.

Here are the lines that matter:
https://github.com/LGhassen/Scatterer/blob/master/scatterer/Shaders/scattererShaders/Assets/Shaders/Shadows/FixedScreenSpaceShadows.shader#L93-L109

https://github.com/LGhassen/Scatterer/blob/master/scatterer/Shaders/scattererShaders/Assets/Shaders/Shadows/FixedScreenSpaceShadows.cginc#L197-L198

Hope this is of use.

#5 Updated by Krazy1 over 4 years ago

I believe this issue is fixed in KSP v1.10. I checked Mun and Minmus where I clearly saw it before and it looks good.

#6 Updated by Alexoff over 4 years ago

Krazy1 wrote:

I believe this issue is fixed in KSP v1.10. I checked Mun and Minmus where I clearly saw it before and it looks good.

Checked this bug last week - it's still in game, nobody fixed it.

#7 Updated by Guard13007 almost 4 years ago

For players stumbling across this, the following has worked for some users:

Launching the game with -force-d3d11

OR

Changing the following settings.cfg lines:

SHADOWS_FLIGHT_PROJECTION = 0
SHADOWS_KSC_PROJECTION = 0
SHADOWS_TRACKING_PROJECTION = 0
SHADOWS_EDITORS_PROJECTION = 0
SHADOWS_MAIN_PROJECTION = 0
SHADOWS_DEFAULT_PROJECTION = 0

To:

SHADOWS_FLIGHT_PROJECTION = 1
SHADOWS_KSC_PROJECTION = 1
SHADOWS_TRACKING_PROJECTION = 1
SHADOWS_EDITORS_PROJECTION = 1
SHADOWS_MAIN_PROJECTION = 1
SHADOWS_DEFAULT_PROJECTION = 1

#8 Updated by [email protected] almost 4 years ago

This should still be fixed. 1.11 have it.

#9 Updated by YarTheBug over 3 years ago

I had terrain/shadow flickering issue pop up in 1.11.2.3077. I was originally running maxed settings in 4k and slowly lowering them to try and resolve it.

Following Guard13007's advice fixed it for me, and I'm slowly increasing settings without issue so far.

Thanks!

Also available in: Atom PDF