AlphaThreshold can’t get it working

Software: Away3D 4.x

Arno, Newbie
Posted: 15 August 2012 12:53 PM   Total Posts: 25

I’m using 4.0 revision 9 but i can’t get alphathreshold working

I do this:

var textureMaterial:TextureMaterial = new TextureMaterial(new BitmapTexture(LeafBitmap));
textureMaterial.alphaThreshold 0.8;
   
var 
plane:Mesh = new Mesh(new PlaneGeometry(20000200002020true), textureMaterial);
_view.scene.addChild(plane); 

The white isn’t alpha. In previous versions of away3D i got it working but now i tried it from scratch and it isn’t working anymore. Do i miss a step?

[Edit]

The alpha channel is still white or not?

   

Arno, Newbie
Posted: 15 August 2012 02:23 PM   Total Posts: 25   [ # 1 ]

Hmm i found the solution. You shouldn’t create the white background yourself. This wasn’t working for me. If you load an transparent png the alphathreshold is going alright

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X