Hi to all,
I try to develop a very simple app in air using A3D.
I’ve a scene with 3 balls with TextureMaterial and when I run the app on desktop it’s all ok:
Screenshot desktop
When I try the app on android it has some problems:
Android Screenshot
This is my code:
var tx:BitmapTexture = event.asset as BitmapTexture;
var txMaterial:TextureMaterial = new TextureMaterial(tx, true, false, false);
txMaterial.repeat = false;
txMaterial.bothSides = true;
txMaterial.ambientColor = 0xcccccc;
txMaterial.lightPicker = Game.instance._lightPicker;
I do some search and I find that alphaBlending can solve the problem but if I set:
txMaterial.alphaBlending = true;
txMaterial.alphaThreshold = 0.5;
The result is the same on desktop and android but it is wrong: Screenshot with alphaBlending
It seems that the z-order with alphaBlending is right in android also but there are some other problems….
can someone help me?
thanks.