This chapter discussed filters and effects. By filters we mean the Flash filters such as drop shadow, blur, and glow. The built-in Papervision3D effects allow us to create specific effects such as fire.
You don't apply a filter directly to an object, but to the viewport layer that contains the object. Viewport layers are extended sprites, so you can set their transparency and blend mode.
You can also apply a filter on viewport level, which can be approached in two ways:
Directly applying a filter to the viewport
Using the
BitmapViewport3D
class creates a bitmap viewport of the rendered scene. You can then apply filters to this bitmap image
Applying a filter directly to the viewport results in basic Flash filter effects, whereas working with BitmapViewport3D
allows you to create more advanced filter effects.
Papervision3D has a set of built-in effects:
A color effect
A fire effect
A pixelating effect
A motion effect
A layer effect that takes Flash filters
An example has been given for each of...