https://bugs.dolphin-emu.org/https://bugs.dolphin-emu.org/favicon.ico?12014-01-01T22:30:41ZDolphin bug trackerEmulator - Emulator Issues #6914: Sonic Unleashed along with many other games is not showing any 2D graphics.https://bugs.dolphin-emu.org/issues/6914?journal_id=7088642014-01-01T22:30:41ZNeoBrainXNeoBrainX@gmail.com
<ul></ul><p>Of course, I actually meant that revision 3aa0a63fe636 specifically was the commit which reverted the hack that made OpenGL work at all.</p>
Emulator - Emulator Issues #6914: Sonic Unleashed along with many other games is not showing any 2D graphics.https://bugs.dolphin-emu.org/issues/6914?journal_id=7088652014-01-01T22:38:17Zkostamarinokostamarino@gmail.com
<ul></ul><p>Actually it also affects sonic colours with opengl, similar issue with 2d elements not showing up.</p>
Emulator - Emulator Issues #6914: Sonic Unleashed along with many other games is not showing any 2D graphics.https://bugs.dolphin-emu.org/issues/6914?journal_id=7088662014-01-01T22:40:41Zpierrepierre@pirsoft.de
<ul></ul><p>For easy access, the problem as described in the comment reverted in revision 3aa0a63fe636:<br>
Sonic Unleashed puts its final rendering at the near or far plane of the viewing frustrum(actually box, they use orthogonal projection for that), and we end up putting it just beyond, and the rendering gets clipped away. (The primitive gets dropped)</p>
Emulator - Emulator Issues #6914: Sonic Unleashed along with many other games is not showing any 2D graphics.https://bugs.dolphin-emu.org/issues/6914?journal_id=7088672014-01-01T23:04:48ZNeoBrainXNeoBrainX@gmail.com
<ul></ul><p>More specifically after playing around in the software renderer a bit, it looks like during clipping, projectedPosition.z + projectedPosition.w equals -0.0000001192092895507812500, which is smaller than 0 and thus fails the clipping test.</p>
<p>My guess is that screen coordinates aren't stored as floats but as fixed point values. This guess is based on an analogy to the PSP, which stores screen coordinates as 12.4 fixed point. A homebrew application should probably be written to figure out if the GC/Wii do a similar thing. Alternatively, maybe some patent texts have information about it.</p>
Emulator - Emulator Issues #6914: Sonic Unleashed along with many other games is not showing any 2D graphics.https://bugs.dolphin-emu.org/issues/6914?journal_id=7088682014-01-02T00:57:15ZNeoBrainXNeoBrainX@gmail.com
<ul></ul><p>Potentially interesting: If I let projectedPosition.z + projectedPosition.w equal to -0.0000001192092895507812500 (0xbc257f00) things show up correctly on my Wii, while a value of -0.0000002384185791015625000 (0xbc257f80) will break it even on the Wii. </p>
<p>At this stage I'm not sure if clipping is performed in low-precision floating-point coordinates or indeed in fixed-point math.</p>
Emulator - Emulator Issues #6914: Sonic Unleashed along with many other games is not showing any 2D graphics.https://bugs.dolphin-emu.org/issues/6914?journal_id=7088692014-01-06T01:53:21ZXtreme2damaxXtreme2damax@gmail.com
<ul></ul><p>I think Sonic Colors is also affected by the same issue. Only with OpeGL, D3D works fine except for an ugly white box caused by a regression from another commit.</p>
Emulator - Emulator Issues #6914: Sonic Unleashed along with many other games is not showing any 2D graphics.https://bugs.dolphin-emu.org/issues/6914?journal_id=7088702014-01-10T22:38:40Za41pizzaa41pizza@aim.com
<ul></ul><p>Is there a way to make a custom projection hack out of this, or is it something that can be put into the code for all time?</p>
Emulator - Emulator Issues #6914: Sonic Unleashed along with many other games is not showing any 2D graphics.https://bugs.dolphin-emu.org/issues/6914?journal_id=7088712014-01-10T22:39:41ZNeoBrainXNeoBrainX@gmail.com
<ul></ul><p>We don't want any new hacks, please stop suggesting anything like this because it's not the point of this report.</p>
Emulator - Emulator Issues #6914: Sonic Unleashed along with many other games is not showing any 2D graphics.https://bugs.dolphin-emu.org/issues/6914?journal_id=7088722014-01-10T23:05:00Za41pizzaa41pizza@aim.com
<ul></ul><p>Sorry, could have been more sepcific. I was wondering how this was going to be fixed: if it's a global projectedPosition change that could be applied to all games, or if is something that needs to be game-specific in the code.</p>
Emulator - Emulator Issues #6914: Sonic Unleashed along with many other games is not showing any 2D graphics.https://bugs.dolphin-emu.org/issues/6914?journal_id=7088732014-01-11T04:13:50Zpauldacheezpauldacheez@gmail.com
<ul></ul><p>It'll be a global change to how projectedPosition is calculated or used, nothing game-specific. This issue is meant to find out how to properly fix a bug that was previously fixed by a game-specific hack that neobrain removed.</p>
Emulator - Emulator Issues #6914: Sonic Unleashed along with many other games is not showing any 2D graphics.https://bugs.dolphin-emu.org/issues/6914?journal_id=7088762014-01-18T17:52:00ZJMC4789JMC4789@gmail.com
<ul></ul><p>True Crime: Streets of LA is also affected by this</p>
Emulator - Emulator Issues #6914: Sonic Unleashed along with many other games is not showing any 2D graphics.https://bugs.dolphin-emu.org/issues/6914?journal_id=7088772014-01-26T19:11:05ZJMC4789JMC4789@gmail.com
<ul></ul><p>Shrek 2 is also affected by this.</p>
<p><a href="http://www.mediafire.com/download/zsbbz0n0194limd/ShrekFifos.7z" class="external">http://www.mediafire.com/download/zsbbz0n0194limd/ShrekFifos.7z</a></p>
Emulator - Emulator Issues #6914: Sonic Unleashed along with many other games is not showing any 2D graphics.https://bugs.dolphin-emu.org/issues/6914?journal_id=7088782014-02-06T10:20:20ZJMC4789JMC4789@gmail.com
<ul></ul><p>F-Zero GX is also affected by this; kills videos.</p>
Emulator - Emulator Issues #6914: Sonic Unleashed along with many other games is not showing any 2D graphics.https://bugs.dolphin-emu.org/issues/6914?journal_id=7088792014-02-07T13:38:32ZNeoBrainXNeoBrainX@gmail.com
<ul></ul><p>I'm now 99% sure that Flipper uses fixed-point values for screen coordinates (i.e. the Clipper output and input of perspective divide).</p>
<p>The software renderer currently doesn't use guard-band clipping, but really should. I.e. instead of clipping at z<=w, we need to perform it at z<=2*w. As suggested by a certain blog post[1], the output of guardband-clipping is usually stored in fixed-point integers. I have performed some very limited testing and found an upper bound of 21 fractional bits (I'll work on getting a more specific value).</p>
<p>I'd like to write some hardware tests for this, specifically the behavior of Flipper when clipping is disabled, yet the z=0 plane is crossed by a primitive. This is because I know that there is a guard-band clipping plane for the far-z case (presumably at z=2*w, surely not at z=w though), but as may be the case not for z=0.</p>
<p>For what it's worth, extending the clipping region from ([-w,w],[-w,w],[-w,w]) to ([-2*w,2*w],[-2*w,2*w],[-2*w,2*w]) and converting the resulting coordinates to a fixpoint s11.21 format resolves the Sonic Unleashed issue. This only covers the software renderer so far, of course. I'm not quite sure how to port such a fix to the HW renderers, yet. Probably needs the same frac() hacks that our tev emulation used to have until tev_fixes_new.</p>
<p>[1] <a href="http://fgiesen.wordpress.com/2011/07/05/a-trip-through-the-graphics-pipeline-2011-part-5/" class="external">http://fgiesen.wordpress.com/2011/07/05/a-trip-through-the-graphics-pipeline-2011-part-5/</a></p>
Emulator - Emulator Issues #6914: Sonic Unleashed along with many other games is not showing any 2D graphics.https://bugs.dolphin-emu.org/issues/6914?journal_id=7088802014-02-24T22:42:15Zskidau
<ul></ul><p>Issue 7048 has been merged into this issue.</p>
Emulator - Emulator Issues #6914: Sonic Unleashed along with many other games is not showing any 2D graphics.https://bugs.dolphin-emu.org/issues/6914?journal_id=7088812014-04-28T04:33:31ZJMC4789JMC4789@gmail.com
<ul><li><strong>Regression</strong> set to <i>Yes</i></li><li><strong>Milestone</strong> set to <i>Current</i></li></ul><p>Removing the Sonic Unleashed Hack has caused regressions, which should be a high priority to fix. Putting milestone current at least.</p>
Emulator - Emulator Issues #6914: Sonic Unleashed along with many other games is not showing any 2D graphics.https://bugs.dolphin-emu.org/issues/6914?journal_id=7088822014-06-13T00:40:57Zskidau
<ul></ul><p>Issue 7379 has been merged into this issue.</p>
Emulator - Emulator Issues #6914: Sonic Unleashed along with many other games is not showing any 2D graphics.https://bugs.dolphin-emu.org/issues/6914?journal_id=7088832014-06-26T11:32:50Zkostamarinokostamarino@gmail.com
<ul></ul><p>Issue 7420 has been merged into this issue.</p>
Emulator - Emulator Issues #6914: Sonic Unleashed along with many other games is not showing any 2D graphics.https://bugs.dolphin-emu.org/issues/6914?journal_id=7088842014-08-10T14:03:11ZNeoBrainXNeoBrainX@gmail.com
<ul></ul><p>Given the time this issue has stayed unsolved now, I should point out that my statement in comment <a class="issue tracker-1 status-3 priority-2 priority-default closed" title="Emulator Issues: Remove WTL dependency (Fixed)" href="https://bugs.dolphin-emu.org/issues/17">#17</a> is mostly invalid. This has nothing to do with fixed-point coordinate systems or anything like that.</p>
<p>However, it surely enough seems that floating point rounding errors before/during clipping play a role here.</p>
Emulator - Emulator Issues #6914: Sonic Unleashed along with many other games is not showing any 2D graphics.https://bugs.dolphin-emu.org/issues/6914?journal_id=7088852014-08-14T07:32:59Ztueidjtueidj@hotmail.com
<ul></ul><p>I don't know if you ever got around to testing what happens when a primitive passes through z=0 and clipping is disabled, but I can say from experience the result is not pretty and probably not something any sane game would do (the SDK documentation advises against it in several places).<br>
There's a somewhat related hardware bug with very little documentation, when a primitive is near-clipped (passes through z=0) rasterized/vertex colour for the primitive gets screwed up; instead of interpolating between the clipped and non-clipped vertices, the colour values from the non-clipped get extrapolated.</p>
Emulator - Emulator Issues #6914: Sonic Unleashed along with many other games is not showing any 2D graphics.https://bugs.dolphin-emu.org/issues/6914?journal_id=7088862014-09-20T22:10:48ZJMC4789JMC4789@gmail.com
<ul></ul><p>Something has to be done about this in the meantime. I know it's not a great solution, but perhaps we should implement some projection hacks in the INIs for the games afflicted. No one is probably going to fix this very soon, and at least with a bandaid (better one than before, even!) we could move this to mile-stone next.</p>
Emulator - Emulator Issues #6914: Sonic Unleashed along with many other games is not showing any 2D graphics.https://bugs.dolphin-emu.org/issues/6914?journal_id=7088872014-09-20T23:30:02Zkostamarinokostamarino@gmail.com
<ul></ul><p>JMC while i don't have a problem reimplementing past projection hacks in the database i want the confirmation from others first that they are ok with it (so that i won't end up bothering about it for no reason).</p>
Emulator - Emulator Issues #6914: Sonic Unleashed along with many other games is not showing any 2D graphics.https://bugs.dolphin-emu.org/issues/6914?journal_id=7088882014-09-20T23:31:55ZJMC4789JMC4789@gmail.com
<ul></ul><p>neobrain prefers just merging in something for a stable release, but never putting it into master. So, we're still in disagreement right now. I'll need a word from him, as he obviously overrides my opinions on the matter.</p>
Emulator - Emulator Issues #6914: Sonic Unleashed along with many other games is not showing any 2D graphics.https://bugs.dolphin-emu.org/issues/6914?journal_id=7088892014-10-21T09:46:26Zkostamarinokostamarino@gmail.com
<ul></ul><p>Now all backends are consistent having the same behavior after <a href="https://github.com/dolphin-emu/dolphin/pull/1346" class="external">https://github.com/dolphin-emu/dolphin/pull/1346</a>.</p>
Emulator - Emulator Issues #6914: Sonic Unleashed along with many other games is not showing any 2D graphics.https://bugs.dolphin-emu.org/issues/6914?journal_id=7088902014-10-21T09:50:06Zkostamarinokostamarino@gmail.com
<ul></ul><p>Due to the above i am changing the title.</p>
Emulator - Emulator Issues #6914: Sonic Unleashed along with many other games is not showing any 2D graphics.https://bugs.dolphin-emu.org/issues/6914?journal_id=7088912014-10-22T18:05:47Zkostamarinokostamarino@gmail.com
<ul></ul><p>Issue 7779 has been merged into this issue.</p>
Emulator - Emulator Issues #6914: Sonic Unleashed along with many other games is not showing any 2D graphics.https://bugs.dolphin-emu.org/issues/6914?journal_id=7088922014-10-22T19:00:37ZJMC4789JMC4789@gmail.com
<ul></ul><p>Issue 7779 has been merged into this issue.</p>
Emulator - Emulator Issues #6914: Sonic Unleashed along with many other games is not showing any 2D graphics.https://bugs.dolphin-emu.org/issues/6914?journal_id=7088932014-10-23T13:03:43ZJMC4789JMC4789@gmail.com
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Fix pending</i></li></ul><p>This should fix all issues with the Sonic Unleashed Hack. <a href="https://github.com/dolphin-emu/dolphin/pull/1366" class="external">https://github.com/dolphin-emu/dolphin/pull/1366</a></p>
Emulator - Emulator Issues #6914: Sonic Unleashed along with many other games is not showing any 2D graphics.https://bugs.dolphin-emu.org/issues/6914?journal_id=7088942014-10-23T13:56:54ZJMC4789JMC4789@gmail.com
<ul></ul><p>Issue 7784 has been merged into this issue.</p>
Emulator - Emulator Issues #6914: Sonic Unleashed along with many other games is not showing any 2D graphics.https://bugs.dolphin-emu.org/issues/6914?journal_id=7088952014-10-29T03:13:51Zpauldacheezpauldacheez@gmail.com
<ul></ul><p>Issue 7803 has been merged into this issue.</p>
Emulator - Emulator Issues #6914: Sonic Unleashed along with many other games is not showing any 2D graphics.https://bugs.dolphin-emu.org/issues/6914?journal_id=7088962014-10-29T04:00:29Zpauldacheezpauldacheez@gmail.com
<ul></ul><p>Issue 7804 has been merged into this issue.</p>
Emulator - Emulator Issues #6914: Sonic Unleashed along with many other games is not showing any 2D graphics.https://bugs.dolphin-emu.org/issues/6914?journal_id=7088972014-10-29T04:04:33Zspongecraft1212spongecraft1212@live.com
<ul></ul><p>Glad to know that other people are having the same exact issue.</p>
Emulator - Emulator Issues #6914: Sonic Unleashed along with many other games is not showing any 2D graphics.https://bugs.dolphin-emu.org/issues/6914?journal_id=7088982014-11-12T03:49:28ZJMC4789JMC4789@gmail.com
<ul></ul><p>Issue 7849 has been merged into this issue.</p>
Emulator - Emulator Issues #6914: Sonic Unleashed along with many other games is not showing any 2D graphics.https://bugs.dolphin-emu.org/issues/6914?journal_id=7088992014-11-12T04:11:17Zzebralightningstudioscozebralightningstudiosco@gmail.com
<ul></ul><p>Whoops, I searched for True Crime LA and didn't find a preexisting issue, sorry about that! :\</p>
Emulator - Emulator Issues #6914: Sonic Unleashed along with many other games is not showing any 2D graphics.https://bugs.dolphin-emu.org/issues/6914?journal_id=7089002014-11-18T06:58:09ZJMC4789JMC4789@gmail.com
<ul></ul><p>Issue 7863 has been merged into this issue.</p>
Emulator - Emulator Issues #6914: Sonic Unleashed along with many other games is not showing any 2D graphics.https://bugs.dolphin-emu.org/issues/6914?journal_id=7089012014-12-04T03:11:47ZJMC4789JMC4789@gmail.com
<ul><li><strong>Status</strong> changed from <i>Fix pending</i> to <i>Fixed</i></li></ul><p>Fixed by 4.0-4451 -> <a href="https://dolphin-emu.org/download/dev/bfc62d2adaf350cfb990c9de98039b48707c1347/" class="external">https://dolphin-emu.org/download/dev/bfc62d2adaf350cfb990c9de98039b48707c1347/</a> at least for now.</p>
Emulator - Emulator Issues #6914: Sonic Unleashed along with many other games is not showing any 2D graphics.https://bugs.dolphin-emu.org/issues/6914?journal_id=7089022014-12-18T07:08:44ZMofoMan2000MofoMan2000@gmail.com
<ul></ul><p>This is still an issue with True Crime: Streets of LA as of 4.0-4669. That game might have a different issue.</p>
Emulator - Emulator Issues #6914: Sonic Unleashed along with many other games is not showing any 2D graphics.https://bugs.dolphin-emu.org/issues/6914?journal_id=7089032014-12-18T12:08:48Zkostamarinokostamarino@gmail.com
<ul></ul><p>Mofoman, with 4.0-4672 i can't see a problem, can you post a pic?</p>
Emulator - Emulator Issues #6914: Sonic Unleashed along with many other games is not showing any 2D graphics.https://bugs.dolphin-emu.org/issues/6914?journal_id=7089042015-01-02T01:56:08ZMofoMan2000MofoMan2000@gmail.com
<ul></ul><p><a href="http://www.mediafire.com/view/n5lrvh9w1bzcws3/WhurrIzMenu.png" class="external">http://www.mediafire.com/view/n5lrvh9w1bzcws3/WhurrIzMenu.png</a></p>
<p>Using 4.0-4889, OpenGL backend, highest accuracy settings enabled. Changing the settings makes no difference though, and it's even broken on the software backend.</p>
<p>Disk image info: True Crime: Streets of LA NTSC/USA (GTLE52). MD5 25a21ec4733cbfdec08f5f6e3f51454c</p>
<p>Should be perfectly fine, given that I dumped it from my own copy...</p>
Emulator - Emulator Issues #6914: Sonic Unleashed along with many other games is not showing any 2D graphics.https://bugs.dolphin-emu.org/issues/6914?journal_id=7089052015-01-02T01:57:16ZJMC4789JMC4789@gmail.com
<ul></ul><p>Try EFB2RAM, right?</p>
Emulator - Emulator Issues #6914: Sonic Unleashed along with many other games is not showing any 2D graphics.https://bugs.dolphin-emu.org/issues/6914?journal_id=7089062015-01-02T03:10:00ZMofoMan2000MofoMan2000@gmail.com
<ul></ul><p>But of course, I generally use EFB2RAM anyway. Real XFB makes the intro videos render, but doesn't fix the menu at all.</p>
<p>More information, my GPU is an NVidia GeForce GTX550Ti, driver version 347.09.</p>
Emulator - Emulator Issues #6914: Sonic Unleashed along with many other games is not showing any 2D graphics.https://bugs.dolphin-emu.org/issues/6914?journal_id=7089072015-01-02T03:28:58ZJMC4789JMC4789@gmail.com
<ul></ul><p>That's weird. I wonder if this game has another issue.</p>