So far we have used the generic Flash filters and applied them to objects and to the entire viewport. However, Papervision3D also offers a set of classes that make it easy for developers to apply more advanced effects. Internally, most of these classes make use of Flash filters.
This enables you to create the following built-in Papervision3D effects:
The org.papervision3d.core.effects
package that stores these classes also includes a BitmapLayerEffect
class (not to be confused with BitmapEffectLayer!
), which offers another way to apply Flash filters to objects. We will see how that works after we have examined the effects listed previously.
All the effects will be demonstrated within one class. We will create a simple scene containing one cube. Let's take the next class as a starting point:
package { import flash.events.Event; import flash.filters.BlurFilter; import flash.display...