Banding on gradients
paulitsme
Member Posts: 109
Hi
I am getting a lot of banding on my images when a gradient is used. I thought it was the iphones screen at first but I tried viewing the image on the phones photo viewer and it looks fine.
Does gamesalad limit the number of colours on an image ?
I am using png24 images but I have tried jpg and it's exactly the same.
I am getting a lot of banding on my images when a gradient is used. I thought it was the iphones screen at first but I tried viewing the image on the phones photo viewer and it looks fine.
Does gamesalad limit the number of colours on an image ?
I am using png24 images but I have tried jpg and it's exactly the same.
Comments
The images look fine if I save them to the iphones photo viewer. They only look banded in the game...
Other than that no clue man
There is a known banding issue with gradients in cocos2D.
However, there are fixes for it:
http://www.bit-101.com/blog/?p=2149
Obviously a dev would have to implement it.
I tried it with a small image too but the same happens. It looks just like it would if I limited the colours to 64 in photoshop.
I will have a read through that link
If anyone else knows a way round this please let me know. Otherwise I need to redo all my game images
http://img51.imageshack.us/img51/6608/backgroundpo.png
all my backgrounds have gradients, so its pretty much everywhere.
In photoshop add another layer ontop of the gradient layer and add a grain texture effect to that. Then set the grain layer to about 5% transparancy so its hardly visible. It makes image sizes bigger but it fixes it.
I think it must be something to do with texture compression on the iphone.