Does anyone know how to make 3D curved lines?

Software: Away3D 4.x

dubletar, Member
Posted: 02 January 2013 10:30 PM   Total Posts: 73

Hi, I have away3d.4.

I’m trying to make a series of 3d lines (please see the image).

Does anyone know of a tutorial that teaches this?

 

   

Avatar
theMightyAtom, Sr. Member
Posted: 03 January 2013 07:27 AM   Total Posts: 669   [ # 1 ]

First thing to know, you can’t actually draw a curved line in 3D, but a series of short straight lines that look like a curve.
The class you are looking for is LineSegment.
https://github.com/away3d/away3d-core-fp11/blob/master/src/away3d/primitives/LineSegment.as

This allows you to draw a line between two points in space, with a given colour and thickness.

Good Luck!

   

Hector, Sr. Member
Posted: 03 January 2013 02:45 PM   Total Posts: 137   [ # 2 ]

I use QuadraticPath for the line path and then a PathExtrude to get a 3D effect and arrow heads.

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X