Hi,

when creating a face like:

var f:Face = new Face();
f.moveTo(0, 0, 0);
f.lineTo(50, -50, 0);
f.lineTo(100, -50, 0);
f.lineTo(100, 0, 0);
f.lineTo(50, 50, 0);
f.lineTo( -50, 50, 0);
f.lineTo( -100, 0, 0);
f.lineTo( -100, -50, 0);
f.lineTo( -50, -50, 0);

var m:Mesh = new Mesh();
m.addFace(f);

var mat:BitmapMaterial = new BitmapMaterial(Cast.bitmap(terrain));
mat.repeat = true;
f.material = mat;

when applying the BitmapMaterial to the face the face is clipped to a
triangle formed with the first two lines.
Is there any other way to apply the material or create this type of
faces?


Regards,

Fabio

Reply via email to