- Home /
Why this bad color gradient with textures in iphone?
hi there!
is there a way to get rid of this crappy 8bit looking oldschool color gradient I get when exporting image textures (with in photoshop smooth looking color gradients) to iPhone?
thx!
Answer by Jessy · Feb 03, 2011 at 11:39 AM
It's not 8bit, it's 16-bit. :-P
If you're using 16-bit for textures where banding is an issue, don't.
Otherwise, in Appcontroller.mm, search for kEAGLColorFormatRGB565 and change it to kEAGLColorFormatRGBA8. Same thing for GL_RGBA8_OES to GL_RGB565_OES. At least, I think you need to do both. I'll edit this post if you only need to change one of those.
Answer by anomalous_underdog · Feb 03, 2011 at 02:09 PM
In the import settings, change the Format to "16 bits". If that still doesn't look good for you, change it to "Truecolor".
If the texture had been in PVRTC, going to 16 bit should only increase a stepped gradient effect. PVRTC is blurry, but it has the potential to use more colors than you get with RGB565 or RGB4444.
oh yeah, that's right. so either use compressed, or truecolor.
ou, I thought I read one should only use the 16 bit for iphone. I'll try this out. thnx!