How to draw a 3d irregular shape, anybody help?

Software: Away3D 3.x

scutterry, Newbie
Posted: 17 August 2011 01:46 AM   Total Posts: 17

I want to draw a 3D irregular shape by a array of vertex. Is there any API function can do that?
Thanks in advance.

   

Richard Olsson, Administrator
Posted: 17 August 2011 05:14 AM   Total Posts: 1192   [ # 1 ]

Look at how the built-in parsers build meshes from different formats. If you read the source for the OBJ parser for instance you should be able to see how a mesh can be built.

   

Somokon, Member
Posted: 17 August 2011 05:47 AM   Total Posts: 75   [ # 2 ]

In the tools.MeshHelper class I believe there is a function that can do something like this.

   

scutterry, Newbie
Posted: 17 August 2011 06:07 AM   Total Posts: 17   [ # 3 ]
Somokon - 17 August 2011 05:47 AM

In the tools.MeshHelper class I believe there is a function that can do something like this.

I cannot find the MeshHelper class.

   

Somokon, Member
Posted: 17 August 2011 06:33 AM   Total Posts: 75   [ # 4 ]

Whoops, thats only in Away3d 4.  Thought you could try taking a look at it’s source code on github and implementing something similar yourself.

   

scutterry, Newbie
Posted: 17 August 2011 10:01 AM   Total Posts: 17   [ # 5 ]
Richard Olsson - 17 August 2011 05:14 AM

Look at how the built-in parsers build meshes from different formats. If you read the source for the OBJ parser for instance you should be able to see how a mesh can be built.

Sorry, I described the requirement in a unclear way. that’s just some outline vertecs. The outline of irregular shape include right angle, round corner. And each round corner has 30 vertecs. I have no idear how to use these vertecs to draw a irregular shape. and UV mapping.

   
   
‹‹ Texture repeat

X

Away3D Forum

Member Login

Username

Password

Remember_me



X