Hi all.
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!
Broomstick: BitmapMaterial with alpha channel. PNG 24bitSoftware: Away3D 4.x |
||
morpheo_bg, Newbie
Posted: 19 June 2011 02:58 PM Total Posts: 1 Hi all. 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! |
||
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;
|
||
|
||
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. |