Gold 4.1.4 Mesh’s Material alpha Bug?

Software: Away3D 4.x

Avatar
dottob, Jr. Member
Posted: 03 September 2013 09:58 AM   Total Posts: 49

Thanks first!

//the loaded jpg to be material
var bt:BitmapTexture=new BitmapTexture(Bitmap(LoaderInfo(e.target).content).bitmapData)
 var 
tm:TextureMaterial=new TextureMaterial(bt)
 
tm.bothSides=true
 
//tm.alphaBlending=true 
 //tm.alphaPremultiplied=true
 //tm.alphaThreshold=0.2
 
tm.alpha=0.99999 

Get this look,please see the attach:

 

 

   

Avatar
dottob, Jr. Member
Posted: 18 September 2013 10:58 AM   Total Posts: 49   [ # 1 ]

With a arouse by a post here:

http://away3d.com/forum/viewthread/4953/

i find a way to fix it,

Special thanks to Deepblue and Guya!

...
stage.addEventListener(Event.ENTER_FRAMErenderScene);
...
function 
renderScene(e:Event):void
{
...
if(
camera.rotationY>0){
    view
.depthPrepass=true
 }else{
    view
.depthPrepass=false
 }
}
... 

Wish this will be useful for someone *^_^*

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X