[Bug 27145] Weapons Translucent Like Glass in FEAR 1 and 2.

wine-bugs at winehq.org wine-bugs at winehq.org
Thu Dec 1 15:41:06 CST 2011


http://bugs.winehq.org/show_bug.cgi?id=27145

Stefan Dösinger <stefan at codeweavers.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |stefan at codeweavers.com

--- Comment #43 from Stefan Dösinger <stefan at codeweavers.com> 2011-12-01 15:41:06 CST ---
FEAR 1 is setting WINED3DRS_DEPTHBIAS = -0.5, which is a pretty large value.
E.g. Fear itself uses -0.000000178... for the decals, which is a sane value.
The d3d value is simply added to the z coordinates of the fragments, so -0.5 is
half the depth range.

I've no idea yet for a proper fix. My first guess would be that there's
something that disables the polygon offset. The game is never using
pretransformed vertices, which excludes the most likely candidate. Other things
I can imagine are that d3d adds the depth bias after clipping, that there is a
maximum bias or that the depth bias is ignored if the pixel shader writes Z
values.

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.


More information about the wine-bugs mailing list