Project

General

Profile

Actions

Emulator Issues #13918

open

Matrix lingering behavior not emulated

Emulator Issues #13918: Matrix lingering behavior not emulated

Added by liyliyliyliy 6 months ago. Updated 2 months ago.

Status:
New
Priority:
Normal
Assignee:
-
% Done:

0%

Operating system:
N/A
Issue type:
Bug
Milestone:
Regression:
No
Relates to usability:
No
Relates to performance:
No
Easy:
No
Relates to maintainability:
No
Regression start:
Fixed in:

Description

What's the problem? Describe what went wrong.

On Wii hardware, it is as if GX_SetCurrentMtx() is called corresponding to the last matrix sent in a draw containing matrix index data. Dolphin maintains the current matrix after these calls.

What steps will reproduce the problem?

(This is an example)

  1. Load 2 different matrices into GX_PNMTX0 and GX_PNMTX1
  2. Call GX_SetCurrentMtx(GX_PNMTX0)
  3. Draw a model with no matrix index data. It will use the first matrix.
  4. Draw a model with matrix index data. It's last vertex points to GX_PNMTX1.
  5. Draw a model with no matrix index data. On Dolphin, it will use GX_PNMTX0. On hardware, it will use GX_PNMTX1.

Is the issue present in the latest development version? For future reference, please also write down the version number of the latest development version.

Yes, 2509-371

Is the issue present in the latest release? For future reference, please also write down the version number of the latest release.

Yes, 2509

If your issue is a graphical issue, please attach screenshots and record a three frame fifolog of the issue if possible. Screenshots showing what it is supposed to look like from either console or older builds of Dolphin will help too. For more information on how to use the fifoplayer, please check here: https://wiki.dolphin-emu.org/index.php?title=FifoPlayer

The black of the character's eyes is erroneously using the same matrix as one of the pupils, because GX_SetCurrentMtx was not called after drawing the pupils. It draws correctly on the emulator.


Files

mtxfifo.dff.zip (4.66 MB) mtxfifo.dff.zip Fifo log liyliyliyliy, 11/11/2025 04:37 AM
mtxconsolescreenie.png (243 KB) mtxconsolescreenie.png Horrible console screenshot. liyliyliyliy, 11/11/2025 04:37 AM
ID-guy_2025-11-10_20-38-39.png (213 KB) ID-guy_2025-11-10_20-38-39.png Emulator screenshot. liyliyliyliy, 11/11/2025 04:39 AM
wiimtxissue.png (187 KB) wiimtxissue.png Console XFB dump liyliyliyliy, 11/11/2025 04:52 AM
dolphinmtxissue.png (182 KB) dolphinmtxissue.png Emulator XFB dump liyliyliyliy, 11/11/2025 04:52 AM
mtxissuediff.png (213 KB) mtxissuediff.png Difference. liyliyliyliy, 11/11/2025 04:53 AM
Screenshot 2026-03-14 at 7.45.48 AM.png (130 KB) Screenshot 2026-03-14 at 7.45.48 AM.png testrom wii hardware screenie liyliyliyliy, 03/14/2026 02:45 PM
Screenshot 2026-03-14 at 7.46.18 AM.png (23.7 KB) Screenshot 2026-03-14 at 7.46.18 AM.png testrom dolphin 2603 fail screenie liyliyliyliy, 03/14/2026 02:46 PM
mtxtestromwii.dol (166 KB) mtxtestromwii.dol testrom executable liyliyliyliy, 03/14/2026 02:46 PM
mtxtestrom.zip (3.47 KB) mtxtestrom.zip testrom source code liyliyliyliy, 03/14/2026 02:47 PM

Updated by liyliyliyliy 6 months ago Actions #1

I do not know of any games this affects.

Updated by liyliyliyliy 6 months ago Actions #2

Here's XFB dumps from the application, and a difference map

Actions

Also available in: PDF Atom