referencing a bitmap texture that is on a plane mesh

Software: Away3D 4.x

Bill7745, Newbie
Posted: 09 November 2015 07:23 PM   Total Posts: 22

is there a way to reference the bitmap data of a material on a plane so I can analyze what color the different parts of the bitmap are or if they are opaque or transparent if the material is a png in away3d 4.x? I tried _plane2.material but it doesn’t work.

   

therealloft, Member
Posted: 11 November 2015 12:02 AM   Total Posts: 65   [ # 1 ]

The way i solve this problem is have the png file as a reference then use the materials UV coords to work out the position of the bitmap so if the image is 1024 x 1024 the middle would be point(0.5, 0.5); on the uv and 512x512 on the png

   

Bill7745, Newbie
Posted: 11 November 2015 12:49 AM   Total Posts: 22   [ # 2 ]

Ok I think I understand, that’s a good idea, thank you.

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X