ATF + alphaBlending… white glow

Software: Away3D 4.x

luckypig, Newbie
Posted: 16 September 2013 08:30 PM   Total Posts: 10

Hi!

When I work with ATF textures and alphaBlending in a plane… always away3d put a white glow around the image with alpha. If I don’t use atf and I use Bitmap, the white glow don’t appear….

Someone know solve this?

Thanks!! I hope your commets.

   

busterT, Newbie
Posted: 10 November 2013 11:48 PM   Total Posts: 4   [ # 1 ]

I’m also interested concerning this issue…

 

   

Matej, Jr. Member
Posted: 25 February 2014 11:29 AM   Total Posts: 38   [ # 2 ]

Me too,

any clues?

 

   

John Brookes, Moderator
Posted: 25 February 2014 05:22 PM   Total Posts: 732   [ # 3 ]

One of you post an example + assets.
So it can be tested logged as bug etc.

 

   

luckypig, Newbie
Posted: 26 February 2014 11:20 AM   Total Posts: 10   [ # 4 ]

Yes.

I’ve made an example of the bug. You can download it from:

http://www.lucky-pig.net/away3d_atf_alphablending_bug.zip

In the bin folder you have an AIR file for instal and test it.

In the src folder you have a Main.as with the code, how you can see, the atf is from the png, but in the plane of the left (ATF) the texture have a white-yellow glow but in the plane of the right (PNG) works fine.

This happen always that you have an ATF texture in a material with alphablending=true.

This is a very important problem because we can’t use the benefits of ATF if we need alphablending….

Do you need any more for test it?

Regards! I hope your comments.

 

   

luckypig, Newbie
Posted: 26 February 2014 11:28 AM   Total Posts: 10   [ # 5 ]

Put this diffuse.atf in the folder:

bin/assets/

I can’t put it in the away3d_atf_alphablending_bug.zip

Sorry!

 

File Attachments
diffuseATF.zip  (File Size: 1486KB - Downloads: 187)
   

John Brookes, Moderator
Posted: 26 February 2014 01:29 PM   Total Posts: 732   [ # 6 ]

Try
materialATF.alphaPremultiplied = false;

 

   

luckypig, Newbie
Posted: 26 February 2014 01:48 PM   Total Posts: 10   [ # 7 ]

It works fine for me!

A lot of thanks! Really a lot of thanks!

Can you say me why happen this?

Regards!

 

   

John Brookes, Moderator
Posted: 26 February 2014 02:32 PM   Total Posts: 732   [ # 8 ]

This unity thread goes into it a bit.
http://answers.unity3d.com/questions/10302/messy-alpha-problem-white-around-edges.html

Even with premultiplied off you will still get some halo at oblique angles.
See left swf image.

Just had a quick play and you get a bit better results with PS and saving as png8 with a mat of similar color.
Then converting to atf.
See right swf image

 

   

luckypig, Newbie
Posted: 27 February 2014 08:59 AM   Total Posts: 10   [ # 9 ]

Thanks John!

 

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X