How do I get global 2D coordinates from an Away 3D object?

86 views
Skip to first unread message

Earl

unread,
Jun 17, 2010, 2:13:49 PM6/17/10
to Away3D.dev
We have inherited some code from another developer and are not
familiar with Away3D. I have a Plane object in a View3D and I need to
get the actual 2D coordinates of the material inside the object so I
can overlay a standard MovieClip on top of it after the animation of
it is complete.

Anyone have a solution for this? Sorry if this question is in the
forum somewhere, I searched but was unable to find anything.

Thanks,

Earl

savagelook

unread,
Jun 17, 2010, 2:36:44 PM6/17/10
to Away3D.dev
http://savagelook.com/demos/face_picking/sandbox.html

right click and view source to see how I did it using the ScreenVertex
returned by the Camera3D.screen() function. The values screen0,
screen1, screen2 are the 2D screen coordinates of the 3 vertices that
make up whatever triangle you click.
Reply all
Reply to author
Forward
0 new messages