[posila] [0.17.9] Total dithering of ground textures

Place for things which are bugs but we have no idea how to solve them. Things related to hardware, libraries, strange setups, etc.
Post Reply
User avatar
DragonMaus
Burner Inserter
Burner Inserter
Posts: 13
Joined: Tue May 27, 2014 5:32 pm
Contact:

[posila] [0.17.9] Total dithering of ground textures

Post 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
Attachments
factorio-current.log
(4.28 KiB) Downloaded 109 times
Last edited by DragonMaus on Sat Mar 09, 2019 7:29 pm, edited 1 time in total.

posila
Factorio Staff
Factorio Staff
Posts: 5202
Joined: Thu Jun 11, 2015 1:35 pm
Contact:

Re: [0.17.9] Total dithering of ground textures

Post 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?

User avatar
DragonMaus
Burner Inserter
Burner Inserter
Posts: 13
Joined: Tue May 27, 2014 5:32 pm
Contact:

Re: [0.17.9] Total dithering of ground textures

Post 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.

posila
Factorio Staff
Factorio Staff
Posts: 5202
Joined: Thu Jun 11, 2015 1:35 pm
Contact:

Re: [0.17.9] Total dithering of ground textures

Post 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?

User avatar
DragonMaus
Burner Inserter
Burner Inserter
Posts: 13
Joined: Tue May 27, 2014 5:32 pm
Contact:

Re: [0.17.9] Total dithering of ground textures

Post by DragonMaus »

Yes, the issue still persists. I also tried enabling force-opengl at the same time, but that did not help either.

posila
Factorio Staff
Factorio Staff
Posts: 5202
Joined: Thu Jun 11, 2015 1:35 pm
Contact:

Re: [0.17.9] Total dithering of ground textures

Post 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.

User avatar
DragonMaus
Burner Inserter
Burner Inserter
Posts: 13
Joined: Tue May 27, 2014 5:32 pm
Contact:

Re: [0.17.9] Total dithering of ground textures

Post 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.

posila
Factorio Staff
Factorio Staff
Posts: 5202
Joined: Thu Jun 11, 2015 1:35 pm
Contact:

Re: [0.17.9] Total dithering of ground textures

Post 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.

User avatar
DragonMaus
Burner Inserter
Burner Inserter
Posts: 13
Joined: Tue May 27, 2014 5:32 pm
Contact:

Re: [0.17.9] Total dithering of ground textures

Post 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
 
Attachments
factorio-current.log
(5.07 KiB) Downloaded 79 times

posila
Factorio Staff
Factorio Staff
Posts: 5202
Joined: Thu Jun 11, 2015 1:35 pm
Contact:

Re: [0.17.9] Total dithering of ground textures

Post 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.

User avatar
DragonMaus
Burner Inserter
Burner Inserter
Posts: 13
Joined: Tue May 27, 2014 5:32 pm
Contact:

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

Post by DragonMaus »

It looks like the problem is resolved in 0.17.11. Thank you for your assistance!

posila
Factorio Staff
Factorio Staff
Posts: 5202
Joined: Thu Jun 11, 2015 1:35 pm
Contact:

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

Post by posila »

but ... but ... but I didn't do anything that would fix it :-o

User avatar
DragonMaus
Burner Inserter
Burner Inserter
Posts: 13
Joined: Tue May 27, 2014 5:32 pm
Contact:

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

Post 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‽"

posila
Factorio Staff
Factorio Staff
Posts: 5202
Joined: Thu Jun 11, 2015 1:35 pm
Contact:

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

Post 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).

Post Reply

Return to “1 / 0 magic”