Complex Objects and Textures
Going to the trouble of vertex buffers, effects, views, and projections is a lot of work for a single triangle. And because this triangle is completely flat, it hardly seems like a decent example of three-dimensional drawing. But now that you understand the basic concepts of Silverlight 3D, you're ready to create more complex shapes.
Once you've mastered the lowly triangle, the next step up is to create a solid, faceted shape by assembling a small group of flat, 2D triangles. In the following example, you'll create a cube.
A cube consists of six square sides. Each square side needs two triangles. Each square side can then be joined to the adjacent side at an angle. Figure 13-9 shows how a cube breaks down into triangles ...
Get Pro Silverlight 5 in VB now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.