Project

General

Profile

Actions

Emulator Issues #12713

closed

Micro Machines for GameCube: Shadows are missing

Added by Alopex over 2 years ago. Updated about 2 years ago.

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

0%

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

Description

Game Name?

Micro Machines

Game ID?

GMOP70

MD5 Hash?

a3842e886346497ad83c66915111821d

What's the problem? Describe what went wrong.

Game is completely missing shadows for the player vehicles in either OpenGL or Vulkan renderer. (Unable to test DX11/12 on Win 7)

What steps will reproduce the problem?

Simply start a race and observe that no shadows exist beneath the player cars.

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, 5.0-15360

Is the issue present in the latest stable version?

Yes

What are your PC specifications?

Windows 7 Ultimate X64
Intel I7 4790K
Radeon R9 290X
8GB DDR3 RAM


Files

Dolphin-output.png (313 KB) Dolphin-output.png Dolphin: No shadows Alopex, 10/18/2021 12:51 PM
og-hardware.jpg (22.2 KB) og-hardware.jpg OG Hardware displaying shadows Alopex, 10/18/2021 12:51 PM
micro_machines_shadow.zip (3.27 MB) micro_machines_shadow.zip FIFO log: Shadows Missing Under Vehicles in Micro Machines ZephyrSurfer, 11/18/2021 12:57 AM
micro_machines_no_shadow.png (206 KB) micro_machines_no_shadow.png Broken. No shadows displayed ZephyrSurfer, 11/18/2021 01:02 AM
micro_machines_shadow.png (228 KB) micro_machines_shadow.png Working. Shadows display ZephyrSurfer, 11/18/2021 01:04 AM

Related issues 1 (0 open1 closed)

Related to Emulator - Emulator Issues #5197: Fortune Street: White box in the center of the screen during gameplayFixed

Actions
Actions #1

Updated by Miksel12 over 2 years ago

That sounds a bit like this issue: https://bugs.dolphin-emu.org/issues/11800
Could you try OpgenGL or Vulkan with fast depth on (if you haven't done so already)?

Actions #2

Updated by Alopex over 2 years ago

Miksel12 wrote:

That sounds a bit like this issue: https://bugs.dolphin-emu.org/issues/11800
Could you try OpgenGL or Vulkan with fast depth on (if you haven't done so already)?

Fast depth is already on by default, but on or off, there is no change.

Actions #5

Updated by JosJuice about 2 years ago

  • Status changed from New to Fixed
  • Fixed in set to 5.0-16012
Actions #6

Updated by pokechu22 about 2 years ago

  • Subject changed from Micro Machines for GameCube: Shadows are missing to Micro Machines for GameCube: Shadows are missing
  • Regression changed from No to Yes
  • Regression start set to 5.0-1473

Looking at the fifolog, the game does shadows by drawing an object with only alpha writing enabled (colors aren't written), and then it performs an EFB copy of the alpha channel and uses that for drawing the shadows. In object 84, the TEV "b" entry for alpha is a constant alpha value of 255, and the "c" entry is the rasterized color which comes out to an alpha value of 4. With the TEV alpha lerp change to fix #5197 (which disabled/invertex the special rounding logic for lerping for alpha), those were multiplied as 4*(255/256), which rounded down to 3; now, they are multiplied out as 4*(256/256), which comes out as 4. (The EFB can only store 6 bits of alpha, so 4 is the lowest nonzero value it can store.) The important point here is that this game directly cares about the way the multiplication works.

Actions #7

Updated by pokechu22 about 2 years ago

  • Related to Emulator Issues #5197: Fortune Street: White box in the center of the screen during gameplay added
Actions

Also available in: Atom PDF