Drawing complex polygons and filling the faces with textures

Software: Away3D 4.x

cviro, Newbie
Posted: 16 October 2011 02:54 PM   Total Posts: 1

Hi guys,

I’ve been playing whole weekend with the existing examples of Away3D 4.x. First of all thank you for this wonderful framework, you have done great job!

I have also a small problem. I would like to programmatically create polygon defined as a ordered set of vertexes (x,y, z) (where first vertex is the same as the last one) and after that create linearextrusion with the direction axis Y
Finally I need this polygon’s face to be filled with appropriate texture. Here is the problem. I couldn’t make it work - there is no face (top or bottom) on which could be applied texture. There is hole. I played with different parameters like coverAll = true/false:
Here is small snippet:
_linearExtrude = new LinearExtrude(materialTest, path, LinearExtrude.Y_AXIS, 1, 32, false, 1, 3, null, false, true, “”, false);
There is screenshot and AS3 file with complete code attached to this post.

Simplyfied task would be - filling the face of triangle defined as ordered set of vertexes.
How can it be done in Away3D 4.x ?
Please, can you tell me what I’m doing wrong ?

Thank you

 

 

File Attachments
FPFacepolygon.as  (File Size: 5KB - Downloads: 309)
   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X