Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support additional PS3 MtTex formats #320

Open
wants to merge 5 commits into
base: dev
Choose a base branch
from

Conversation

kapdap
Copy link

@kapdap kapdap commented Mar 13, 2024

Changes are to support Resident Evil: Code Veronica X HD.

  • Read PS3 MtTex main image data
  • Added support for MtTex on PS3 with version 0x98
  • Added MtTex formats 0x18, 0x1E and 0x28
  • Change MtTex format 0x14 from DXT3 to DXT1

kapdap added 2 commits March 13, 2024 15:47
Added support for MtTex on PS3 with version 0x98
Added MtTex formats 0x18, 0x1E and 0x28
Change MtTex format 0x14 from DXT3 to DXT1
Add MtTex PS3 entry for format 0x14 when version is 0x98
@kapdap
Copy link
Author

kapdap commented Mar 13, 2024

Change format 0x14 back to DXT3 and added extra entry for version 0x98

@IcySon55
Copy link
Member

If the different versions have a different format table, implementation should be a separate format table instead of a hack in the existing table.

@kapdap
Copy link
Author

kapdap commented Mar 13, 2024

Table hack was based on current implementation

var format = version == 0x87 ? _header87.format == 0x19 && _header87.useDxt10 == 0 ? 0xFF : _header87.format : _header.format;

// Used as placeholders for format 0x0C, which defines 3 images of different encodings for different mobile platforms

@IcySon55
Copy link
Member

Unfortunate! XD

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants