http://bugs.winehq.org/show_bug.cgi?id=12717
Summary: Europa Universalis III: Borders drawn corrupted Product: Wine Version: 0.9.59. Platform: PC OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: directx-d3d AssignedTo: wine-bugs@winehq.org ReportedBy: cja@gmx.net
The borders of the countries and provices are corrupt. I have attached a wine screenshot and a windows screenshot so you can see the differences.
http://bugs.winehq.org/show_bug.cgi?id=12717
--- Comment #1 from Jonas Aaberg cja@gmx.net 2008-04-21 12:59:12 --- Created an attachment (id=12365) --> (http://bugs.winehq.org/attachment.cgi?id=12365) Eu3 screenshot - Corrupt. Running wine
Here you can easily see the strange pattern wine creates when it should draw lines.
http://bugs.winehq.org/show_bug.cgi?id=12717
--- Comment #2 from Jonas Aaberg cja@gmx.net 2008-04-21 13:00:06 --- Created an attachment (id=12366) --> (http://bugs.winehq.org/attachment.cgi?id=12366) Eu3 screenshot - Correct on Windows
Here is a screenshot how it should look like.
http://bugs.winehq.org/show_bug.cgi?id=12717
--- Comment #3 from Jonas Aaberg cja@gmx.net 2008-04-21 13:01:15 --- Created an attachment (id=12367) --> (http://bugs.winehq.org/attachment.cgi?id=12367) Possible script for borders
I guess that this file includes the script that creates the borders.
http://bugs.winehq.org/show_bug.cgi?id=12717
--- Comment #4 from Jonas Aaberg cja@gmx.net 2008-04-21 13:04:09 --- Created an attachment (id=12368) --> (http://bugs.winehq.org/attachment.cgi?id=12368) Border graphics
This is the graphics for the province border.
http://bugs.winehq.org/show_bug.cgi?id=12717
--- Comment #5 from Jonas Aaberg cja@gmx.net 2008-04-21 13:46:09 --- Still valid for wine 0.9.60
http://bugs.winehq.org/show_bug.cgi?id=12717
--- Comment #6 from Austin English austinenglish@gmail.com 2008-04-21 14:31:03 --- Is this downloadable anywhere?
http://bugs.winehq.org/show_bug.cgi?id=12717
Maarten Fonville maarten.fonville@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |maarten.fonville@gmail.com
http://bugs.winehq.org/show_bug.cgi?id=12717
Jonas Aaberg cja@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- URL| |http://www.gamershell.com/do | |wnload_17351.shtml
--- Comment #7 from Jonas Aaberg cja@gmx.net 2008-04-22 13:17:37 ---
Added link to Demo.
The demo displays the same corrupted borders. Please follow the installation instructions provided for EU3 NA 2.2 in the appdb. One change for the demo, you have to turn off all sound in winecfg. I.E neither ALSA, OSS nor NAS can be selected. If they do, the demo hangs on "Loading Sounds."
http://bugs.winehq.org/show_bug.cgi?id=12717
Wilczur rciechowski@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1
--- Comment #8 from Wilczur rciechowski@gmail.com 2008-04-28 14:56:25 --- *** This bug has been confirmed by popular vote. ***
http://bugs.winehq.org/show_bug.cgi?id=12717
--- Comment #9 from Jonas Aaberg cja@gmx.net 2008-05-04 08:16:53 ---
Still valid for wine 0.9.60 and wine 0.9.61
http://bugs.winehq.org/show_bug.cgi?id=12717
--- Comment #10 from Jonas Aaberg cja@gmx.net 2008-05-17 07:33:43 --- Still valid for 1.0-rc1 Now the console gets full of this print: -- fixme:d3d_surface:read_from_framebuffer_texture >>>>>>>>>>>>>>>>> GL_INVALID_OPERATION (0x502) from glCopyTexSubImage2D @ surface.c / 924 --
http://bugs.winehq.org/show_bug.cgi?id=12717
--- Comment #11 from Jonas Aaberg cja@gmx.net 2008-05-17 07:46:51 --- Created an attachment (id=13117) --> (http://bugs.winehq.org/attachment.cgi?id=13117) Console log
Starting EU3, picking new single player game,starting the new game, starting up new game, including showing broken boarder graphics, then quit game.
http://bugs.winehq.org/show_bug.cgi?id=12717
Björn Michaelsen bmichaelsen@gmx.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |bmichaelsen@gmx.de
--- Comment #12 from Björn Michaelsen bmichaelsen@gmx.de 2008-07-10 14:06:02 --- Using the TOT21 mod and replacing the lines that start with: float4 TerraIncognita = with float4 TerraIngognita = float4(0,0,0,0) in the files terrain_2_0.fx and borders_2_0.fx I was able to get resonably welllooking borders. (borders_2_0 for sea boarders, terrain_2_0 for land).
The shader script looks pretty reasonable - however the tex2D calls works on the files TerraIncog.dds or TerraIncog.tga. I cannot find such a file in my installation although I find teh other files named in the *.fx files.
So maybe this is a just a install issue?
http://bugs.winehq.org/show_bug.cgi?id=12717
--- Comment #13 from Björn Michaelsen bmichaelsen@gmx.de 2008-07-10 16:28:20 --- There are a lot of "broken tgafiles" installed with EU3. It might just as well be that the texture for the pixelshader is also broken. These "broken tgafiles" show up as transparent only, when loaded with ImageMagicks display, gqview or Gimp. tgatoppm (from netppm) however is able to convert the image to a readable ppm (shows up nicely in Gimp). I will attach a same "tga file".
http://bugs.winehq.org/show_bug.cgi?id=12717
--- Comment #14 from Björn Michaelsen bmichaelsen@gmx.de 2008-07-10 16:30:14 --- Created an attachment (id=14720) --> (http://bugs.winehq.org/attachment.cgi?id=14720) a "broken" sample file
http://bugs.winehq.org/show_bug.cgi?id=12717
Novoselcev aenovoselcev@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |aenovoselcev@gmail.com
--- Comment #15 from Novoselcev aenovoselcev@gmail.com 2008-07-13 13:35:39 --- (In reply to comment #12)
I was able to get resonably welllooking borders.
Nope, didn't work for me.
So maybe this is a just a install issue?
Checked my install of EU3, EU3:NA and EU3:IN - no TerraIncog.dds or TerraIncog.tga in any of them. Tried in VirtualBox - installations are identical to ones in .wine/
http://bugs.winehq.org/show_bug.cgi?id=12717
Rodney Moss edge@rsm.id.au changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |edge@rsm.id.au
--- Comment #16 from Rodney Moss edge@rsm.id.au 2008-09-22 10:03:17 --- (In reply to comment #12)
Using the TOT21 mod and replacing the lines that start with: float4 TerraIncognita =
...
So maybe this is a just a install issue?
float4 TerraIncognita = float4(0,0,0,0); worked for me. Or at least something did. Once. After a reinstall, it hasn't worked for me again, with multiple reinstall attempts.
http://bugs.winehq.org/show_bug.cgi?id=12717
--- Comment #17 from knan-wine@anduin.net 2008-09-22 12:55:53 --- (In reply to comment #14)
Created an attachment (id=14720)
--> (http://bugs.winehq.org/attachment.cgi?id=14720) [details]
a "broken" sample file
May be a 24-bit image stored as 32-bit. Since the alpha channel is all 0 (which in tga is "fully transparent"), it may be interpreted as fully transparent all over.
But a random googled specification (http://local.wasp.uwa.edu.au/~pbourke/dataformats/tga/) says: "The 4 byte entry contains 1 byte each of blue, green, red, and attribute. For faster speed (because of the hardware of the Targa board itself), Targa 24 images are sometimes stored as Targa 32 images."
So an alternative interpretation is "crap alpha channel data, ignore it" - a valid interpretation according to the tga standards. File looks quite valid, just a bit strange.
tgatoppm just throws away the alpha channel, clearing up any confusion.
http://bugs.winehq.org/show_bug.cgi?id=12717
--- Comment #18 from Jonas Aaberg cja@gmx.net 2008-09-28 10:22:47 ---
This patch on In Nomine 3.1 removes the province and country borders completely. Still, the water province border is there.
--- gfx/FX/terrain_2_0.fx.orig 2008-09-28 15:01:11.000000000 +0200 +++ gfx/FX/terrain_2_0.fx 2008-09-28 15:02:59.000000000 +0200 @@ -481,7 +481,8 @@ float4 TerraIncognita = tex2D( TerraIncognitaTextureTerrain, v.vBorderTexCoord0 ); OutColor.rgb += ( TerraIncognita.g - 0.25 )*1.33;
- return OutColor; + //return OutColor; + return float4(0.0, 0.0, 0.0, 0); }
////////////////////////////////////////////////////////////////////////////////////////////////////////////
http://bugs.winehq.org/show_bug.cgi?id=12717
--- Comment #19 from Gaute65 Gaute65@gmail.com 2009-01-13 09:05:42 --- See this thread at the paradox forum:http://forum.paradoxplaza.com/forum/showthread.php?t=388613
It's a howto to install the game.
Main point about the corruption:
# edit gfx/FX/borders_2_0.fx to remove sea province artifacts go to line 162, replace float4 TerraIncognita = tex2D( TerraIncognitaFiltered, v.vTexCoord0 ); with float4 TerraIncognita = float4( 1, 1, 1, 0 ); this will change the seaboarders so that they are displayed correctly in white. you can also change them to dark-grey: float4 TerraIncognita = float4( 0, 0, 0, 0 ); but then the seaboarders will also be visible in terra-incognita
# edit terrain_2_0.fx to remove land border distortion go to line 481, replace float4 TerraIncognita = tex2D( TerraIncognitaTextureTerrain, v.vBorderTexCoord0 ); with float4 TerraIncognita = float4( 0, 0, 0, 0 );
http://bugs.winehq.org/show_bug.cgi?id=12717
andy-wine@splashground.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |andy-wine@splashground.de
http://bugs.winehq.org/show_bug.cgi?id=12717
--- Comment #20 from Issam Mehssani i.mehssani@gmail.com 2009-08-12 15:03:27 --- Created an attachment (id=23028) --> (http://bugs.winehq.org/attachment.cgi?id=23028) Screenshot of corrupt borders in Hearts of Iron 3
The bug is found also in Hearts of Iron 3 since they share the same engine.
I've tried modifying the border fx file, but couldn't because it's quite different from the EU3 one.
http://bugs.winehq.org/show_bug.cgi?id=12717
Issam Mehssani i.mehssani@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |i.mehssani@gmail.com
--- Comment #21 from Issam Mehssani i.mehssani@gmail.com 2009-08-18 08:24:14 --- After some discussion on the Paradox forums, it turns out the bug is a regression introduced by :
932e95c111118b643650d6643e47be0ddb5528a1 is first bad commit commit 932e95c111118b643650d6643e47be0ddb5528a1 Author: Henri Verbeet hverbeet@codeweavers.com Date: Mon Sep 8 10:15:51 2008 +0200
wined3d: Translate one pixel down after flipping for offscreen rendering.
:040000 040000 d12b2d7d6fcc1fb59dbe39d71390d75700f8af23 1e39282c10fcd60a318a9d638ddaeea2bf93c1fa M dlls
I did the regression testing on HoI3 (full game), couldn't get the demo to work.
Also I can't figure out how to add someone to the CC list.
http://bugs.winehq.org/show_bug.cgi?id=12717
--- Comment #22 from Henri Verbeet hverbeet@gmail.com 2009-08-18 10:16:35 --- Does http://bugs2.winehq.org/attachment.cgi?id=23158 help?
http://bugs.winehq.org/show_bug.cgi?id=12717
--- Comment #23 from Issam Mehssani i.mehssani@gmail.com 2009-08-18 10:53:08 --- The patch did correct the error, tested on HoI3.
http://bugs.winehq.org/show_bug.cgi?id=12717
--- Comment #24 from Issam Mehssani i.mehssani@gmail.com 2009-08-20 18:59:52 --- It turns out the bug is not the same for EU3 and HoI3. I tried the submitted patch on a clean install of EU3 and the borders bug is present.
I also tried going back as far as wine-1.0.1, but nothing changed. So we got two distinct bugs on our hands :
- One is a regression affecting HoI3 and has patch that solves the problem. - The Second one affects EU3 and is not a regression (as far as I can tell), though there is a workaround for it.
http://bugs.winehq.org/show_bug.cgi?id=12717
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download
http://bugs.winehq.org/show_bug.cgi?id=12717
GyB gyebro69@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |gyebro69@gmail.com
--- Comment #25 from GyB gyebro69@gmail.com 2010-12-11 00:04:08 CST --- Borders are still corrupted in EU3, using Wine-1.3.9.
http://bugs.winehq.org/show_bug.cgi?id=12717
Gweltas g.denece@numericable.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |g.denece@numericable.fr
--- Comment #26 from Gweltas g.denece@numericable.fr 2011-01-31 16:44:20 CST --- The borders are correctly drawn with the Divine Wind extension. If I've well understood, the graphic motor was moved to a new one (Victoria 2)
http://bugs.winehq.org/show_bug.cgi?id=12717
joaopa jeremielapuree@yahoo.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jeremielapuree@yahoo.fr
--- Comment #27 from joaopa jeremielapuree@yahoo.fr 2011-09-03 23:06:36 CDT --- still a bug in current wine?
http://bugs.winehq.org/show_bug.cgi?id=12717
--- Comment #28 from GyB gyebro69@gmail.com 2011-09-13 08:25:30 CDT --- (In reply to comment #27)
still a bug in current wine?
Borders are still corrupted in EU III:Complete, using Wine-1.3.28.
http://bugs.winehq.org/show_bug.cgi?id=12717
mboquien@free.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mboquien@free.fr
--- Comment #29 from mboquien@free.fr 2012-01-01 16:34:26 CST --- I confirm that the bug is still present with wine 1.3.36 with all expansions up to Heir to the Throne. Starting with Divine Wind the bug is gone as mentioned in comment #26.
http://bugs.winehq.org/show_bug.cgi?id=12717
--- Comment #30 from Andrey Gusev andrey.goosev@gmail.com 2013-12-08 08:00:13 CST --- Still in 1.7.8
https://bugs.winehq.org/show_bug.cgi?id=12717
Jarkko K jarkko_korpi@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jarkko_korpi@hotmail.com
--- Comment #31 from Jarkko K jarkko_korpi@hotmail.com --- I tried the demo with 1.7.15 and the issue is still there.
I made a debug, it's 286 megabytes.
I am cleaning it now, removing duplicate lines.
The debug was mostly quartz lines. Like these.
fixme:quartz:Parser_OutputPin_QueryInterface No interface for {56a868a5-0ad4-11ce-b03a-0020af0ba770}!
fixme:quartz:DSoundRender_SendSampleData Sample dropped 2623530772 of 4608 bytes
I don't know if these mean anything...
fixme:strmbase:MemInputPin_NotifyAllocator Read only flag not handled yet!
fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0x33fb24 1 C) semi-stub
fixme:d3d:wined3d_swapchain_set_gamma_ramp Ignoring flags 0x1.
Bottom line.
So it's still there wine 1.7.15
https://bugs.winehq.org/show_bug.cgi?id=12717
--- Comment #32 from Jarkko K jarkko_korpi@hotmail.com --- I forgot to add
Direct3DShaderValidatorCreate9
But wine source code says this
79 /******************************************************************* 80 * Direct3DShaderValidatorCreate9 (D3D9.@) 81 * 82 * No documentation available for this function. 83 * SDK only says it is internal and shouldn't be used. 84 */ 85 void* WINAPI Direct3DShaderValidatorCreate9(void) 86 { 87 static int once; 88 89 if (!once++) FIXME("stub\n"); 90 return NULL; 91 } 92
http://source.winehq.org/git/wine.git/blob/e3383d1739f0a3ff9ebf1975f2cf6418b...
https://bugs.winehq.org/show_bug.cgi?id=12717
Teras teras@luukku.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |teras@luukku.com
--- Comment #33 from Teras teras@luukku.com --- The demo starts really long for me, also there seems to be some regression involved now. It crashes during loading. No overrides were used.
wine-1.7.37-143-g3b2cf06
https://bugs.winehq.org/show_bug.cgi?id=12717
Sebastian Lackner sebastian@fds-team.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |sebastian@fds-team.de
--- Comment #34 from Sebastian Lackner sebastian@fds-team.de --- (In reply to Teras from comment #33)
The demo starts really long for me, also there seems to be some regression involved now. It crashes during loading. No overrides were used.
wine-1.7.37-143-g3b2cf06
I can neither reproduce the crash from comment 33 nor the graphical corruptions explained in comment 1. All works well here. Probably a driver specific issue.
$ git describe wine-1.7.37-143-g3b2cf06
Nvidia GeForce GTX 650, driver version 346.35
https://bugs.winehq.org/show_bug.cgi?id=12717
Béla Gyebrószki gyebro69@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |c6232e1d111ae8929c53c02211c | |de4a9777311fd Status|NEW |RESOLVED Resolution|--- |FIXED
--- Comment #35 from Béla Gyebrószki gyebro69@gmail.com --- According to my testing the border bug in EU3 was fixed by http://source.winehq.org/git/wine.git/commit/c6232e1d111ae8929c53c02211cde4a...
Fedora 21 Nvidia binary drivers 340.76
https://bugs.winehq.org/show_bug.cgi?id=12717
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #36 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 1.7.38.