Page 1 of 1

[posila] [0.17.9] Total dithering of ground textures

Posted: Sat Mar 09, 2019 7:26 pm
by DragonMaus
What I did:
Launched a new game.
What happened:
The ground textures (including water) are completely dithered out, such that I cannot discern any details. Placed entities (trees, rocks, cliffs, ore) seem to render normally.
What I expected:
I should be able to see the ground.

How often does this happen?
In version 0.17.9 (perhaps? I went from 0.17.5 to 0.17.9, so I do not know if intervening versions had this issue) this happens 100% of the time.

Addendum:
I have tried many different combinations of graphics settings, including everything in the common graphics issues thread; nothing has even the slightest effect on this issue.

Screenshot:
Image

Re: [0.17.9] Total dithering of ground textures

Posted: Sat Mar 09, 2019 7:27 pm
by posila
Hello, please post your log.
On Windows, press Win + R, type in %APPDATA%\Factorio and click OK. File Explorer should open and you should see file called factorio-current.log. If you use macOS or Linux, see paths where to find the logs: https://wiki.factorio.com/Application_d ... _directory
DragonMaus wrote:
Sat Mar 09, 2019 7:26 pm
In version 0.17.9 (perhaps? I went from 0.17.5 to 0.17.9, so I do not know if intervening versions had this issue) this happens 100% of the time.
Does this mean it didn't happen in 0.17.5?

Re: [0.17.9] Total dithering of ground textures

Posted: Sat Mar 09, 2019 7:30 pm
by DragonMaus
Sorry about that; I hit "Submit" before I remembered to attach the log file.

That is correct; this issue was not present in 0.17.5.

Re: [0.17.9] Total dithering of ground textures

Posted: Sat Mar 09, 2019 7:34 pm
by posila
DragonMaus wrote:
Sat Mar 09, 2019 7:30 pm
That is correct; this issue was not present in 0.17.5.
Can you try to enable "Full color depth" in graphics setting and see if the problem persists?

Edit: in game, press F3, debug window with sprite atlases will show ... Atlas 5 to 7 should contain tiles; do they look fine in the debug window?

Re: [0.17.9] Total dithering of ground textures

Posted: Sat Mar 09, 2019 7:38 pm
by DragonMaus
Yes, the issue still persists. I also tried enabling force-opengl at the same time, but that did not help either.

Re: [0.17.9] Total dithering of ground textures

Posted: Sat Mar 09, 2019 7:39 pm
by posila
In game, press F3, debug window with sprite atlases will show ... Atlas 5 to 7 should contain tiles; do they look fine in the debug window? (pressing F3 again will close the debug window)
DragonMaus wrote:
Sat Mar 09, 2019 7:38 pm
Yes, the issue still persists. I also tried enabling force-opengl at the same time, but that did not help either.
On Linux we have just OpenGL renderer, so force-* won't do anything different.

Re: [0.17.9] Total dithering of ground textures

Posted: Sat Mar 09, 2019 7:49 pm
by DragonMaus
Most of the sprites on those pages look good, but there are some that match the observed effect, as well as a couple of possible small artifacts in atlas 7.
I uploaded an album here.

Is it possible I got a corrupted download? I used the full download from https://www.factorio.com/, as 0.17.5 did not yet have the fixed updater.

Re: [0.17.9] Total dithering of ground textures

Posted: Sat Mar 09, 2019 8:34 pm
by posila
Thanks for all the additional info.
I don't think it is corrupted download. In 0.17.7, I have changed tile rendering quite a bit to fix 65628; it seems your graphics driver doesn't like the new way. Sprites in atlases look fine, the noisy part of atlases are just unused space.
I am not sure if the new shader doesn't work at all on your PC, or it produces this garbage data.

If you start map editor, is the terrain same or is it gray?

Can you edit Factorio's config.ini and change line

Code: Select all

; debug-api=false
to

Code: Select all

debug-api=true
it is important to remove also ';' at the start of the line; then start new game and send me the new log, please.

Re: [0.17.9] Total dithering of ground textures

Posted: Sat Mar 09, 2019 8:43 pm
by DragonMaus
Strangely, now the ground is just a uniform grey, in both the map editor and normal play modes.

Edit: debug-api did not seem to add much to the logs; did I enable it correctly? I set it to true and removed the comment character:

Code: Select all

--- config.ini-	2019-03-09 14:40:20.341668359 -0500
+++ config.ini	2019-03-09 15:38:23.815048611 -0500
@@ -1063,7 +1063,7 @@
 full-color-depth=false
 
 ; Options: true, false
-; debug-api=false
+debug-api=true
 
 ; Options: all, high, medium, low
 video-memory-usage=low
 

Re: [0.17.9] Total dithering of ground textures

Posted: Sat Mar 09, 2019 9:02 pm
by posila
Yeah, you did. It enables OpenGL's debug mode (KHR_debug extension), which should enable extra checking inside of OpenGL and output extra warnings and errors. I hoped it would say that something is not right, but I am not surprised it didn't.

Editor clears terrain render targets to gray (because in editor it is possible to see area without generated tiles), while game normally doesn't clear them. What you observed means that the tile shader either doesn't output anything at all, or it outputs fully transparent pixels. I'll think about why that could be.

Re: [posila] [0.17.9] Total dithering of ground textures

Posted: Mon Mar 11, 2019 10:53 pm
by DragonMaus
It looks like the problem is resolved in 0.17.11. Thank you for your assistance!

Re: [posila] [0.17.9] Total dithering of ground textures

Posted: Mon Mar 11, 2019 10:56 pm
by posila
but ... but ... but I didn't do anything that would fix it :-o

Re: [posila] [0.17.9] Total dithering of ground textures

Posted: Mon Mar 11, 2019 11:20 pm
by DragonMaus
Heh. I am well familiar with that phenomenon. "I touched literally no code that could possibly affect that, why is it working now‽"

Re: [posila] [0.17.9] Total dithering of ground textures

Posted: Tue Mar 12, 2019 3:20 pm
by posila
Well, I am happy this works for you now, I'll attribute it to some kind of shader cache in drivers (even though that doesn't really make sense).