Alpha on release branch

Software: Away3D 4.x

JohnBrookes, Sr. Member
Posted: 08 June 2012 01:59 PM   Total Posts: 553

using
if (e.asset.name == “CabGlass”)
TextureMaterial(Mesh(e.asset).material).alpha = 0.2;


The left image is what I get with the release branch

Particles feature branch works like the right image.

 

Image Attachments
alpha.jpg
   

JohnBrookes, Sr. Member
Posted: 08 June 2012 02:25 PM   Total Posts: 553   [ # 1 ]

And the answer is
toggle the alphaPremultiplied

   

Richard Olsson, Administrator
Posted: 16 June 2012 12:02 PM   Total Posts: 1192   [ # 2 ]

More info can be found on the following issue report and the commit linked from it.
https://github.com/away3d/away3d-core-fp11/issues/221

The new alphaPremultiplied property replaces a hard-coded assumptions that textures are pre-multiplied, which also happened to result in horrible visual issues on many chipsets (e.g. most Macbook Airs.) This assumption has now been removed, and hence the need for this new explicit property.

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X