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.
referencing a bitmap texture that is on a plane meshSoftware: Away3D 4.x |
||
|
||
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 |
||
|