Anti-aliasing causing issues on Android

Hi

I am am having problems with anti-aliased graphics on Android. Lots of the resources i am using have anti-aliased assets around the edge using transparency. These all look fine on the emulator and iOS, but on android the transparency appears as a black line, this is real problem for assets that are supposed to blend into their background,making them stand out, any solution without recutting all the assets ?

thanks

Neil

I incidentally found out just now that adding a rectangle over the whole image in additive blend mode mitigates the unsightly lines. I will have to do some more testing later to see exactly how well that works though. I was changing the color, but I wonder if you could just set the alpha of the rectangle very low and it would still work.

I just checked and it works to get rid of those lines. Here is the code:

1
2
3
local myRectangle = display.newRect(0,0,display.contentWidth,display.contentHeight)
myRectangle:setFillColor(0, 1, 0)
myRectangle.blendMode = "add"

Thanks for the reply.

Your work around may work for some but a lot of my images I am using are irregular i.e not square, some are animations and some are also scaled, so don't think it will be much help.

Anyone else found a solution to this that might work in all cases ?

thanks

views:1872 update:2012/2/9 11:37:26
corona forums © 2003-2011