ZenHAX
http://zenhax.com/

Lunapri TEX image format
http://zenhax.com/viewtopic.php?f=7&t=7697
Page 1 of 1

Author:  Arimil [ Tue Apr 10, 2018 7:59 pm ]
Post subject:  Lunapri TEX image format

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.

Attachments:
File comment: sample file
banner_jp_mission_001 #60_512x128.47.tex.zip [32.11 KiB]
Downloaded 51 times

Author:  Acewell [ Wed Apr 11, 2018 5:13 am ]
Post subject:  Re: Lunapri TEX image format

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

Author:  Arimil [ Wed Apr 11, 2018 12:17 pm ]
Post subject:  Re: Lunapri TEX image format

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.

Author:  Acewell [ Wed Apr 11, 2018 1:22 pm ]
Post subject:  Re: Lunapri TEX image format

you can also just convert the image to something usable directly from the
asset bundle with UnityEx, "Unity Studio" or "Unity Assets Bundle Extractor". :)

Author:  Arimil [ Wed Apr 11, 2018 5:36 pm ]
Post subject:  Re: Lunapri TEX image format

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.

Author:  Acewell [ Thu Apr 12, 2018 5:21 am ]
Post subject:  Re: Lunapri TEX image format

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:
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

Author:  Arimil [ Thu Apr 12, 2018 8:25 pm ]
Post subject:  Re: Lunapri TEX image format

Yes I have version 0.5.1b3, this outputs the files as pvr files when selecting the convert option.

Author:  Acewell [ Thu Apr 12, 2018 11:03 pm ]
Post subject:  Re: Lunapri TEX image format

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

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/