Important information: this site is currently scheduled to go offline indefinitely by December 1st 2023.
If you wish to donate to attempt the preservation of tools and software somewhere else before it goes down, check the GoFundMe

Unity 5.2 .tex file with 60 byte header??

Get your graphics formats figures out here! Got details for others? Post here!
Post Reply
Ted Pearl
ultra-n00b
Posts: 2
Joined: Mon Nov 30, 2015 3:08 am
Has thanked: 1 time

Unity 5.2 .tex file with 60 byte header??

Post by Ted Pearl »

I'm exploring some .tex files from a Unity 5.2 game, and they appear to have a 60 byte header instead of the standard 56 byte header. But that's not it. Even truncating the header and trying to load the raw image data into Gimp is unsuccessful. The first 16 bytes seem to suggest the DxT1 format, but then it gets weird after that. Is there something obvious I'm missing here, or else, does anyone have any ideas what's different about this format?
sharedassets4~WIP_Texture.zip
You do not have the required permissions to view the files attached to this post.
Acewell
VIP member
VIP member
Posts: 1330
Joined: Wed Nov 05, 2008 12:16 pm
Has thanked: 2710 times
Been thanked: 1426 times

Re: Unity 5.2 .tex file with 60 byte header??

Post by Acewell »

Yeah TextureFinder reads it as an upside down 512x512 dxt1 texture with mip maps and it has a custom header with the first 8 bytes storing the width and height.
Ted Pearl
ultra-n00b
Posts: 2
Joined: Mon Nov 30, 2015 3:08 am
Has thanked: 1 time

Re: Unity 5.2 .tex file with 60 byte header??

Post by Ted Pearl »

Wow, TextureFinder is awesome. I shifted 4 bytes to account for the extra 4 bytes in the header and got the exact texture. Still gotta work on dimensions, as 512px truncates the mip maps, but you got me over the big hurdle. Appreciate it!
Post Reply