I'm guessing this is the effect you are getting:
http://www.allforthecode.co.uk/development/away3d/on_dev/02.swf

<http://www.allforthecode.co.uk/development/away3d/on_dev/02.swf>and this is
an approximation of effect you want:
http://www.allforthecode.co.uk/development/away3d/on_dev/04.swf

Loop through the vertices of the plane creating triangles from each of the
vertices then work with these.

Posted on here:
http://groups.google.com/group/away3d-dev/browse_thread/thread/56b4162f02f9e68a/fb50d232126f402d?q=%22just+had+a+search+through+my+code+local+archives+and+am+unable%22#fb50d232126f402d


So something like:

plane = *new* Plane();

plane.width = 300;

plane.height = 300;

plane.bothsides = *true*;

plane.segmentsH = 2;

plane.segmentsW = 2;

*var* mat:WireframeMaterial = *new* WireframeMaterial(0x000000);

plane.material = mat;

view.scene.addChild(plane);

 *var* nTriangleCount:Number = 0;

*for* *each* (*var* f:Face *in* plane.faces)

{

nTriangleCount++

*trace*(*"Triangle "* + nTriangleCount);

*trace*(*"\t"* + *"Vertex point 1: "* + f.v0.toString());

*trace*(*"\t"* + *"Vertex point 2: "* + f.v1.toString());

*trace*(*"\t"* + *"Vertex point 3: "* + f.v2.toString());

*trace*(*""*);

*var* m:ColorMaterial = *new* ColorMaterial((Math.random()*100000));

*var* t:Triangle = *new* Triangle();

t.bothsides = *true*;

t.a = f.v0;

t.b = f.v1;

t.c = f.v2;

view.scene.addChild(t);

}





On 17 September 2010 14:22, Revalis <[email protected]> wrote:

> Suppose I should mention I am using the latest build of Away3D, not
> lite.

Reply via email to