Away3DLite: Translating 3D Coordinates to 2D Screen Position

Source http://swingpants.com/2010/01/15/away3dlite-translating-3d-coordinates-to-2d-screen-position/

I have been playing with the awesome Away3DLite. Playing with 1000s of polygons is very liberating, but still doesn’t mean we can slack off with the optimisation. It is important to take any opportunity to lessen the number of calculations performed per frame by the player.
To this end, I was just putting together a 2D layer above my 3D scene when I found that the camera.screen function (available in the standard Away3D library) that projects 3D coordinates(x,y,z) to 2D screen positions (x,y) wasn’t present…

Read more >>

blog comments powered by Disqus