Post Processing Solution
Summary
This sample shows how Post Processing can be used in Scene Composer. Via scripts, it allows to enable and disable post-processing effects at runtime. Further scripts for animating the scenes are used.
Purpose
The post-processing feature is simple to use and can be easily applied with scripts. This sample shows how to use and combine them in Scene Composer and en-/disable them at runtime.
Description
The most important nodes of the sample are cameras in the 3D and 2DFX scenes. These cameras have post-processing scripts attached. They are taken from the Construction Kit as Script Components. When the sample is started in the Player, the scripting system for the Player has to be enabled. Then, the buttons of the 2D scene allow to switch between 3D and 2D scenes and to enable or disable each effect. To approach this behavior, additional scripts have been added to the solution. In general it works in the way that the camera has a further script attached that stores its ID in a global table. Other scripts (attached to other nodes) access this table to be able to enable the post-processing scripts. The cubes also have scripts attached, that control the rotation of the cubes and their color or opacity. For a more detailed description of what the scripts do please refer to the comments in the scripts themselves.