http://bugs.winehq.org/show_bug.cgi?id=11057
Summary: Blood 2:The Chosen (Version 2.1) - rendering range problem Product: Wine Version: 0.9.52. Platform: PC-x86-64 OS/Version: Linux Status: UNCONFIRMED Severity: minor Priority: P2 Component: directx-d3d AssignedTo: wine-bugs@winehq.org ReportedBy: liquid.acid@gmx.net
Hi there,
I just installed the old DirectX 6 (???) game Blood 2: The Chosen. I did apply the 2.0 patch and after that the 2.1 patch (like it should be done according to the patching guides on the net).
I can start Blood2, but I have both visual errors and performance problem. This game is really old, so performance should NOT be a problem. I have a nVidia Geforce FX 5900, a rather old card but comparing this to the GFX-card I originally used to play Blood 2 (a Matrix G200) the nVidia is a performance beast.
Going to attach the wine output when running the application. Installation and patching was all done through wine, and I had no error messages or warnings there.
Now coming to the visual problems. Also going to attach some screenshots from the first level of the game. It looks like some sort of rendering range problem, maybe z-buffer related or probably something with mipmaps (because only textures further away from the player are affected). I've already seen such kind of artifacts, but not on this system but with my integrated intel i915 chipset (where mipmap support was broken in mesa GIT).
Thanks, Tobias
http://bugs.winehq.org/show_bug.cgi?id=11057
--- Comment #1 from Tobias Jakobi liquid.acid@gmx.net 2008-01-06 05:28:55 --- Created an attachment (id=10074) --> (http://bugs.winehq.org/attachment.cgi?id=10074) blood2 screenshot showing heavy artifacts (1)
http://bugs.winehq.org/show_bug.cgi?id=11057
--- Comment #2 from Tobias Jakobi liquid.acid@gmx.net 2008-01-06 05:29:18 --- Created an attachment (id=10075) --> (http://bugs.winehq.org/attachment.cgi?id=10075) blood2 screenshot showing heavy artifacts (2)
http://bugs.winehq.org/show_bug.cgi?id=11057
--- Comment #3 from Tobias Jakobi liquid.acid@gmx.net 2008-01-06 05:30:59 --- Output from wine when launching the Blood2.exe:
liquid@voodoomaster ~/.wine/drive_c/Games/Blood2 $ wine Blood2.exe fixme:win:EnumDisplayDevicesW ((null),0,0x33e138,0x00000000), stub! liquid@voodoomaster ~/.wine/drive_c/Games/Blood2 $ fixme:win:EnumDisplayDevicesW((null),0,0x34d6e0,0x00000000), stub! fixme:x11drv:X11DRV_desktop_SetCurrentMode Cannot change screen BPP from 32 to 16 err:ddraw:IDirectDrawSurfaceImpl_QueryInterface No interface err:d3d_surface:IWineD3DSurfaceImpl_BltOverride Unexpected render target -> render target blit err:d3d_surface:IWineD3DSurfaceImpl_BltOverride Unexpected render target -> render target blit err:d3d_surface:IWineD3DSurfaceImpl_BltOverride Unexpected render target -> render target blit err:d3d_surface:IWineD3DSurfaceImpl_BltOverride Unexpected render target -> render target blit fixme:d3d:IWineD3DDeviceImpl_ValidateDevice (0x1c70a0) : stub err:d3d_surface:IWineD3DSurfaceImpl_LoadLocation Surface does not have any up to date location fixme:d3d:state_subpixel Render state WINED3DRS_SUBPIXEL not implemented yet fixme:d3d:IWineD3DDeviceImpl_Release (0x1c70a0) Device released with resources still bound, acceptable but unexpected fixme:d3d:dumpResources Leftover resource 0x14cfe8 with type 1,WINED3DRTYPE_SURFACE fixme:d3d:dumpResources Leftover resource 0x14bdc8 with type 1,WINED3DRTYPE_SURFACE err:d3d:IWineD3DDeviceImpl_Release Context array not freed!
http://bugs.winehq.org/show_bug.cgi?id=11057
--- Comment #4 from Tobias Jakobi liquid.acid@gmx.net 2008-02-04 06:16:14 --- Visual errors still exit with recent wine version 0.9.54
Going to try the game on a different system (with different gfx card)
http://bugs.winehq.org/show_bug.cgi?id=11057
Jan Buecken jb.faq@gmx.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1
--- Comment #5 from Jan Buecken jb.faq@gmx.de 2008-02-18 07:21:59 --- *** This bug has been confirmed by popular vote. ***
http://bugs.winehq.org/show_bug.cgi?id=11057
Jan Buecken jb.faq@gmx.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jb.faq@gmx.de
--- Comment #6 from Jan Buecken jb.faq@gmx.de 2008-02-18 07:28:32 --- In Version 1.0 of the Game I have not this problem. But in Version 2.0 I can confirm it, with wine version 0.9.55.
http://bugs.winehq.org/show_bug.cgi?id=11057
--- Comment #7 from Tobias Jakobi liquid.acid@gmx.net 2008-06-06 18:38:38 --- Still heavy visual errors with version 2.1 of Blood 2 with wine-1.0_rc3.
BUT appearance of the errors has changed. I'm going to attach another screenshot. Looks like most textures are gone or applied elsewhere (where they shouldn't).
Console output: fixme:vxd:VXD_Open Unknown/unsupported VxD L"dinput.vxd". Try setting Windows version to 'nt40' or 'win31'. fixme:win:EnumDisplayDevicesW ((null),0,0x33d6a8,0x00000000), stub! fixme:x11drv:X11DRV_desktop_SetCurrentMode Cannot change screen BPP from 32 to 16 fixme:d3d:WineD3D_ChoosePixelFormat Add OpenGL context recreation support to SetDepthStencilSurface err:d3d:WineD3D_ChoosePixelFormat Can't find a suitable iPixelFormat fixme:d3d:WineD3D_ChoosePixelFormat Add OpenGL context recreation support to SetDepthStencilSurface err:ddraw:IDirectDrawSurfaceImpl_QueryInterface No interface fixme:d3d:IWineD3DDeviceImpl_ValidateDevice (0x149790) : stub fixme:d3d:state_subpixel Render state WINED3DRS_SUBPIXEL not implemented yet
http://bugs.winehq.org/show_bug.cgi?id=11057
--- Comment #8 from Tobias Jakobi liquid.acid@gmx.net 2008-06-06 18:39:14 --- Created an attachment (id=13762) --> (http://bugs.winehq.org/attachment.cgi?id=13762) blood2 version 2.1 visual errors
http://bugs.winehq.org/show_bug.cgi?id=11057
Tobias Jakobi liquid.acid@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |alexd4@inbox.lv
--- Comment #9 from Tobias Jakobi liquid.acid@gmx.net 2008-07-16 18:17:48 --- You see that the problem became worse over the time. First it was only the black artifact stuff on textures farther away from you. Future wine versions also broke texture rendering completly.
At least I now tracked down where the texture went missing. Regression testing reveals:
2caa797e76273852f3aa52491261e24a6d1229a7 is first bad commit commit 2caa797e76273852f3aa52491261e24a6d1229a7 Author: Alexander Dorofeyev alexd4@inbox.lv Date: Thu Apr 3 00:11:43 2008 +0300
ddraw: Set surface to NULL on failure in GetAttachedSurface.
:040000 040000 e9087f86ff61331be6fac680f2f085bc333f934f f0aa2844ee7a968592047fb36e183de4feef5620 M dlls
Adding Alex to CC.
I went down to wine version 0.9.19 but the original problem (the one this bug started with) was still there. At least the commit the regression test found fixes the problem with the black artifacts. Or makes it worse, your choice :)
Greets, Tobias
http://bugs.winehq.org/show_bug.cgi?id=11057
--- Comment #10 from Alexander Dorofeyev alexd4@inbox.lv 2008-07-17 12:09:14 --- Does this happen in the demo? And which card is it? Not the one with ext_paletted_texture by chance? I don't think I see these problems in the Blood 2 demo, but it is difficult to be sure because the input is totally broken.
http://bugs.winehq.org/show_bug.cgi?id=11057
--- Comment #11 from Tobias Jakobi liquid.acid@gmx.net 2008-07-17 15:40:21 --- You don't need input to verify this. Just start a random level, the effect is visible at once.
The bug isn't dependent von graphics card, it appears both on my Intel and the GeforceFX. Probably the demo is based on the original engine version.
This bug doesn't appear with version 1.0 of B2. You first need to patch it to version 2.1 to make it appear.
Greets, Tobias
http://bugs.winehq.org/show_bug.cgi?id=11057
--- Comment #12 from Tobias Jakobi liquid.acid@gmx.net 2008-08-04 07:39:43 --- I tested this a bit more.
First a few basic information: game patch level: 2.1.233 (full game)
Wine settings: OffscreenRenderingMode=auto PixelShaderMode=enabled RenderTargetLockMode=auto UseGLSL=disabled VertexShaderMode=hardware
Ingame settings: Direct3D Renderer (800x800-16) OptimizesSurfaces=enabled PolyGapFixing=enabled MipmapSharpening=enabled SinglePassMultiTexturing=enabled
Results with older wine versions: 0.9.25: rendering BAD, mipmaps appear to be colored wrong 0.9.30: rendering BAD, mipmaps appear to be colored black 0.9.45: rendering GOOD
I'm attaching screenshots for all three versions.
Doing a regression test between 0.9.30 and 0.9.45.
Greets, Tobias
http://bugs.winehq.org/show_bug.cgi?id=11057
Tobias Jakobi liquid.acid@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #13762|blood2 version 2.1 visual |blood2 version 2.1 visual description|errors |errors (wine git master) Attachment #13762|test2.jpg |b2_wine_git.jpg filename| |
--- Comment #13 from Tobias Jakobi liquid.acid@gmx.net 2008-08-04 07:41:18 --- (From update of attachment 13762) This is how texturing looks with wine git master (snapshot from 04.08.2008)
http://bugs.winehq.org/show_bug.cgi?id=11057
--- Comment #14 from Tobias Jakobi liquid.acid@gmx.net 2008-08-04 07:42:19 --- Created an attachment (id=15250) --> (http://bugs.winehq.org/attachment.cgi?id=15250) blood 2.1 texture issues (wine-0.9.25)
http://bugs.winehq.org/show_bug.cgi?id=11057
--- Comment #15 from Tobias Jakobi liquid.acid@gmx.net 2008-08-04 07:42:43 --- Created an attachment (id=15251) --> (http://bugs.winehq.org/attachment.cgi?id=15251) blood 2.1 texture issues (wine-0.9.30)
http://bugs.winehq.org/show_bug.cgi?id=11057
Tobias Jakobi liquid.acid@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #10074|0 |1 is obsolete| | Attachment #10075|0 |1 is obsolete| |
--- Comment #16 from Tobias Jakobi liquid.acid@gmx.net 2008-08-04 07:43:07 --- Created an attachment (id=15252) --> (http://bugs.winehq.org/attachment.cgi?id=15252) blood 2.1 texture issues (wine-0.9.45)
http://bugs.winehq.org/show_bug.cgi?id=11057
--- Comment #17 from Tobias Jakobi liquid.acid@gmx.net 2008-08-04 14:44:04 --- Hmm, i though what the faulty commit had to be in either dlls/wined3d or dlls/ddraw. I therefore only bisected in those two dirs.
However the commit I got in the end was not the faulty one. After narrowing it down to like 10 commits I made a manual search and this commit turns out to be the one FIXING the problem:
[aaf477f292c77ca7d738784ac1100ba58ac4e27d] server: Change the timeout handling to use NT-style 64-bit timeouts everywhere.
Link: http://source.winehq.org/git/wine.git/?a=commit;h=aaf477f292c77ca7d738784ac1...
Commit aaf477f292c77ca7d738784ac1100ba58ac4e27d is just between wine-0.9.35 and wine-0.9.36
I'm still wondering how this should fix such an issue?!
Now bisecting between wine-0.9.48 and wine-0.9.52 to find the commit which broke rendering again, hopefully this turns out to be something in wined3d or ddraw...
Greets, Tobias
http://bugs.winehq.org/show_bug.cgi?id=11057
Tobias Jakobi liquid.acid@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |julliard@winehq.org
--- Comment #18 from Tobias Jakobi liquid.acid@gmx.net 2008-08-04 17:59:29 --- Regression testing between 0.9.48 and 0.9.52 turned up:
95c728551d5ee9b71d2a6328d0220a8b678c5225 is first bad commit commit 95c728551d5ee9b71d2a6328d0220a8b678c5225 Author: Alexandre Julliard julliard@winehq.org Date: Wed Nov 7 12:31:16 2007 +0100
include: Mark imported functions with hidden visibility.
:040000 040000 7fa4ab1e22a17353ca790fb2f24b0f1d580958b3 9c04e6180be0b1e3ce8d6e2adffc91a25408a3f7 M include
Bisect log: git-bisect start # good: [444b3c7a58951d3fa54f5817b477b4c8f5c99552] Release 0.9.48. git-bisect good 444b3c7a58951d3fa54f5817b477b4c8f5c99552 # bad: [c03617509409fb5a1f8528c6f927c0bc7ed9d2ae] Release 0.9.52. git-bisect bad c03617509409fb5a1f8528c6f927c0bc7ed9d2ae # bad: [8c2b994c4668395e8234dd218fbbc9ba3b7abcb5] kernel32: Terminate child process in virtual tests. git-bisect bad 8c2b994c4668395e8234dd218fbbc9ba3b7abcb5 # bad: [f727e56d6d330b5ed5103f4d93d25d529c792bfb] wininet: Initialize ftp sockets. git-bisect bad f727e56d6d330b5ed5103f4d93d25d529c792bfb # good: [abd95840a58635a51e48040425def4b8688dfad3] inetcomm: Add stubs for MimeOleSetCompatMode and MimeOleCreateMessage. git-bisect good abd95840a58635a51e48040425def4b8688dfad3 # good: [f309cdf733caaf3219b51db91256421ae9c9f011] mshtml: Store HTMLDocument pointer in BSCallback object. git-bisect good f309cdf733caaf3219b51db91256421ae9c9f011 # good: [d2c166bbb7ef13f62ba08d466dfb7a3d59145d49] d3d9: Initialize the test rectangle correctly. git-bisect good d2c166bbb7ef13f62ba08d466dfb7a3d59145d49 # bad: [61d58c15aaf9660f9e13f45b33a0559201f84617] rsaenh: Fix a comment. git-bisect bad 61d58c15aaf9660f9e13f45b33a0559201f84617 # bad: [9260fcf7acafc15364340b457e7f01bb1216b564] rsaenh: Use helper function to delete a key container's registry key. git-bisect bad 9260fcf7acafc15364340b457e7f01bb1216b564 # good: [16d85e2d303e5612c575ab0fd1fd51542d670506] include: Add WINBASEAPI to the exported kernel32 functions. git-bisect good 16d85e2d303e5612c575ab0fd1fd51542d670506 # bad: [95c728551d5ee9b71d2a6328d0220a8b678c5225] include: Mark imported functions with hidden visibility. git-bisect bad 95c728551d5ee9b71d2a6328d0220a8b678c5225 # good: [6678c07f5784365fee9dc3c43f71f9712897cfde] include: Only use DECLSPEC_IMPORT for Windows compilers in unicode.h. git-bisect good 6678c07f5784365fee9dc3c43f71f9712897cfde
Now I'm confused...?!
Greets, Tobias
http://bugs.winehq.org/show_bug.cgi?id=11057
--- Comment #19 from Jan Buecken jb.faq@gmx.de 2008-08-04 20:14:04 --- Created an attachment (id=15276) --> (http://bugs.winehq.org/attachment.cgi?id=15276) to my comment to comment 18
Hi, I can "nearly" confirm what Tobias said in comment 18. "nearly" means that before the patch it looks like this funny picture. But with the commit I get the same problem described at the beginning of this bug, except that the normal textures are coloured like in the picture, but the black artifacts begins at the same position.
http://bugs.winehq.org/show_bug.cgi?id=11057
Tobias Jakobi liquid.acid@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Blood 2:The Chosen (Version |Blood 2: The Chosen (v.2.1) |2.1) - rendering range |- all textures corrupted |problem |
--- Comment #20 from Tobias Jakobi liquid.acid@gmx.net 2008-09-23 12:19:09 --- Reconfirming with wine-1.1.5
http://bugs.winehq.org/show_bug.cgi?id=11057
hack-o-matic lct@mail.ru changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |lct@mail.ru
http://bugs.winehq.org/show_bug.cgi?id=11057
--- Comment #21 from hack-o-matic lct@mail.ru 2008-10-01 04:29:48 --- Created an attachment (id=16393) --> (http://bugs.winehq.org/attachment.cgi?id=16393) 2.1.233; d3dren, LOW detail
Setting detail to LOW, solves the texturing problem a bit. On mid, texture mess comes back. On high, no textures are applied(white),and if player starts shooting, they are applied randomly for this period.
Ubuntu Studio 8.04//GeForce 6800@128Mb//2.1.2 NVIDIA 169.12//Athlonxp3200+//1GbDDRRAM
Wine 1.1.5//kernel 2.6.24-19
http://bugs.winehq.org/show_bug.cgi?id=11057
--- Comment #22 from Tobias Jakobi liquid.acid@gmx.net 2008-10-10 01:49:38 --- Hi there,
I just tried to settings game details to low and yes, that partially fixes the problem. However the game HUD is still messed up and performance is really BAD.
http://bugs.winehq.org/show_bug.cgi?id=11057
Tobias Jakobi liquid.acid@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |regression
http://bugs.winehq.org/show_bug.cgi?id=11057
--- Comment #23 from Tobias Jakobi liquid.acid@gmx.net 2008-11-17 17:24:28 --- Reconfirming with newest git master.
http://bugs.winehq.org/show_bug.cgi?id=11057
--- Comment #24 from Tobias Jakobi liquid.acid@gmx.net 2008-11-22 14:36:14 --- Reconfirming with wine-1.1.9
http://bugs.winehq.org/show_bug.cgi?id=11057
--- Comment #25 from Tobias Jakobi liquid.acid@gmx.net 2009-01-24 18:46:43 --- Issue changed with current git master.
Just tested this again on my Geforce FX 5900.
graphics=HIGH: No issues anymore, everything rendered fine graphics=LOW,MEDIUM: Texturing issues, I'll attach a screenshot
The situation improved though :)
http://bugs.winehq.org/show_bug.cgi?id=11057
--- Comment #26 from Tobias Jakobi liquid.acid@gmx.net 2009-01-24 18:48:01 --- Created an attachment (id=18972) --> (http://bugs.winehq.org/attachment.cgi?id=18972) b2 on geforce fx 5900 with latest git master (graphics=MEDIUM)
http://bugs.winehq.org/show_bug.cgi?id=11057
--- Comment #27 from Tobias Jakobi liquid.acid@gmx.net 2009-01-24 18:49:58 --- Ah yes, I'm going to also test this on my Intel i915.
Forgot to mention that MEDIUM and LOW graphics triggers these console messages: err:d3d_surface:d3dfmt_p8_init_palette This code should never get entered for DirectDraw!, expect problems
I think alexd4 knows these! :)
http://bugs.winehq.org/show_bug.cgi?id=11057
--- Comment #28 from Tobias Jakobi liquid.acid@gmx.net 2009-01-29 17:18:07 --- It looks even better ingame when I use my Intel i915.
Only the HUD is completly messed up and when returning from ingame to the main menu the game slows down into a crawl and menu rendering is really messed up afterwards (looks like blending issues, since it looks like it's overdrawn with some transparent quad).
http://bugs.winehq.org/show_bug.cgi?id=11057
--- Comment #29 from Tobias Jakobi liquid.acid@gmx.net 2009-03-06 04:57:04 --- Reconfirming with wine-1.1.16
http://bugs.winehq.org/show_bug.cgi?id=11057
--- Comment #30 from Tobias Jakobi liquid.acid@gmx.net 2009-04-19 09:30:01 --- Reconfirming with wine-1.1.19
--- Comment #31 from Austin English austinenglish@gmail.com 2009-10-29 15:25:19 --- Is this still an issue in current (1.1.32 or newer) wine?
http://bugs.winehq.org/show_bug.cgi?id=11057
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download URL| |http://www.fileplanet.com/4 | |7149/40000/fileinfo/Blood-2 | |:-The-Chosen-Demo
http://bugs.winehq.org/show_bug.cgi?id=11057
--- Comment #32 from Tobias Jakobi liquid.acid@gmx.net 2010-05-19 12:00:14 --- Created an attachment (id=28090) --> (http://bugs.winehq.org/attachment.cgi?id=28090) blood pagefaults
With latest stable wine (version 1.1.44) it's not possible anymore to start either the full game or the demo, it simply pagefaults directly after leaving the launcher.
http://bugs.winehq.org/show_bug.cgi?id=11057
--- Comment #33 from Tobias Jakobi liquid.acid@gmx.net 2010-05-19 12:13:07 --- Created an attachment (id=28093) --> (http://bugs.winehq.org/attachment.cgi?id=28093) b2demo with wine-1.1.44
Strange, had to restart the game a few times and now it works...
Anyway, textures are still missing - performance is horrible, screenshot is attached.
http://bugs.winehq.org/show_bug.cgi?id=11057
joaopa jeremielapuree@yahoo.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jeremielapuree@yahoo.fr
--- Comment #34 from joaopa jeremielapuree@yahoo.fr 2011-05-13 00:39:37 CDT --- Strangely, the demo crashes but remains playable. Anyway, textures are good and the game is very playable. Except, the kind o crash, I think we can close this bug as fixed.
Maybe, it would be good to open a new bug report for the seem-like crash.
http://bugs.winehq.org/show_bug.cgi?id=11057
Dan Kegel dank@kegel.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |dank@kegel.com Resolution| |FIXED
--- Comment #35 from Dan Kegel dank@kegel.com 2011-06-14 18:31:15 CDT --- Works here, no crash at all with current git.
http://bugs.winehq.org/show_bug.cgi?id=11057
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #36 from Alexandre Julliard julliard@winehq.org 2011-06-24 17:43:51 CDT --- Closing bugs fixed in 1.3.23.