Alpha behaviour changed after update

Software: Away3D 4.x

Avatar
FlyOn, Jr. Member
Posted: 25 July 2012 01:16 PM   Total Posts: 36

To let the user focus some images, I place an extra plane with a semi-transparant color material just behind the plane of the image.

I just updated my code since a month or two and now I can’t get the color alpha to look the same. The colors look much more vivid (multiplied / added?)

I tried working with Blending modes, but using BlendingMode.Alpha for the transparent one and BlendingMode.LAYER for the image only gave me a gray scale color.

var focusMaterial:ColorMaterial = new ColorMaterial(0x0888BF);
focusMaterial.alpha 0.7

Note: To allow users to upload images of any size, I place the bitmap of the image first in a larger, closest matching bitmap with dimensions of power of 2… I then place the image in the middle and fill the rest with white (which seems to be filtered out just like I want it to, but I’m not sure how or why that was again)

Perhaps this white - nonvisible border makes the transparant colormaterial behind it look ‘multiplied’ / more vivid?.

Any suggestions to the transparent color look more like it was? (top example in image)

 

   

Richard Olsson, Administrator
Posted: 25 July 2012 03:22 PM   Total Posts: 1192   [ # 1 ]

There are some known issues with alpha that creeped into the release at the last minute and we are working on them. Can you try the release branch where those issues should have been fixed already?

If you are unfamiliar with Git, you can download the release branch as a zip file from here: http://github.com/away3d/away3d-core-fp11/zipball/release

Let us know how that goes!

   

Avatar
FlyOn, Jr. Member
Posted: 29 October 2012 02:50 PM   Total Posts: 36   [ # 2 ]

Hi, quite a bit later, but I just downloaded the the latest from github, and also tried the dev branch ... but I still get strange neon-like colors for basic Colormaterials with alpha not 1… isnt anyone else getting this?

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X