Papervision 3D Programming Tutorial - BitmapViewport
A demo that demonstrates how to use the BitmapViewport in Papervision to archive some interesting effects. Demo and source code included.
VIEW THE DEMO
DOWNLOAD THE CODE
In previous demos I have shown how you can add some of the standard Flash effects to individual Papervision 3D objects, allowing you to blur, modify colors and add a glow to a 3D object. In addition to adding effects to objects, you can also add effects to the entire viewport thanks to the BitmapViewport3D class. The BitmapViewport3D has a bitmapData Property, which you can then apply a filter to with the applyFilter function. You simply supply the same standard Flash effects classes, like Blur, to the applyFilter function after rendering the scene.
You’ll notice in the EngineManager class we set the fillBeforeRender property of the viewport to false by default. This has the effect of stopping Papervision from clearing the screen before rendering the next frame. We also make use of the colorTransform function to slowly fade out the accumulated effects of the previous frames, giving the effect of a “comet trail” behind any moving objects. You can play with these three effects (apply a Blur filter, disabling the fillBeforeRender property and applying the colorTransform) using the three checkboxes on the side of the screen.
The demo code is based on the application structure described here. If you're looking at the source almost all of the classes and functions mentioned here have been implemented in the EngineManager class.
Check out more web development tutorials and articles here.

-
Papervision 3D Programming Tutorial - Creating a Papervision Component
| By mcasperson | in Programming
See how Papervision can be packaged into a SWC Flash component, which allows you to drag and drop Papervision into ...
-
Papervision 3D Programming Tutorial - Traer Physics
| By mcasperson | in Programming
See how to implement cloth physics in Papervision 3D. Demo and source code included....
-
Papervision 3D Programming Tutorial - 3D Image Transitions
| By mcasperson | in Programming
Implement 3D image transitions with this Papervision demo . Source code and online example included....
-
Papervision 3D Programming Tutorial - Environment Mapping
| By mcasperson | in Programming
Learn how to implement environment mapping with Papervision....
-
Papervision 3D Programming Tutorial - Terrain
| By mcasperson | in Programming
Learn how to create a realistic looking terrain mesh and texture that can be imported into Papervision. Demo and so...
-
XA Transaction - Solution for Transaction More Than One Database | By H4d1 | in Programming
Have you ever think that it's too difficult for making database transaction in two different places (or databases) ...
-
Javascript functions for : trim, right trim, left trim, no Apostrophe, is Empty , is Digit , VarChar To Number , is integer , check Is Zero , Get Que | By xxris | in Programming
Javascript functions for : trim, right trim, left trim, no Apostrophe, is Empty , is Digit , VarChar To Number , i...
-
How to access and use a Window's command line | By MaxwellPayne | in Programming
Learn about the Window's command line in DOS and how to use it....
-
How to Learn to Program Your Computer | By dsj8760 | in Programming
This article is about learning to program a computer. It is a general article giving tips on how to learn about pro...
-
Jailbroken iPhones get RickRolled | By explorer | in Programming
First iPhone worm, attacks via SSH and does the classic rick roll gag on the user....
-
Away3D Programming Tutorial - Environment Material | By mcasperson | in Programming
See how to use the EnviroBitmapMaterial to create a real time reflective look in Away3D. Demo and source code inclu...
-
Away3D Programming Tutorial - Primitives | By mcasperson | in Programming
See how easy it is to use the build in primitive shapes supplied with Away3D. Demo and source code included....
-
Away3D Programming Tutorial - Mouse Interaction | By mcasperson | in Programming
Learn how to respond to mouse events in Away3D. Demo and source code included....
-
Away3D Programming Tutorial - Effects | By mcasperson | in Programming
See how you can add the standard Flash filters to any Away3D object to easily create advanced effects. Demo and sou...
-
Away3D Programming Tutorials - Getting Started | By mcasperson | in Programming
Learn how to get started with the Away3D Flash 3D engine with this detailed, step by step tutorial. Demo and source...








this tutorial on papervision 3d programming is helpful with the color transform function when adding standard flash effects, this is useful thanks.