Hi!
I’m quite new to Away3D and 3D in general and really need some help.
I’ve got the following problem: I built a primitive Plane in Blender, exported it as OBJ and imported it in Prefab. Then I exported it as AS3-class.
Now I want to change the texture of the Plane during runtime - I instantiate the exported
AS3-class (named “E1”), get the Mesh and apply a material to it:
var e1:E1 = new E1();
var m1:Mesh = Mesh(e1.getChildByName("Plane1"));
var mat:Material = Cast.material(m2_bitmap);
m1.material = mat;
The problem: the texture is spread/split over the two faces of the Mesh (see attached image). How can I avoid this? At the right you see a Plane I added using “new Plane()” and then applied the same material. This is what it should look like…
Any help will be appreciated - been struggling with this the whole day :(
Thanx a lot!
Ben