Project

General

Profile

Actions

Emulator Issues #9125

open

Xenoblade - Incorrect Upscaled Lighting Effects

Added by Bighead.0 almost 9 years ago. Updated almost 7 years 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

Game Name?

Xenoblade Chronicles - Any Region

What's the problem? Describe what went wrong.

I've known about this for years, but never reported it because I wasn't sure if it was a legit bug or not. I always just assumed OpenGL was more accurate than D3D and that was why there was a difference between the two. But now there is no way to get the correct effect, hence this issue report.

Some lighting effects are improperly upscaled, which used to look fine in OpenGL using EFB to RAM, but no longer looks correct since v4.0-7620. Xenoblade requires "Scaled EFB Copy" for higher IRs to have any effect. The lighting effects in question apply to:

  • Ether deposits
  • Lighting in High Entia Tomb
  • Monado III lighting
  • Cave exit lighting

These effects always looked incorrect in D3D, but could look correct with OpenGL and EFB to RAM. The PR that unified the EFB copy implementations also broke this in OpenGL.

What steps will reproduce the problem?

Just find any area/object with these lighting effects.

Which versions of Dolphin did you test on? Does using an older version of Dolphin solve your issue? If yes, which versions of Dolphin used to work?

v4.0-7614 - The effect looks correct using OpenGL and EFB to RAM. D3D has always looked bad.
v4.0-7620 - The effect always looks bad no matter what backend/settings are used.

**Is there any other relevant information? (e.g. logs, screenshots,
Correct - [[http://i.imgur.com/ZhE6FLy.jpg]]
Broken - [[http://i.imgur.com/Rbkkpnn.jpg]]


Files

8xIR - SX4E01-1.jpg (320 KB) 8xIR - SX4E01-1.jpg ofunniku, 12/05/2015 04:06 PM
Actions #1

Updated by Bighead.0 almost 9 years ago

A save file that loads where the screenshots were taken.

http://www.mediafire.com/download/6b6zn35rxxxz59x/monado01.zip

Actions #2

Updated by JMC4789 almost 9 years ago

  • Assignee set to phire

It looks like prior to that change, OpenGL + EFB2RAM wasn't falling back to EFB2Texture for lighting effects; which was causing it to "look better" in that instance because our EFB2Texture backend may have a bug in it. This issue is really confusingly worded compared to what is actually going on, so I'll try to explain it real quick here to my understanding (which, to be fair, could be totally wrong.)

There's could be a bug in the EFB Copies to Texture codepath causing lighting like this to upscale badly. See Metroid Prime 3 for more examples of this. Now, whether this is a bug in the EFB Copise to Texture codepath or not depends on this: does 1x IR look noticeably worse on EFB Copies to Texture? If not; it could be a consequence of EFB Copies to Texture simply supporting more stuff now. And if that is the case, unfortunately, there isn't much we can do. Prior to the change, it was falling back to EFB Copies to RAM erroneously (lighting should need EFB Copies to RAM,) and thusly not getting upscaled. I'll still ping the relevant parties to look at this and see if anything can be done.

Actions #3

Updated by ofunniku almost 9 years ago

From what I've seen, increasing the IR also makes the bloom shape more pronounced, which is likely what we are seeing.

8xIR attached, more screenshots in https://mega.nz/#F!xwE1nTha!MnRZzzgBl-s-FrFAyBpmfg

Actions #4

Updated by Bighead.0 almost 9 years ago

I never tried IRs above 4x, good thinking. It really does pronounce the issue much better (but slaughters my framerate :P). Here's a few more screenshots from other affected lights. Using 4.0-7614, first images are without EFB to RAM, second images are with it.

Crabble Shells
http://i.imgur.com/E1n1JJb.jpg
http://i.imgur.com/Iut471J.jpg

Ether Deposits
http://i.imgur.com/mi0fIDj.jpg
http://i.imgur.com/rNImdUG.jpg

Cave Lighting
http://i.imgur.com/WyKItsd.jpg
http://i.imgur.com/ySEXBy1.jpg

Actions #5

Updated by theincrediblemastere almost 9 years ago

I knew about this for months but didn't say anything because I know that making reports about enhancements breaking things is discouraged and sometimes even invalidates the whole issue depending on if it involves Anti-Aliasing or Texture Filtering at all.

But to see this issue get taken seriously sure is a pleasant surprise. Glad it isn't relegated to the Invalid/Won't Fix pile!

Actions #6

Updated by ofunniku almost 9 years ago

No worries, though it seems quiet this is being addressed.

Actions #7

Updated by phire almost 9 years ago

Don't get your hopes too high, the problem may be inherently "unsolvable" at higher IRs. I've been looking into the math/methods of various games' bloom effects.

We reserve the right to mark this as Won't Fix later, but for now it looks like some kind of fix might be possible.

Actions #8

Updated by kolano almost 7 years ago

Do we have any issue to group these bloom issues into. I'm presuming this is similar to a problem reported with "Zangeki no Reginleiv": "A bloom lighting effect in this title causes excessive blur around the character and other game elements."

Actions

Also available in: Atom PDF