DesignWebKit

Papervision 3D programming tutorial: Depth of Field

The depth of filed effect can be seen in a lot in landscape photographs where an object in the foreground (say a tree) is in focus while the background (like some mountains) will be quite blurry. It’s not an effect that is naturally reproduced with 3D engines – typically the entire scene is rendered in focus with no regard for a depth of field.

However it is a fairly easy effect to achieve with Papervision and the standard Flash effects. Read this tutorial to learn how to apply depth of field to your Papervision model. In the demo you can modify the focal point of the camera using the slider on the left hand side. The source code is provided as well.