Project

General

Profile

Bug #24995

Terrain flickering

Added by Alexoff 8 months ago. Updated 4 months 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 8 months ago

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

#3 Updated by Anth12 8 months ago

Yeah saw this from the release of 1.9.0

#4 Updated by blackrack 6 months 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 4 months 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 4 months 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.

Also available in: Atom PDF