http://bugs.winehq.org/show_bug.cgi?id=22317
Summary: Motocross madness demo has wrongly projected smoke Product: Wine Version: 1.1.42 Platform: x86 URL: http://www.microsoft.com/games/Motocross/downloads.htm OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: wylda@volny.cz
Created an attachment (id=27294) --> (http://bugs.winehq.org/attachment.cgi?id=27294) Smoke in Wine vs. WinXP
Motocross madness demo has wrongly projected smoke. Normally it should come from behind the bike, but instead it comes from center of the screen, thus it becomes unplayable (key F9 turns this graphical effect off).
Tested since 1.0-rc4 till now, but it isn't a regression. (Versions 1.1.18 and lower needs to apply commit fc87182d191a2b3daabf260d1ad4b12b157e3cd1 to be able to run mcm.exe)
Demo is quite small: 19MB
http://bugs.winehq.org/show_bug.cgi?id=22317
Wylda wylda@volny.cz changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download
http://bugs.winehq.org/show_bug.cgi?id=22317
--- Comment #1 from Wylda wylda@volny.cz 2010-06-20 06:25:58 ---
Still present in wine-1.2-rc4.
http://bugs.winehq.org/show_bug.cgi?id=22317
--- Comment #2 from Wylda wylda@volny.cz 2012-05-07 18:45:13 CDT ---
Still present in wine-1.5.3-188-gb80c71a.
http://bugs.winehq.org/show_bug.cgi?id=22317
joaopa jeremielapuree@yahoo.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jeremielapuree@yahoo.fr
--- Comment #3 from joaopa jeremielapuree@yahoo.fr 2012-05-26 13:13:19 CDT --- Can you test the patch attached in Bug 11819 ?
http://bugs.winehq.org/show_bug.cgi?id=22317
Jarkko K jarkko_korpi@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jarkko_korpi@hotmail.com
--- Comment #4 from Jarkko K jarkko_korpi@hotmail.com --- Demo link expired.
Here is new
http://www.fileplanet.com/10909/download/Motocross-Madness
sha1sum msmcm.exe 2fda6228a11f26787a153985825232428eb266ab msmcm.exe
Complains that it can't find 3d hardware, make sure it's INSTALLED.
:D
wine 1.7.15
So we are going wrong direction here.
https://bugs.winehq.org/show_bug.cgi?id=22317
--- Comment #5 from joaopa jeremielapuree@yahoo.fr --- Bug still there in current wine
https://bugs.winehq.org/show_bug.cgi?id=22317
--- Comment #6 from joaopa jeremielapuree@yahoo.fr --- Bug still there in current wine
https://bugs.winehq.org/show_bug.cgi?id=22317
--- Comment #7 from joaopa jeremielapuree@yahoo.fr --- Bug still there in current wine.
https://bugs.winehq.org/show_bug.cgi?id=22317
Sergey Isakov isakov-sl@bk.ru changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |isakov-sl@bk.ru
--- Comment #8 from Sergey Isakov isakov-sl@bk.ru --- I can't get first 3D scene. After all menu chosen htere will be race but screen is not changed. The sound is like the game works. Relevant log messages for my mind ~~~~ fixme:d3d:state_lastpixel Last Pixel Drawing Disabled, not handled yet fixme:d3d:state_subpixel Render state WINED3D_RS_SUBPIXEL not implemented yet. fixme:d3d:state_subpixelx Render state WINED3D_RS_SUBPIXELX not implemented yet. fixme:d3d:state_flushbatch Render state WINED3D_RS_FLUSHBATCH not implemented yet. ~~~
https://bugs.winehq.org/show_bug.cgi?id=22317
Wylda wylda@volny.cz changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW URL|http://www.microsoft.com/ga |http://www.fileplanet.com/1 |mes/Motocross/downloads.htm |0909/download/Motocross-Mad | |ness Distribution|--- |Debian Ever confirmed|0 |1
--- Comment #9 from Wylda wylda@volny.cz --- Confirming per comment 5 ~ 7. Replaced download link.
https://bugs.winehq.org/show_bug.cgi?id=22317
--- Comment #11 from Paul Gofman gofmanp@gmail.com --- (In reply to Paul Gofman from comment #10)
BTW this bug I came though just now looks closely related if not an exact duplicate: https://bugs.winehq.org/show_bug.cgi?id=11819#c37
SetViewport2 is also used here, so likely the difference in behaviour may be actually attributed to it as Octavian suggests there.
https://bugs.winehq.org/show_bug.cgi?id=22317
Paul Gofman gofmanp@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |gofmanp@gmail.com
--- Comment #10 from Paul Gofman gofmanp@gmail.com --- Created attachment 54217 --> https://bugs.winehq.org/attachment.cgi?id=54217 Quick fix for d3d_viewport_TransformVertices
I've tracked down the issue and attaching the patch as a proof of concept.
To run the game somehow and to come to the problem in the bug title I had to use native d3drm (I did not look what's wrong with the builtin one).
The game is using d3d2 interface. The problem is in ddraw's d3d_viewport_TransformVertices function, actually two of them: 1. It does not get a projection matrix set by application 2. It uses wrong scale derived from viewport for transformation.
The patch lets game to render "smoke" normally. It is not correct solution yet (apparently the current implementation is OK for some other use cases which will be broken by this patch), it breaks D3D1 unit tests, and apart from that needs unit tests to explore this functionality. I could guess that the behaviour difference can be attributed to d3d2 and changed from d3d1 (for which a unit test exists), but this should be tested to make a proper fix.
PS I think it is not smoke but rather dirt from the ground.
https://bugs.winehq.org/show_bug.cgi?id=22317
Wylda wylda@volny.cz changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch Summary|Motocross madness demo has |Motocross madness demo has |wrongly projected smoke |wrongly projected dirt | |(d3d_viewport_TransformVert | |ices needs projection | |matrix + wrong scale)
--- Comment #12 from Wylda wylda@volny.cz ---
Great, the patch works for me, thank you Paul. I admire your skill for finding & fixing in one day for this long standing bug.
I also have a problem with running this and filled a regression bug 40477.
https://bugs.winehq.org/show_bug.cgi?id=22317
Wylda wylda@volny.cz changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |directx-d3d
https://bugs.winehq.org/show_bug.cgi?id=22317
--- Comment #13 from Paul Gofman gofmanp@gmail.com --- (In reply to Wylda from comment #12)
I admire your skill for finding & fixing in one day for this long standing bug.
Please do not overestimate this, there is nothing exceptional about that. Any of Wine core developers could surely do the same, as well as many other people I see sometimes in bug comments deducing amazing scenarious of misbehaviour. I guess there just plenty of other bugs like this (along with ongoing development), and the bug should have a certain priority to worth the efforts of tracking it when the reason is not immediately clear from the output. This very bug is not particularly difficult when you have demo to run which reproduces the problem.
https://bugs.winehq.org/show_bug.cgi?id=22317
Alistair Leslie-Hughes leslie_alistair@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |leslie_alistair@hotmail.com
https://bugs.winehq.org/show_bug.cgi?id=22317
winetest@luukku.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |winetest@luukku.com, | |wylda@volny.cz
--- Comment #14 from winetest@luukku.com --- Fileplanet link gives me dead download.
Because of this patch that got committed it would be worth to retest this bug.
https://source.winehq.org/patches/data/126767
https://bugs.winehq.org/show_bug.cgi?id=22317
--- Comment #15 from joaopa jeremielapuree@yahoo.fr --- Here is a working link. Can an administrator put it in the download field?
https://bugs.winehq.org/show_bug.cgi?id=22317
fjfrackiewicz@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |fjfrackiewicz@gmail.com
--- Comment #16 from fjfrackiewicz@gmail.com --- (In reply to joaopa from comment #15)
Here is a working link. Can an administrator put it in the download field?
I think your link is missing :)
https://bugs.winehq.org/show_bug.cgi?id=22317
--- Comment #17 from joaopa jeremielapuree@yahoo.fr --- My bad: here it is https://ia800803.us.archive.org/16/items/MotocrossMadnessDemo/MotocrossMadne...
https://bugs.winehq.org/show_bug.cgi?id=22317
Stefan Dösinger stefandoesinger@gmx.at changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |stefandoesinger@gmx.at Resolution|--- |FIXED Fixed by SHA1| |58b82c67513e31dbb581633633b | |ca936e217f0f9
--- Comment #18 from Stefan Dösinger stefandoesinger@gmx.at --- This should be fixed by 58b82c67513e31dbb581633633bca936e217f0f9, please retest.
https://bugs.winehq.org/show_bug.cgi?id=22317
--- Comment #19 from Wylda wylda@volny.cz --- (In reply to Stefan Dösinger from comment #18)
This should be fixed by 58b82c67513e31dbb581633633bca936e217f0f9, please retest.
Yes, this is fixed. Thank you Paul for tracking down the issue and Stefan for the fix!
Story continues - bug 41451.
https://bugs.winehq.org/show_bug.cgi?id=22317
--- Comment #20 from Sergey Isakov isakov-sl@bk.ru --- Can't confirm as I still don't see racing screen. It is offscreen anyway.
https://bugs.winehq.org/show_bug.cgi?id=22317
--- Comment #21 from Wylda wylda@volny.cz --- (In reply to Sergey Isakov from comment #20)
Can't confirm as I still don't see racing screen. It is offscreen anyway.
If you see this problem in wine-1.9.20 and also in current git, than it is different problem. Maybe covered by other bug report.
https://bugs.winehq.org/show_bug.cgi?id=22317
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #22 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 1.9.21.