http://bugs.winehq.org/show_bug.cgi?id=27263
Summary: Broken depth test for translucent surfaces in Arx Fatalis (d3d 7 game) Product: Wine Version: 1.3.19 Platform: x86-64 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: directx-d3d AssignedTo: wine-bugs@winehq.org ReportedBy: dscharrer@gmail.com
Created an attachment (id=34866) --> (http://bugs.winehq.org/attachment.cgi?id=34866) Screenshot of translucent water being rendered in front of a bridge.
Starting with wine 1.3.19 the game Arx Fatalis draws translucent surfaces in front of other surfaces, even if they should be behind them.
This can be seen in the original binary (the game is not freely available, bu there is a demo) as well as in the ongoing port at https://github.com/lubosz/ArxFatalis Arx Fatalis uses direct3d 7.
The bug is also in current master (tested commit 456e48efa1df91cee6149b67187812e16350c474)
git bisect blames:
96b758f7b37033bf382ce40dd3310965d3ac3f76 is the first bad commit commit 96b758f7b37033bf382ce40dd3310965d3ac3f76 Author: Stefan Dösinger stefan@codeweavers.com Date: Thu Apr 21 22:36:11 2011 +0200
d3d: Map D3DRS_ZBIAS to WINED3DRS_DEPTHBIAS.
ZBIAS was removed in d3d9 and replaced with DEPTHBIAS. Currently wined3d implements both independently which will cause trouble if we want to set the depthbias value depending on the depth stencil format.