Project

General

Profile

Actions

Emulator Issues #6845

closed

Improper Texture Loading in OpenGL

Added by noian.xhh2a over 11 years ago.

Status:
Fixed
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 NTSC version

Game ID?
XX4E01

What went wrong?
Using the OpenGL backend, some HD textures load improperly.

What did you expect to happen instead?
Not to get a italicized Landmark text which DX9 backend does properly.

What steps will reproduce the problem?

  1. Install the HD Textures pack
  2. Settings are EFB to RAM, Cache, Safe, Ignore Format, OpenMP, FDC, Load Custom Textures
  3. Start the game, load a save, open up fast travel (- button)

Which versions of Dolphin did you test on?
4.0.1

Which version of Dolphin used to work?
No idea

What are your PC specifications (example: Operating System, CPU and GPU)?
Win 7 x64, i7-2600k overclocked (4.7Ghz), HD 6800 latest drivers.

64 or 32 bit Operating System?
64

64 or 32 bit Dolphin?
64

Any other relevant information (e.g. logs, screenshots, configuration
files)
Image of bug:
http://www.mediafire.com/view/r3m59yh5o8gp8je/dolbr.png

Actions #1

Updated by noian.xhh2a over 11 years ago

*Meant to say SX4E01 for the game ID.

Actions #2

Updated by degasus over 11 years ago

Can you may check which custom texture itself is broken? I guess it will be easier to check which one exactly is broken.

Actions #3

Updated by noian.xhh2a over 11 years ago

It's either e391690b_2 or 92287313_2 since those are the two copies of Landmark in the HD Textures pack. Again, DX9 backend loads it correctly. I'm not sure if there are other examples of improper loading in OpenGL elsewhere since I mainly use DX9 (was running OpenGL for comparisons purposes and saw it)

Actions #4

Updated by noian.xhh2a over 11 years ago

I noticed that OpenGL dumps in .tga format rather than .png ...I wonder if that is related the issue? (Different internal file format perhaps), all of the images are .png in the HD texture pack...I do have ignore format changes ticked. Other than that, I can't figure out which one it is exactly via dump to textures (does it not dump what is loaded?)

Actions #5

Updated by MayImilae over 11 years ago

That was changed in 4.0-379 (r3a13dfdd9b97). OpenGL dumps in PNG now.

Actions #6

Updated by noian.xhh2a over 11 years ago

I'll test with Dolphin 4.0.2 and see if it makes a difference.

Actions #7

Updated by noian.xhh2a over 11 years ago

Still broken with 4.0.2

Actions #8

Updated by noian.xhh2a over 11 years ago

Verified still broken with 4.0-479

Actions #9

Updated by degasus over 11 years ago

I guess this issue is because of the default value of GL_UNPACK_ALIGNMENT=4.
This won't matter as long as every custom image is either in 4 byte formats (rgba) or the width is a multiple of 4 pixels.
For performance, both should be true. As the real GPU only allows texture with multiple of 16 pixels, it should be fine to only allow integer upscale factors.

We could change this behavoir, but I'm more for add an ERROR_LOG for every strange custom texture.

Actions #10

Updated by degasus over 11 years ago

  • Status changed from New to Questionable

If you want, just try to change this line to =1: https://code.google.com/p/dolphin-emu/source/browse/Source/Core/VideoBackends/OGL/Render.cpp#611

I've also added some checks in revision 01351795f01d as many texture packs use wrong texture sizes, just try the broken one and check the error log.

Actions #11

Updated by JMC4789 over 10 years ago

HD Textures should be working fine in OpenGL now. Can we get an update?

Actions #12

Updated by JMC4789 over 10 years ago

  • Status changed from Questionable to Fixed

Assuming fixed after trying it myself

Actions

Also available in: Atom PDF