The VG Resource

Full Version: (XNA 4.0) Need help ripping/fixing .xnb big-endian S3TC
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.

[Image: 94v9a6s.png]
[Image: rKpJp4i.png]
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.