Transparent texture quality issue

Software: Away3D 4.x

Kvazar, Newbie
Posted: 18 October 2012 05:19 PM   Total Posts: 8

Hello,
Trying to create a simple plane with texture, faced an issue:
The texture quality is really bad, especially in the distance. I’ve tried to tune the mipmaps creation algorithm, applied ConvolutionFilter to bitmapdatas like the alternativa3d does, but no luck.
How can I improve quality?
Thank you.

var material:TextureMaterial = new TextureMaterial(new BitmapTexture(new CellBmp().bitmapData), true, true);
var plane:Mesh = new Mesh(new PlaneGeometry(10000, 10000, 10, 10), material);
plane.geometry.scaleUV(100, 100);
addChild(plane);

 

   

Avatar
Baush, Sr. Member
Posted: 19 October 2012 09:42 PM   Total Posts: 135   [ # 1 ]

Looks like the alpha channel is not handled correctly. Have you tried to set:

material.alphaBlending = true;

   

Kvazar, Newbie
Posted: 27 October 2012 11:05 PM   Total Posts: 8   [ # 2 ]

Thanks, i’ve added material.alphaThreshold = 0.3; too and it works perfectly.

   
   
‹‹ displaying UV data

X

Away3D Forum

Member Login

Username

Password

Remember_me



X