O'Reilly logo

3D Graphics with XNA Game Studio 4.0 by Sean James

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 4. Projection and Shadowing Effects

Our PrelightingRenderer is a great way to render a large number of lights in a relatively efficient manner and it also makes a great framework for implementing some other fairly complicated effects. In this chapter, we will look at two related effects—projective texturing and shadow mapping. We saw some aspects of projective texturing in the last chapter, but in this chapter we will learn how to project an image across the scene as though it was projected by a real world projector.

Next, we will look at two implementations of shadow mapping. Shadow mapping is similar to projective texturing—in that we use the same process to project a depth texture across the scene, which we then use to generate shadows. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required