O'Reilly logo

Away3D 3.6 Cookbook by Michael Ivanov

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating a 3D illusion with Away3D sprites

Often it is worth knowing how to "cheat" 3D with sprites that are by nature 2D objects. This recipe will show you how exactly that is done. Away3D has got a decent set of different sprites that are located inside the away3d.sprites package. Most of them contain a single Bitmap or MovieClip graphics, which always looks at the camera (billboard). Generally, if the model's geometrical shape is uniform like that of a sphere or an even tree's foliage, they are traditionally presented by regular billboards because their view doesn't change from different angles. But let's say you develop an RTS with hundreds of soldier models that you want to place in the scene and look 3D. A human model is not a sphere, it ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required