Making Our Triangle Three Dimensional

Looking back at our application, it doesn't appear to be very three dimensional. All we did was draw a colored triangle inside a window, which could just as easily have been done with GDI. So, how do we actually draw something in 3D and have it look a little more impressive? Actually, it's relatively simple to modify our existing application to accommodate us.

If you remember, earlier when we were first creating the data for our triangle, we used something called transformed coordinates. These coordinates are already known to be in screen space, and are easily defined. What if we had some coordinates that weren't already transformed though? These untransformed coordinates make up the majority of a scene in ...

Get Managed DirectX® 9 Kick Start: Graphics and Game Programming now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.