(XNA 4.0) Need help ripping/fixing .xnb big-endian S3TC - Printable Version +- The VG Resource (https://www.vg-resource.com) +-- Forum: The Resources (https://www.vg-resource.com/forum-109.html) +--- Forum: The Textures Resource (https://www.vg-resource.com/forum-113.html) +---- Forum: Ripping Help (https://www.vg-resource.com/forum-117.html) +---- Thread: (XNA 4.0) Need help ripping/fixing .xnb big-endian S3TC (/thread-40263.html) |
(XNA 4.0) Need help ripping/fixing .xnb big-endian S3TC - KanaiZo - 02-14-2022 I need help ripping these special textures from an old version of an Xbox Live Indie Game Minecraft clone. While there are xnb converters out there, most of them refuse to convert the resulting xnb file. From what I've been told, the format is S3TC but using big-endian, unlike what games like stardew valley use, which is little-endian. I was able to find one that did, and the result wasn't very pretty. As you can see... it messed it up pretty badly. Below are two of the same texture, the first from the official PC port. The normal one is using little-endianness and converted fine, and here's the big-endian one converted. As you can see, you can still make out the details, but the colors are just wrong. I was told that in order to switch the endianness of the image, I would need to swap bytes in 32 bit portions. Only problem is that I have no clue how to do such a thing in something like C#. I was wondering if there was some sort of program to do this for me. Could I somehow have some sort of png endianness flipper do it and it'd work? Or do I need to swap the bytes prior to it being converted into png? Also, if you're curious why I am converting textures if this one already exists, it's because the rest of them are almost completely different from what we have now. |