Lunapri TEX image format

Textures, recreate headers, conversions, algorithms and parsing of image files
Arimil
Posts: 5
Joined: Tue Apr 10, 2018 7:55 pm

Lunapri TEX image format

Post by Arimil »

I'm having some trouble finding out what format these images are being stored as, the file seems to contain a large amount of padding. I believe them to be DDS file in some capacity but I'm not certain. Does anyone know what type of files these may be or how they are being formatted. They were pulled from Unity asset bundles.

e.g.
Image

EDIT:
Image

I'm now fairly certain they are DDS since you can see a similar type of padding in this DDS file.
Acewell
Posts: 706
Joined: Fri Aug 08, 2014 1:06 am

Re: Lunapri TEX image format

Post by Acewell »

Arimil wrote:They were pulled from Unity asset bundles.

can you upload the asset bundle this tex sample came from?
if you open it with UnityEx it will tell you the format.
there is a good chance it is having some mobile compression
Arimil
Posts: 5
Joined: Tue Apr 10, 2018 7:55 pm

Re: Lunapri TEX image format

Post by Arimil »

Thanks Acewell, it seems they are compressed using ETCT_RGBA8. I should be able to

Image

I was then able to open them in PVRTexTool using the wrap raw data option. So all that's left is to write a script for the PVRTexTool cli to convert all the images.

Thanks for the help.
Acewell
Posts: 706
Joined: Fri Aug 08, 2014 1:06 am

Re: Lunapri TEX image format

Post by Acewell »

you can also just convert the image to something usable directly from the
asset bundle with UnityEx, "Unity Studio" or "Unity Assets Bundle Extractor". :)
Arimil
Posts: 5
Joined: Tue Apr 10, 2018 7:55 pm

Re: Lunapri TEX image format

Post by Arimil »

I've gotten the images I wanted, unfortunately I wasn't able to get batch processing working on any of those. Unity Assets Bundle Extractor would only extract cab files with its batchexport option. Unity Studio was not able to do image conversion from my tests and only output tex files and UnityEx when told to convert would output PVR files which requires the same tool anyway.
Acewell
Posts: 706
Joined: Fri Aug 08, 2014 1:06 am

Re: Lunapri TEX image format

Post by Acewell »

Arimil wrote:Unity Studio was not able to do image conversion from my tests and only output tex files

you using Perfare's fork of Unity Studio or no?
https://github.com/Perfare/AssetStudio/releases

he recently had to rename it to "AssetStudio" because of a complaint from Unity.
a more up to date version here (0.9.0.26)

Code: Select all

https://pan.baidu.com/s/1KmeRhuvI2pL86pOO3l8DUQ#list/path=%2FUnityStudio

and a page here on his blog talking about a version that opens unity animation files :D
https://www.perfare.net/1084.html
Arimil
Posts: 5
Joined: Tue Apr 10, 2018 7:55 pm

Re: Lunapri TEX image format

Post by Arimil »

Yes I have version 0.5.1b3, this outputs the files as pvr files when selecting the convert option.
Acewell
Posts: 706
Joined: Fri Aug 08, 2014 1:06 am

Re: Lunapri TEX image format

Post by Acewell »

yeah thats an ancient version (3 years ago), time to upgrade, check the links i posted :)