Tony Lukasavage

Caffeine. Whiskey. Code. Mostly the last one.

Face picking in Away3D

Here’s a quick demo of individual face picking and manipulation in Away3D.  Using your mouse you can click to select any visible face of the sphere to change its color, as well as receive information about the face itself.  The face’s number, 3D coordinates, and screen coordinates will appear in the upper left hand portion of the view.

Hopefully you’ll find it useful.  As usual, you can right click and select “view source” to see the source code for the demo.

Featured Away3D code

  • away3d.cameras.Camera3D.screen()
  • away3d.core.draw.ScreenVertex
  • away3d.core.draw.DrawTriangle
  • away3d.core.base.Mesh.faces