(Gold) TextureMaterial with BitmapTexture not blending.

Software: Away3D 4.x

HankTurbo, Newbie
Posted: 31 July 2012 07:42 AM   Total Posts: 11

Hi,

I just upgraded to Gold, and tried running a project I have been working on. I had a cloud layer on an earth which I used BlendMode.ADD to force it to blend with the earth. When updating to the Gold release it now only shows the clouds without any alpha channel or blending (just black and white).

I have also tried replacing the texture with a bitmap with a normal alpha-channel, but I can’t seem to get that working either.

In addition I’ve tried to set the alpha channel on the material to 0.1, but still I can only see the clouds not the earth (although the clouds have are).

I’ve set alphaBlending = true; Are there any new properties that needs to be set to invoke alpha on textures in the new release?

Attached image shows:
1. Earth with clouds using BlendMode.ADD
2. Earth with clouds using only alphaBlending (these clouds have an alpha channel in the bitmap)
3. Same as 2, but with alpha set to 0.1 on the texture.

 

   

Richard Olsson, Administrator
Posted: 31 July 2012 09:46 AM   Total Posts: 1192   [ # 1 ]

Please try this with the dev or master branches from GitHub, which should both contain a recent fix to a bug that might be behind the issue you’re experiencing. If you’re unfamiliar with Git or branches, you can download the master branch as a zip archive from the following URL:

http://github.com/away3d/away3d-core-fp11/zipball/master

Also, if the latest dev/master branches don’t fix the issue, try changing the background color of the view (View3D.backgroundColor) and see if the clouds are really black/white or if the black part is actually the background shining through (and the earth thereby is invisible.)

   

HankTurbo, Newbie
Posted: 01 August 2012 12:44 AM   Total Posts: 11   [ # 2 ]

Hi,

Thanks Richard. The master branch worked like a charm. All apha issues were resolved.

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X