[Bug 25761] Far Cry 1 Demo: Everything is covered by blue fog

WineHQ Bugzilla wine-bugs at winehq.org
Tue Jan 21 09:34:10 CST 2020


https://bugs.winehq.org/show_bug.cgi?id=25761

Paul Gofman <gofmanp at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |gofmanp at gmail.com

--- Comment #12 from Paul Gofman <gofmanp at gmail.com> ---
Created attachment 66286
  --> https://bugs.winehq.org/attachment.cgi?id=66286
Wrong PoC patch

This is a bug in demo which should be reproducible on Nvidia only (both under
Windows and Wine).

The demo displays exactly the same blue fog for me on Windows with Nvidia card.
Some Windows users also reported this problem in demo and in early versions of
the game [1].

The demo renders fine under Wine if to override reported video card to AMD by
setting, for example, the following hex values under
HKCU\Software\Wine\Direct3D:

VideoPciVendorID: 1002
VideoPciDeviceID: 67df

If the game sees Nvidia card, it works in some different way. In problematic
draws use vertex shaders which output fog coordinate with render states
D3DRS_FOGVERTEXMODE=D3DFOG_NONE and D3DRS_FOGTABLEMODE=D3DFOG_LINEAR. With some
very old Nvidia drivers this used to work, that is, the vertex shader provided
fog coordinate was used. But that was changed and since long ago Nvidia uses
position coordinate as fog coordinate just like AMD with these render states.
The attached patch fixes the rendering for the game on Nvidia without video
card override. But it is wrong and breaks existing tests.

So this bug is probably invalid.

1.
https://forums.ubisoft.com/showthread.php/117610-All-is-Blue-Fog-Nvidia-61-77-Drivers-Fog-Emulation-does-not-fix

-- 
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