Converting a 2d point to 3d

Software: Away3D 4.x

emmie55, Newbie
Posted: 02 October 2013 11:39 AM   Total Posts: 10

hi, i would like to get some guidance on how to convert a 2d point to 3d? I am planning to get an array of 2d points and draw a 3d model according to that 2d points

   

Avatar
SharpEdge, Member
Posted: 02 October 2013 11:51 AM   Total Posts: 94   [ # 1 ]

It’s not clear what you mean, 2d point means a point on the screen.
You can unproject that point and obtain its position in 3d space but you need to indicate the Z value.

If you don’t indicate the Z value you’ll obtain a planar object
So you want to draw a planar object?

Anyway you can convert 2d screen coordinates to 3d scene coordinates using

view.unproject(mX:NumbermY:NumbermZ:Number 0):Vector3D 

 

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X