https://bugs.winehq.org/show_bug.cgi?id=46336
Bug ID: 46336 Summary: Resident Evil 4 on Steam (appid 254700) black textures in outdoor lighting Product: Wine Version: 4.0-rc2 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: directx-d3dx9 Assignee: wine-bugs@winehq.org Reporter: vash63@gmail.com Distribution: ---
Created attachment 63085 --> https://bugs.winehq.org/attachment.cgi?id=63085 Black textures
Almost every texture in the game is black including player characters, seemingly other than decals like some leaf textures which are fine. Some areas randomly have textures like normal, noticeably when you enter the first cabin you can see Leon as soon as you enter the door but right when you exit back to the outdoor lighting he turns black again.
Similar reports: https://www.protondb.com/app/254700
Example image attached.
Duplicated with wine4.0rc2, proton 3.16 and proton 3.7.
https://bugs.winehq.org/show_bug.cgi?id=46336
--- Comment #1 from George Gibbs vash63@gmail.com --- Created attachment 63086 --> https://bugs.winehq.org/attachment.cgi?id=63086 WINEDEBUG=warn+d3d,warn+d3d9 log (includes Steam launching and closing)
https://bugs.winehq.org/show_bug.cgi?id=46336
Gijs Vermeulen gijsvrm@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Resident Evil 4 on Steam |Resident Evil 4 (Steam) - |(appid 254700) black |black textures in outdoor |textures in outdoor |lighting |lighting | Component|directx-d3dx9 |directx-d3d URL| |https://store.steampowered. | |com/app/254700/resident_evi | |l_4__biohazard_4/
https://bugs.winehq.org/show_bug.cgi?id=46336
George Gibbs vash63@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |vash63@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=46336
--- Comment #2 from Andrey Gusev andrey.goosev@gmail.com --- It seems a game bug.
https://bugs.winehq.org/show_bug.cgi?id=46336
--- Comment #3 from George Gibbs vash63@gmail.com --- (In reply to Andrey Gusev from comment #2)
It seems a game bug.
What do you mean by this? It doesn't happen on Windows. What makes it a game bug vs. a WINE bug if it happens in Windows but not in WINE?
https://bugs.winehq.org/show_bug.cgi?id=46336
Leopard yurnerolinux@yandex.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |yurnerolinux@yandex.com
--- Comment #4 from Leopard yurnerolinux@yandex.com --- It seems like a Wine bug since game renders correctly on Windows.
https://bugs.winehq.org/show_bug.cgi?id=46336
Leopard yurnerolinux@yandex.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC|yurnerolinux@yandex.com |
https://bugs.winehq.org/show_bug.cgi?id=46336
--- Comment #5 from George Gibbs vash63@gmail.com --- https://mega.nz/#!GLYjSCoR!xFdiAUtm0rmzoxaMn7vsqfHM7L4tbXphps794mGyJRE
I can play back this same apitrace in wined3d and it's black, in Windows and it looks fine.
https://bugs.winehq.org/show_bug.cgi?id=46336
Andrey Gusev andrey.goosev@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Status|UNCONFIRMED |NEW
--- Comment #6 from Andrey Gusev andrey.goosev@gmail.com --- I recall some threads about black textures which happens on Windows as well. It looks quite the same, but yeah, I checked once again yesterday and found a difference. Confirming.
https://bugs.winehq.org/show_bug.cgi?id=46336
Jonathan jomarocas@outlook.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jomarocas@outlook.com
--- Comment #7 from Jonathan jomarocas@outlook.com --- i confirm this happen currently in all wine versions, i dont know how can debug this error and how can i help, thanks for more info for test
https://bugs.winehq.org/show_bug.cgi?id=46336
mrdeathjr28@yahoo.es changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mrdeathjr28@yahoo.es
https://bugs.winehq.org/show_bug.cgi?id=46336
pattietreutel katyaberezyaka@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |katyaberezyaka@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=46336
Paul Gofman gofmanp@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |gofmanp@gmail.com
--- Comment #8 from Paul Gofman gofmanp@gmail.com --- Created attachment 63649 --> https://bugs.winehq.org/attachment.cgi?id=63649 A hack to avoid infinity result of rcp
I tested apitrace provided in Comment #5.
Sadly, this bug looks like some variation of Bug #34266 and such. I am attaching the application specific hack as a proof of concept which fixes the rendering of the provided apitrace for me (I don't have the game to test). It might be fixing the game or not (fully), as there are more operations that can result in infinity or NAN.
https://bugs.winehq.org/show_bug.cgi?id=46336
--- Comment #9 from Andrey Gusev andrey.goosev@gmail.com --- (In reply to Paul Gofman from comment #8)
Yes, it fixes the issue. FWIW, the hack from bug 36089 also helps.
https://bugs.winehq.org/show_bug.cgi?id=46336
--- Comment #10 from Paul Gofman gofmanp@gmail.com --- This one, Bug #34266, Bug #36089, bug #30061 are about the same issue, with the most complete explanation in Bug #34266.
Just to avoid any confusion in testing, the solution from here or Bug #36089 (both avoiding inf result from 1.0 / x) is absolutely not an universal hack for all the similar bugs (while 1.0 / x is probably rather common place to get inf). To make a universal hack, one needs to check and workaround NaN results for literally every operation generated in GLSL.
https://bugs.winehq.org/show_bug.cgi?id=46336
soredake yuno@hitler.rocks changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |yuno@hitler.rocks
https://bugs.winehq.org/show_bug.cgi?id=46336
Matteo Bruni matteo.mystral@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |DUPLICATE Status|NEW |RESOLVED
--- Comment #11 from Matteo Bruni matteo.mystral@gmail.com --- (In reply to Paul Gofman from comment #10)
This one, Bug #34266, Bug #36089, bug #30061 are about the same issue, with the most complete explanation in Bug #34266.
Thanks Paul for debugging and the patch. I'm going to resolve this bug as a duplicate too, although I realize that e.g. this hack might not "fix" the issue in other games.
*** This bug has been marked as a duplicate of bug 34266 ***
https://bugs.winehq.org/show_bug.cgi?id=46336
Alistair Leslie-Hughes leslie_alistair@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #12 from Alistair Leslie-Hughes leslie_alistair@hotmail.com --- Closing Duplicate.