The Code So Far

[Previous] [Next]

You're now at the point where you can write an application that creates every object necessary to generate a window capable of rendering and presenting a Direct3D scene (even though we haven't yet covered the actual 3D content). Figure 5-10 shows a screen shot of the output of the code for this chapter. This code generates two lights—one red and one green. Each light moves around the scene and cycles between the point light, directional light, and spotlight types. By watching this code in action, you'll be able to see firsthand how the various lights can be used to illuminate a scene and how different each effect is.

click to view at full size.

Figure 5-10 The scene with rendered colored lights.



Inside Direct3D
Inside Direct3D (Dv-Mps Inside)
ISBN: 0735606137
EAN: 2147483647
Year: 1999
Pages: 131

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