CHAPTER 2 ■ SETTING UP DIFFERENT CAMERA MODES IN YOUR 3D WORLD
143
Itisalsoimportanttonotethatthisapproachcanbeusedinconjunctionwithaquadtree.
Insteadofusingsingletriangles,theROAMmechanismcanbeusedtodeterminewhether
entire patches of the terrain should be drawn in low or high detail.
2-12. Set Up a Post-Processing Framework
The Problem
You want to add a 2D post-processing effect to the final image of your XNA program, such as a
blur, ripple, shock, sniper zoom, edge enhancement, or other post-processing effect.
The Solution
You will first render your 2D or 3D scene to the screen. At the end of the Draw phase, before the
contentsofthebackbufferarepresentedtothescreen,youaregoingtohijackthecontentsof ...