Emulator Issues #13918
openMatrix lingering behavior not emulated
0%
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)
- Load 2 different matrices into GX_PNMTX0 and GX_PNMTX1
- Call GX_SetCurrentMtx(GX_PNMTX0)
- Draw a model with no matrix index data. It will use the first matrix.
- Draw a model with matrix index data. It's last vertex points to GX_PNMTX1.
- 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
Updated by liyliyliyliy 6 months ago
I do not know of any games this affects.
Updated by liyliyliyliy 6 months ago
- File wiimtxissue.png wiimtxissue.png added
- File dolphinmtxissue.png dolphinmtxissue.png added
- File mtxissuediff.png mtxissuediff.png added
Here's XFB dumps from the application, and a difference map
Updated by liyliyliyliy 2 months ago
- File Screenshot 2026-03-14 at 7.45.48 AM.png Screenshot 2026-03-14 at 7.45.48 AM.png added
- File Screenshot 2026-03-14 at 7.46.18 AM.png Screenshot 2026-03-14 at 7.46.18 AM.png added
- File mtxtestromwii.dol mtxtestromwii.dol added
- File mtxtestrom.zip mtxtestrom.zip added
i made a test rom. triangle on the left indicates a fail. issue still present in 2603