Opacity map in Away3D 4

Software: Away3D 4.x

dhunter, Newbie
Posted: 22 June 2012 07:37 PM   Total Posts: 1

Hello. How i can use Opacity map in Away3D 4???
TextureMaterial can work with transparent png, but i have two images for texture. One it’s defuse jpg texture and sedond it b/w jpg opacity map.

   

Richard Olsson, Administrator
Posted: 22 June 2012 08:35 PM   Total Posts: 1192   [ # 1 ]

You can use a shading method called AlphaMaskMethod, but you’re probably better off just copying the alpha channel of your opacity map to the alpha channel of your texture BitmapData. That way you don’t have to use up two textures on the GPU.

Have a look at the BitmapData.copyChannel() method.

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X