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 advanced bitmap effects using filters

Bitmap processing based on Flash generic filters in correlation with BitmapData input is widely used to create quite stunning visual effects in 2D as well as in 3D. Unfortunately, at the time of this writing, Away3D has no built-in functionality for bitmap effects like its rival PV3D has (BitmapEffectLayer), nevertheless we can easily overcome this by writing those effects from scratch by ourselves. Let's see how to do it.

Getting ready

Just set up a basic scene using the AwayTemplate class and you are ready to begin.

How to do it...

In the following example, we generate a bunch of spheres which move randomly across the 3D space by means of implementing the "Brownian Motion" algorithm. During runtime, ...

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