Chapter22.Using Render Targets for Effects


Chapter 22. Using Render Targets for Effects

Until now, you've been rendering everything you've done directly to the back buffer. In the vast majority of cases, this is the behavior you want, but what if you want to render somewhere else? What if you want to take the scene you've just rendered and use that as a texture somewhere else, say on a video screen inside your level?

In Direct3D, you accomplish this goal through the use of render targets.

In this chapter, you'll learn

  • How to render a track and multiple karts

  • How to create and use render targets

  • How to implement a rear-view mirror



Beginning 3D Game Programming
Beginning 3D Game Programming
ISBN: 0672326612
EAN: 2147483647
Year: 2003
Pages: 191
Authors: Tom Miller

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net