Drawing Curves (arc)

Software: Away3D 4.x

kochumvk, Newbie
Posted: 07 September 2012 12:44 PM   Total Posts: 17

Hi Team ,
I want to draw curve from one vector3D to another. (An arc from one cube to another). What is the easiest way to active this. It will be great if an animated curve can be drawn.

Please help!

   

Avatar
Darcey, Moderator
Posted: 07 September 2012 04:52 PM   Total Posts: 209   [ # 1 ]

I have no idea, but my first place of interest would be took at the code in Trident and WireframeAxesGrid for line drawing.

This worked on Away3D 4 Alpha:
http://www.allforthecode.co.uk/aftc/forum/user/modules/forum/article.php?index=4&subindex=0&aid=300

And this was alpha too:
http://not-so-stupid.com/line-experiment-in-away3d-4/

   

Avatar
80prozent, Sr. Member
Posted: 09 September 2012 08:02 PM   Total Posts: 430   [ # 2 ]

hi
i believe the curveSegment is still under development.

right ´now you could use the lineSegment as darcey suggests, but to create a curve, you would have to build your curve out of several LineSegments, which will require some math to calculate.
i guess its the only way to do it, and a curveSegment that will eventually appear in the library will to it that way too.

hope that helps

 Signature 

sorry…i hope my actionscript is better than my english…

   

kochumvk, Newbie
Posted: 10 September 2012 05:51 AM   Total Posts: 17   [ # 3 ]

Thanks Darcey and 80prozent for your inputs.
I thought there is something for this with gold. Sad but may be I will write my own. What is programming if everything is ready to serve:)

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X