http://bugs.winehq.org/show_bug.cgi?id=14522
Summary: Spellforce has bad quality ground textures Product: Wine Version: CVS/GIT Platform: PC-x86-64 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: directx-d3d AssignedTo: wine-bugs@winehq.org ReportedBy: greg87@online.de
Like the title says. This is likely due some LOD malfunction. The ground which is farther from the players view looks more detailed and high res, this leads me to the conclusion that the LOD of the game operates the exact opposite what it should. Also this explains the slowness of the game. With ground I mean the grass and hills which are basically just one big surface. However the textures of the buildings and trees, which are complex 3d models, are looking great.
In the console there are some of these messages: fixme:d3d:WineD3D_ChoosePixelFormat Add OpenGL context recreation support to SetDepthStencilSurface fixme:d3d_surface:IWineD3DSurfaceImpl_LoadTexture (0x175d58d8) Operation not supported for scratch textures
http://bugs.winehq.org/show_bug.cgi?id=14522
Gregor Münch greg87@online.de changed:
What |Removed |Added ---------------------------------------------------------------------------- URL| |http://www.winload.de/downlo | |ad/26590/Spiele/Action/Spell | |Force-Demo.html Version|CVS/GIT |1.1.1
--- Comment #1 from Gregor Münch greg87@online.de 2008-07-20 09:37:05 --- I checked this on Windows and it seems that the LOD is working correctly with wine. So there is just a problem regarding the loading of the default surface textures. I added a demo link in case anyone wants to confirm.
http://bugs.winehq.org/show_bug.cgi?id=14522
--- Comment #2 from Benjamin Knecht beni@urgent.to 2008-08-15 05:12:19 --- Created an attachment (id=15424) --> (http://bugs.winehq.org/attachment.cgi?id=15424) Screenshot showing the bug with ground textures & shadows
Added a screenshot as attachment to illustrate this bug.
http://bugs.winehq.org/show_bug.cgi?id=14522
Marcus Beyer m.beyer5@gmx.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1
--- Comment #3 from Marcus Beyer m.beyer5@gmx.de 2008-09-24 00:12:35 --- *** This bug has been confirmed by popular vote. ***
http://bugs.winehq.org/show_bug.cgi?id=14522
--- Comment #4 from Austin English austinenglish@gmail.com 2009-03-30 12:51:16 --- Is this still an issue in current (1.1.18 or newer) wine?
http://bugs.winehq.org/show_bug.cgi?id=14522
Christian Widmer shadow@umbrox.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |shadow@umbrox.de
--- Comment #5 from Christian Widmer shadow@umbrox.de 2009-03-30 18:57:30 --- Just tested it: It is.
http://bugs.winehq.org/show_bug.cgi?id=14522
Dragos Petraru dragos.petraru@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dragos.petraru@gmail.com
--- Comment #6 from Dragos Petraru dragos.petraru@gmail.com 2009-06-12 06:00:49 --- Have you tested with 1.1.23 ?
http://bugs.winehq.org/show_bug.cgi?id=14522
--- Comment #7 from Christian Widmer shadow@umbrox.de 2009-06-12 11:20:24 --- I have and the problem still exists.
http://bugs.winehq.org/show_bug.cgi?id=14522
--- Comment #8 from Austin English austinenglish@gmail.com 2010-01-04 12:17:16 --- This is your friendly reminder that there has been no bug activity for 6 months. Is this still an issue in current (1.1.35 or newer) wine?
http://bugs.winehq.org/show_bug.cgi?id=14522
--- Comment #9 from Michael Wagener wine-bugzilla@daznet-mike.dyndns.org 2010-01-05 13:07:06 --- Created an attachment (id=25557) --> (http://bugs.winehq.org/attachment.cgi?id=25557) Screenshot showing the problem with Debian-supplied Wine 1.1.32
http://bugs.winehq.org/show_bug.cgi?id=14522
--- Comment #10 from GyB gyebro69@gmail.com 2010-09-26 10:59:15 CDT --- Created an attachment (id=30961) --> (http://bugs.winehq.org/attachment.cgi?id=30961) console log
I can observe the same corruption in the Platinum edition of the game, using the current git (wine-1.3.3-234-g57a6404).
Nvidia 7600 / driver 256.53
http://bugs.winehq.org/show_bug.cgi?id=14522
Christoph D. Amann christoph@amann.co.nz changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |christoph@amann.co.nz
--- Comment #11 from Christoph D. Amann christoph@amann.co.nz 2011-01-05 17:02:40 CST --- (In reply to comment #10)
Created an attachment (id=30961)
--> (http://bugs.winehq.org/attachment.cgi?id=30961) [details]
console log
I can observe the same corruption in the Platinum edition of the game, using the current git (wine-1.3.3-234-g57a6404).
Nvidia 7600 / driver 256.53
Same corruption under wine-1.3.10 (Ubuntu 10.10 x86_x64). NV 9600 / driver 260.19.06.
Game is otherwise playable (A few wrong polygons here and there).
http://bugs.winehq.org/show_bug.cgi?id=14522
joaopa jeremielapuree@yahoo.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jeremielapuree@yahoo.fr
--- Comment #12 from joaopa jeremielapuree@yahoo.fr 2011-08-06 04:59:00 CDT --- still a bug in current wine?
http://bugs.winehq.org/show_bug.cgi?id=14522
--- Comment #13 from Christian Widmer shadow@umbrox.de 2011-08-12 16:50:55 CDT --- It still was when I tested it a few weeks ago. I cannot check it at the moment, though.
http://bugs.winehq.org/show_bug.cgi?id=14522
--- Comment #14 from Fernando Martins fernando@cmartins.nl 2011-12-25 05:24:51 CST --- Created attachment 38107 --> http://bugs.winehq.org/attachment.cgi?id=38107 screenshot of GOG's Platinum edition in wine 1.3.35
The ground textures seem ok to me but I do have black rectangles like columns going out of the ground.
http://bugs.winehq.org/show_bug.cgi?id=14522
GyB gyebro69@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |gyebro69@gmail.com
--- Comment #15 from GyB gyebro69@gmail.com 2011-12-25 06:08:57 CST --- (In reply to comment #14)
Created attachment 38107 [details] screenshot of GOG's Platinum edition in wine 1.3.35
The ground textures seem ok to me but I do have black rectangles like columns going out of the ground.
What video card and driver are you using? Ground still has the same, 'washed away' textures here with a Nvidia 250 card and the proprietary driver (290.10). Those black columns are present here too, but only when shadow-type is set to normal (no such problem when shadows are set to high or very high).
http://bugs.winehq.org/show_bug.cgi?id=14522
Antonio López amlopezalonso@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |amlopezalonso@gmail.com
--- Comment #16 from Antonio López amlopezalonso@gmail.com 2012-01-21 18:41:12 CST --- Still in 1.3.37. Mine is a Nvidia 8500GT, proprietary driver 290.10.
http://bugs.winehq.org/show_bug.cgi?id=14522
Pierre Etchemaite pe-winehq@concept-micro.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |pe-winehq@concept-micro.com
http://bugs.winehq.org/show_bug.cgi?id=14522
--- Comment #17 from Pierre Etchemaite pe-winehq@concept-micro.com 2012-04-24 16:36:12 CDT --- Problem still exists in 1.5.2
Debian unstable architecture amd64 Nvidia GeForce G102M / proprietary driver 295.40
http://bugs.winehq.org/show_bug.cgi?id=14522
--- Comment #18 from Ernest Skrzypczyk erni.berni@vp.pl 2012-05-22 04:53:02 CDT --- Created attachment 40264 --> http://bugs.winehq.org/attachment.cgi?id=40264 Textures in game displayed partially correct
http://bugs.winehq.org/show_bug.cgi?id=14522
Ernest Skrzypczyk erni.berni@vp.pl changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |erni.berni@vp.pl
--- Comment #19 from Ernest Skrzypczyk erni.berni@vp.pl 2012-05-22 04:53:40 CDT --- This bug seems to affect also the water around islands. I attached a screen, on which you clearly see, that a part of the textures is displayed correctly. However basic mountain/terrain rock/grass textures as well as the water (around the island) is not. Water (around the island) seems to be ok when looked at from long distance. The game is awfully sluggish.
Any directions for looking into the code and solving this already are welcome.
Wine-1.5.4-170-g8933d91 build from git repository OpenSUSE 12.1 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 3800+ AMD/ATI Radeon HD 4850 with Fglrx 12.4
http://bugs.winehq.org/show_bug.cgi?id=14522
--- Comment #20 from Ernest Skrzypczyk erni.berni@vp.pl 2012-06-30 08:29:55 CDT --- Created attachment 40803 --> http://bugs.winehq.org/attachment.cgi?id=40803 Screenshot with description
http://bugs.winehq.org/show_bug.cgi?id=14522
--- Comment #21 from Ernest Skrzypczyk erni.berni@vp.pl 2012-06-30 08:32:21 CDT --- Created attachment 40804 --> http://bugs.winehq.org/attachment.cgi?id=40804 Screenshot
Textures in background seem to be perfectly ok.
http://bugs.winehq.org/show_bug.cgi?id=14522
--- Comment #22 from Ernest Skrzypczyk erni.berni@vp.pl 2012-06-30 08:48:02 CDT --- After recent hardware change bug still exists. Performance hit is still there.
I think Spellforce always displays the low level of detail textures underneath the hq ones, which are shown only within specified distance. In case of this bug this seems to be inverted.Maybe some priorities or textures order are counted/placed wrong.
Wine-1.5.7-252-g1f01355 build from git repository OpenSUSE 12.1 x86_64 AMD FX Bulldozer 8150 Asus M5A99X EVO G.Skill 16 GB DDR3-14900 AMD/ATI Radeon HD 4850 with Fglrx 12.4
http://bugs.winehq.org/show_bug.cgi?id=14522
--- Comment #23 from Ernest Skrzypczyk erni.berni@vp.pl 2012-06-30 09:17:27 CDT --- Created attachment 40805 --> http://bugs.winehq.org/attachment.cgi?id=40805 Log with warn+all,err+all
http://bugs.winehq.org/show_bug.cgi?id=14522
Xavier Vachon xvachon@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |xvachon@gmail.com
--- Comment #24 from Xavier Vachon xvachon@gmail.com 2013-04-19 02:35:05 CDT --- Still a bug in current wine (1.5.28). Tested on Arch linux X64 with the GOG.com version of the game and NVIDIA hardware.
http://bugs.winehq.org/show_bug.cgi?id=14522
--- Comment #25 from Pierre Etchemaite pe-winehq@concept-micro.com 2013-06-15 20:15:44 CDT --- Problem still exists in 1.6-rc2
Debian unstable architecture amd64 Nvidia GeForce G102M / proprietary driver 313.30
http://bugs.winehq.org/show_bug.cgi?id=14522
--- Comment #26 from Matteo Bruni matteo.mystral@gmail.com 2013-07-18 09:16:00 CDT --- Created attachment 45326 --> http://bugs.winehq.org/attachment.cgi?id=45326 Patch
This patch fixes the bug for me. Essentially the same texture is bound to multiple samplers with different sampling parameters, we need something like sampler objects to make that work right.
The patch as-is has a number of issues though. There are a bunch of glTexParameteri calls in wined3d (e.g. in draw_textured_quad) which essentially do nothing when a sampler object is bound, that needs to be fixed. Also the patch adds some new state into wined3d_device and that pretty much goes in the opposite direction of what Stefan has been doing lately. Moreover, it brings a 5-10% performance penalty on Nvidia for me, not sure if that's just because of the sampler objects or (arguably) due to the additional state changes.
http://bugs.winehq.org/show_bug.cgi?id=14522
--- Comment #27 from Ernest Skrzypczyk erni.berni@vp.pl 2013-07-18 14:43:10 CDT --- (In reply to comment #26) I compiled your patch against wine-1.6-rc5-33-g2674221 and have the same result. Bug seems to be gone, but at noticable performance cost with latest fglrx 13.1 @ Arch Linux x86_64.
http://bugs.winehq.org/show_bug.cgi?id=14522
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, patch
http://bugs.winehq.org/show_bug.cgi?id=14522
--- Comment #28 from Christian Widmer shadow@umbrox.de --- This bug still exists in wine-1.7.14. Because the provided patch does not apply to newer wine versions I patched wine-1.6.0 which indeed fixes the issue.
http://bugs.winehq.org/show_bug.cgi?id=14522
Artem turbonomad@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |turbonomad@gmail.com
--- Comment #29 from Artem turbonomad@gmail.com --- Reproduced with Wine 1.7.17 and the free Radeon driver.
http://bugs.winehq.org/show_bug.cgi?id=14522
--- Comment #30 from Ernest Skrzypczyk erni.berni@vp.pl --- Latest d3dstream patched wine from git (cs-0.8) produces same bug. However after patching 1.6.2 version from https://github.com/stefand/wine/archive/wine-1.6.2.tar.gz (with a miner patch modification) and writing a script for constant mouse movement, the game performs just like it used to on Windows. There are small slow downs when buildings catch fire and many units are fighting on the screen. When the mouse cursor does not move, animations and scrolling the screen are stuttering. This seems to be an overall problem independent of the wine version. So there must be a function call just before, during or after mouse movement, which causes this behaviour to disappear.
--- Script for constant, almost non-invasive mouse movement #!/bin/bash while :; do xdotool mousemoVe_relative 0 1; sleep .1; xdotool mousemoVe_relative 1 0; sleep .1; xdotool mousemoVe_relative -- 0 -1; sleep .1; xdotool mousemoVe_relative -- -1 0; sleep .1; done ---
https://bugs.winehq.org/show_bug.cgi?id=14522
kilobug@kilobug.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |kilobug@kilobug.org
--- Comment #31 from kilobug@kilobug.org --- Using the following setup :
- Debian Sid - Wine 1.7.24-5 (from Debian) - Mesa 10.4~git1408230730.c2867f+gallium-nine~gd~u from https://launchpad.net/~oibaf/+archive/ubuntu/graphics-drivers/ - Radeon HD 6850 (r600g driver)
I get the bug with default settings, but I've normal display using R600_DEBUG=llvm. So it seems to be somewhat driver related.
Not sure if this is of much help, but I can provide additional info if needed.
https://bugs.winehq.org/show_bug.cgi?id=14522
marc.bessieres@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |marc.bessieres@gmail.com
--- Comment #32 from marc.bessieres@gmail.com --- Created attachment 49875 --> https://bugs.winehq.org/attachment.cgi?id=49875 comparison of same screenshot with and without M.Bruni patch
I wasn't sure that the problem still occurred, so I rebased M.Bruni's patch against latest git, in order to be able to compare and see if the issue was still there.
In the screenshot, the left part is with the patch, and the right part is using plain wine, and the bad quality textures can be seen immediately.
I can confirm the issue is still there, on Spellforce platinium edition (DVD), with wine-1.7.29
sha1sum SpellForce.exe
ae5bbc8d2ea0ae71375f87ebcc4d91ac4e178433 SpellForce.exe
du -sh SpellForce.exe
9,9M SpellForce.exe
./wine --version
wine-1.7.29-114-ga235e86
https://bugs.winehq.org/show_bug.cgi?id=14522
--- Comment #33 from marc.bessieres@gmail.com --- Created attachment 49876 --> https://bugs.winehq.org/attachment.cgi?id=49876 rebase of M.Bruni patch against wine-1.7.29
In the below comment it was said that the patch of M. Bruni didn't apply anymore: https://bugs.winehq.org/show_bug.cgi?id=14522#c28
So in attachment it is possible to find a rebased version of the initial patch(with the same limitations): https://bugs.winehq.org/show_bug.cgi?id=14522#c26
https://bugs.winehq.org/show_bug.cgi?id=14522
--- Comment #34 from marc.bessieres@gmail.com --- (In reply to Béla Gyebrószki from comment #15)
(In reply to comment #14)
Created attachment 38107 [details] screenshot of GOG's Platinum edition in wine 1.3.35
The ground textures seem ok to me but I do have black rectangles like columns going out of the ground.
What video card and driver are you using? Ground still has the same, 'washed away' textures here with a Nvidia 250 card and the proprietary driver (290.10). Those black columns are present here too, but only when shadow-type is set to normal (no such problem when shadows are set to high or very high).
I have created bug 37485 to track this black column issue separately.
https://bugs.winehq.org/show_bug.cgi?id=14522
--- Comment #35 from Henri Verbeet hverbeet@gmail.com --- Actually, this may have been fixed by commit c6232e1d111ae8929c53c02211cde4a9777311fd. Could someone please retest?
https://bugs.winehq.org/show_bug.cgi?id=14522
--- Comment #36 from Béla Gyebrószki gyebro69@gmail.com --- (In reply to Henri Verbeet from comment #35)
Actually, this may have been fixed by commit c6232e1d111ae8929c53c02211cde4a9777311fd. Could someone please retest?
Looks good to me.
https://drive.google.com/file/d/0B-tTbLKBl-tOQjlORi1mQV81Z1E/view?usp=sharin...
wine-1.7.34-60-gd6450cf Nvidia binary drivers 340.65
https://bugs.winehq.org/show_bug.cgi?id=14522
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |c6232e1d111ae8929c53c02211c | |de4a9777311fd Status|NEW |RESOLVED Resolution|--- |FIXED
--- Comment #37 from Austin English austinenglish@gmail.com --- (In reply to Béla Gyebrószki from comment #36)
(In reply to Henri Verbeet from comment #35)
Actually, this may have been fixed by commit c6232e1d111ae8929c53c02211cde4a9777311fd. Could someone please retest?
Looks good to me.
https://drive.google.com/file/d/0B-tTbLKBl-tOQjlORi1mQV81Z1E/view?usp=sharin...
wine-1.7.34-60-gd6450cf Nvidia binary drivers 340.65
Fixed.
https://bugs.winehq.org/show_bug.cgi?id=14522
--- Comment #38 from Marc Bessières marc.bessieres@gmail.com --- Thank you Henri. It works fine for me too.
I just wanted to inform you that the error you introduced in device_leftover_sampler kicked in. It happened only when I quit the game. I presume it is not too important, but I prefered reporting it.
I put the full extract of the command line output because it is small.
fixme:win:EnumDisplayDevicesW ((null),0,0x33de88,0x00000000), stub!
err:ole:CoInitializeEx Attempt to change threading model of this apartment from multi-threaded to apartment threaded err:ole:CoInitializeEx Attempt to change threading model of this apartment from multi-threaded to apartment threaded err:ole:CoInitializeEx Attempt to change threading model of this apartment from multi-threaded to apartment threaded err:ole:CoInitializeEx Attempt to change threading model of this apartment from multi-threaded to apartment threaded err:ole:CoInitializeEx Attempt to change threading model of this apartment from multi-threaded to apartment threaded err:ole:CoInitializeEx Attempt to change threading model of this apartment from multi-threaded to apartment threaded err:ole:CoInitializeEx Attempt to change threading model of this apartment from multi-threaded to apartment threaded err:ole:CoInitializeEx Attempt to change threading model of this apartment from multi-threaded to apartment threaded err:ole:CoInitializeEx Attempt to change threading model of this apartment from multi-threaded to apartment threaded err:ole:CoInitializeEx Attempt to change threading model of this apartment from multi-threaded to apartment threaded err:d3d:device_leftover_sampler Leftover sampler 0x1dd8c0. err:d3d:device_leftover_sampler Leftover sampler 0x8cfdae0.
https://bugs.winehq.org/show_bug.cgi?id=14522
--- Comment #39 from Henri Verbeet hverbeet@gmail.com --- (In reply to Marc Bessières from comment #38)
Thank you Henri. It works fine for me too.
I just wanted to inform you that the error you introduced in device_leftover_sampler kicked in. It happened only when I quit the game. I presume it is not too important, but I prefered reporting it.
It may be related to bug 37912 in some way, but I'll look into that one first.
https://bugs.winehq.org/show_bug.cgi?id=14522
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #40 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 1.7.35.
https://bugs.winehq.org/show_bug.cgi?id=14522
--- Comment #41 from Marc Bessières marc.bessieres@gmail.com --- Henri, just to confirm that the errors: err:d3d:device_leftover_sampler Leftover sampler 0x1dd8c0. err:d3d:device_leftover_sampler Leftover sampler 0x8cfdae0.
disappeared with your commit: commit 525696fe6c4c54888255783cd1be4439ae700fc8 Author: Henri Verbeet hverbeet@codeweavers.com Date: Mon Jan 19 13:44:12 2015 +0100
wined3d: Properly cleanup samplers on wined3d_device_reset() / wined3d_device_uninit_3d().
Thank you Henri