Hi.
It’s a bit late over here - I hope I’ll stick to the point. I’ve been at this for a few hours.
Basically, I’m having some loading times issues on an Android build.
I’m not sure but I have the feeling it has to do with decompression of textures on load (and reload of scene). I may be wrong.
The Unity documentation suggests going with ETC1 and the dual texture solution if you need alpha (which I do). Storing alpha in one of the textures and the colors in the other then combining them in a shader.
Here’s a shader kindly posted on Answers.
I haven’t tested it out and still unsure if it’s what I need and will perform.
Even if it does, I still need to create the textures and haven’t been able to yet.
In this thread there is discussion of different techniques, including an editor script which can do it. I haven’t been able to wrap my head around that one completely as that seems to be my best bet. They also discuss creating these textures manually (photoshop/gimp/etc.) - but then, how would they bring them in to Unity? (see below. I assume they’ll be making two rgb files - one with rgb color info and one with alpha in a color chanel and then letting unity convert/compress the files)
I’ve also come across Adobes new format - ATF.
I assume at some point we’ll be able to use it within Unity (as Flash seems at home) - It already couples two ETC’s (1 for alpha).
Mali compression tool, also creates two ETC1 textures (one with alpha) from a texture (with alpha). But it stores the files as either PKM or KTX.
I understand I can’t bring in an ETC file into Unity (it can only be converted internally - I can’t find the post but I think it was Dreamora.)
So, my best option is to write an editor script to create these files?
I’m using Unity3.5.7. I need alpha and I’m hoping compression will be ok for my needs. I can’t use RGBA16 as I’m using GetPixels on it (can’t see a way around that). I’m left with either going RGBA32 (and long loading times and bloated builds - I’m hoping to have as many of these textures as possible - they correspond to levels in my game). Or getting the dual ETC1 textures to work for me.
I assume there are other Android developers facing this and that we’ll see ATF integration soon (drop one file in - support a fragmented Android market.)