Second Texturelayer with alpha channel

Software: Away3D 3.x

pictofun, Newbie
Posted: 26 February 2014 05:28 PM   Total Posts: 1

Hi and thanks for reading!

My target is to paint on a texture. Texture should be into second layer of a mesh. I do not want to write into the basic Texture.

So far I use mymaterial.addMethod(new LightMapMethod(Cast.bitmapTexture(_squares), BlendMode.ADD, true));
Blendmode.ADD is resulting in not using the alphachannel from my second texturelayer.
Blendmode.MULTIPLY results in well, as the name says multiplied pixels.
( attached images )

What I need is ADD with use of the alphachannel of my second texture.
I really tested a lot, made sure, the material is using alpha and such, also tried TextureMultiPassMaterial.

I know it should be possible using submeshes, but as our target is mobile, double of the mesh is what I do not want.

So, maybe my thoughts are wrong, knowledge is not sufficient for the first way?

Thank you

Berndt

 

 

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X