nicolasgramlich/AndEngine — Issue #14: strange sprites transparency
Author: JFixbi
Created: 2012-01-21 18:57:31+00:00
State: open

Hi

I found a strange problem about textures.

To demonstrate it I've created the next two textures:
1 - some complex image
http://jfixbi.files.wordpress.com/2012/01/mid_1.png

2 - a rectangle, filled with the next color:
http://jfixbi.files.wordpress.com/2012/01/front_11.png

Simple code:

protected Scene onCreateScene() {

this.mEngine.registerUpdateHandler(new FPSLogger());
this.mScene = new Scene();

Sprite mountains = new Sprite(0, 0, this.mid_1_png);
Sprite rectangle = new Sprite(0, 0, this.front_11_png);

mScene.attachChild(mountains);
mScene.attachChild(rectangle);

return mScene;
}

Here is the result:

http://jfixbi.files.wordpress.com/2012/01/sc20120118-002245.png

Looks like the mountains is visible through the rectangle (in the left part of the image).

Maybe It is hard to see so I increase contrast to get something like this:

http://jfixbi.files.wordpress.com/2012/01/sc20120117-202930_cnt.png