how to set TextureMaterial (.png) transparent?

Software: Away3D 4.x

datouaizi, Member
Posted: 18 March 2012 01:30 PM   Total Posts: 98

how to set TextureMaterial (.png) transparent? when i set

TextureMaterial(Mesh(loader.getChildAt(i)).material).alphaBlending = true ;
all show wrong !  Mesh normal flip. i can see mesh inside from outside!!!

TextureMaterial(Mesh(loader.getChildAt(i)).material).bothside = true ;
doesn`t work!

   

jtopaz, Member
Posted: 21 March 2012 01:54 PM   Total Posts: 53   [ # 1 ]

I use alphaThreshold and it work.
But I find that in some case it may have white edge in these transparent texture (Plane mesh?). Anyone can solve it?

   

Adam K, Newbie
Posted: 05 April 2012 12:56 PM   Total Posts: 3   [ # 2 ]

Make sure there is any white outline in .png. If you find it please remove and do once again. If you don’t find that than there is some another problem with material and also try with another texture.

____________________________________
Adam K - The Animationspot - a great Animation Company in the USA. Visit our animation company website today for more information.

   

Adam K, Newbie
Posted: 05 April 2012 12:59 PM   Total Posts: 3   [ # 3 ]

Make sure that there is any white outline in PNG. If it is not there so there is a some another problem with material and texture and also try with another texture.

____________________________________
Adam K - The Animationspot - a great Animation Company in the USA. Visit our animation company website today for more information.

   

jtopaz, Member
Posted: 08 April 2012 08:20 AM   Total Posts: 53   [ # 4 ]

Thanks Adam.
You are right. It is my problem. There is white outline in PNG. After I remove them, they disappear in scene.

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X