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

(Partial) Decoding png_xb1/bmp_xb1 Support #6

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

InvoxiPlayGames
Copy link
Collaborator

  • Mipmaps are embedded in the DDS texture itself. The 8 bytes of unknown data in the mipmap data in the header looks to be related to this feature + the zlib compression mentioned below.
  • Some time around Rivals they started compressing textures with zlib.
  • Textures are tiled/swizzled - assuming it's the same, or at the very least similar to 360.

Currently the swizzling seems to be broken so I'm pushing this as a draft (and I don't know if this breaks decoding of version 6 or other textures). I just YOLO'd it with the framebuffer swizzling code from libxenon for testing and it made the result look more recognisable.

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.

1 participant