Hey everyone!
I opened a bug report but figured I’d post here too in case anyone else has encountered this.
Semi-transparent pixels of images are getting composited with black on the device.
It makes it so that all .png images with transparency have black halos around
them.
And if I fade the alpha of any image (png or jpg) it will get mixed with black. So it looks like images are fading up from black as opposed from transparent.
I made the simplest example that I could: a white box on a white background.
If I set the box’s alpha to 0.5 it appears gray.
It works perfectly in the simulator, this only shows up on the actual device.
I am currently testing this on a Kindle Fire but I assume it happens across all
Android devices.
Here is some simple code to test it out:
-- Main function-------------------------------------------------------------------------
local function main()
-- white bg
local bg = display.newRect( 0, 0, 480, 320 )
bg:setFillColor( 100,100,100 )
bg.x = 240
bg.y = 160
-- whitebox
local whitebox = display.newImage("whitebox.png")
whitebox.x = 150
whitebox.y = 160
whitebox.alpha = 0.5
return true
end
------------------------------------------------------------------------------------------
-- Begin
main()
(the ‘whitebox.png’ is just a solid white rectangle saved out of photoshop as a PNG-24 file)
Any clues are appreciated!
Thanks,
Joe
EDIT: apparently it is just a Fire issue or perhaps an Android 2.2 issue according to the comments posted by XenonBL in this thread:
http://developer.anscamobile.com/forum/2011/11/18/kindle-fire-first-tests-corona
[import]uid: 8444 topic_id: 20939 reply_id: 320939[/import]