Broomstick: BitmapMaterial with alpha channel. PNG 24bit

Software: Away3D 4.x

morpheo_bg, Newbie
Posted: 19 June 2011 02:58 PM   Total Posts: 1

Hi all. LOL

I’m trying to apply a transparent PNG image with 24 bit on a BitmapMaterial but this does not work. I tried to use the property diffuseMethod.alphaThreshold but transparency does not use 24 bits alpha channel.

Any ideas?

Thanks!

   

Avatar
theMightyAtom, Sr. Member
Posted: 19 June 2011 05:30 PM   Total Posts: 669   [ # 1 ]

It’s been working fine for me after discovering the alphaThreshold method, though there’s no semi-transparent pixels, the threshold being the cutoff between 100% transparent and 100% opaque. Would be nice with semi-transparency.

   

morpheo_bg, Newbie
Posted: 22 June 2011 07:33 PM   Total Posts: 1   [ # 2 ]

Response myself.

It´s simple:

BitmapMaterial.transparent=true;

 

   

ripe, Newbie
Posted: 31 January 2012 03:03 PM   Total Posts: 7   [ # 3 ]

you could also try:
material.diffuseMethod.alphaThreshold = 1;

   

Avatar
theMightyAtom, Sr. Member
Posted: 31 January 2012 03:34 PM   Total Posts: 669   [ # 4 ]

Wow, that’s an old thread.

These days you would use alphaBlending = true for semi-transparency, although that has it’s own trade offs.

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X