http://bugs.winehq.org/show_bug.cgi?id=18225
Summary: HL2: Intro movie garbled with medium resolutions Product: Wine Version: 1.1.20 Platform: PC-x86-64 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: directx-d3d AssignedTo: wine-bugs@winehq.org ReportedBy: liquid.acid@gmx.net
The HL2 intro sequence (showing the Valve guy and the copyright info) is garbled when the ingame resolution is set to a value of 800x600 or lower.
The intro looks fine with a resolution of 1024x768, so there is probably some problem with downsampling.
Tested on a nvidia Geforce FX 5900. Drivers: nvidia-drivers-173.14.18
Going to attach so screenshots.
http://bugs.winehq.org/show_bug.cgi?id=18225
--- Comment #1 from Tobias Jakobi liquid.acid@gmx.net 2009-04-26 10:14:11 --- Created an attachment (id=20732) --> (http://bugs.winehq.org/attachment.cgi?id=20732) valve guy (1024x768) - how it should look like
http://bugs.winehq.org/show_bug.cgi?id=18225
--- Comment #2 from Tobias Jakobi liquid.acid@gmx.net 2009-04-26 10:14:59 --- Created an attachment (id=20733) --> (http://bugs.winehq.org/attachment.cgi?id=20733) valve guy (800x600) - downsampling artifacts
http://bugs.winehq.org/show_bug.cgi?id=18225
--- Comment #3 from Tobias Jakobi liquid.acid@gmx.net 2009-04-26 10:15:28 --- Created an attachment (id=20734) --> (http://bugs.winehq.org/attachment.cgi?id=20734) copyright message (1024x768) - how it should look like
http://bugs.winehq.org/show_bug.cgi?id=18225
--- Comment #4 from Tobias Jakobi liquid.acid@gmx.net 2009-04-26 10:16:09 --- Created an attachment (id=20735) --> (http://bugs.winehq.org/attachment.cgi?id=20735) copyright message (800x600) - downsampling artifacts
http://bugs.winehq.org/show_bug.cgi?id=18225
--- Comment #5 from Tobias Jakobi liquid.acid@gmx.net 2009-06-25 15:42:27 --- Similar garbling (upsampling artifacts) happens for the intro and outro video of Max Payne 2 (the demo works for that), when disabling ARB_npot and therefore forcing the use of tex_rect.
The videos seem to have a native width of 640 pixels, so if you select a ingame res of 640x480 the videos are rendered fine. Once you select a different res the garbling becomes apparent. With a res with twice the native width (e.g. 1280x1024) you clearly see that the videos are rendered with simple "pixel doubling", which translates to GL's nearest filter.
tex_rect is capable of bilinear (GL's linear) filtering, they just don't support any mipmapping.
Current hack edits IWineD3DTextureImpl_BindTexture in texture.c and replaces GL_NEAREST with GL_LINEAR and WINED3DTEXF_POINT with WINED3DTEXF_LINEAR in the condnp2 handling branch. However this doesn't seem to have any effect on the issue (it should though).
Replacing all entries of minMipLookup_noFilter (directx.c) with GL_LINEAR restores correct rendering of the videos. stefand suspect a driver bug concerning min/mag-filtering and base LOD.
Note to me: Try to write a GLUT testcase for this.
http://bugs.winehq.org/show_bug.cgi?id=18225
--- Comment #6 from Austin English austinenglish@gmail.com 2010-06-04 13:26:45 --- Does the demo have the same problem? http://download.cnet.com/Half-Life-2-demo/3000-7441_4-10349536.html
is this still an issue in current (1.2-rc2 or newer) wine?
http://bugs.winehq.org/show_bug.cgi?id=18225
Jordan Smith jordm.s@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jordm.s@gmail.com
--- Comment #7 from Jordan Smith jordm.s@gmail.com 2011-06-29 19:58:34 CDT --- I do not experience this bug with 1.3.23.
http://bugs.winehq.org/show_bug.cgi?id=18225
Wylda wylda@volny.cz changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED CC| |wylda@volny.cz Resolution| |FIXED
--- Comment #8 from Wylda wylda@volny.cz 2011-06-30 07:02:17 CDT ---
Reported fixed.
http://bugs.winehq.org/show_bug.cgi?id=18225
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #9 from Alexandre Julliard julliard@winehq.org 2011-07-08 13:47:26 CDT --- Closing bugs fixed in 1.3.24.