Using Meshes to Render Complex Models

Rendering teapots can be quite exciting, but it's not often you make a game with nothing but teapots. Most meshes are created by artists using a modeling application. If your modeling application supports exporting to the X file format, you're in luck!

There are a few types of data stored in a normal x file that can be loaded while creating a mesh. There is naturally the vertex and index data that will be required to render the model. Each of the subsets of the mesh will have a material associated with it. Each material set can contain texture information as well. You can also get the High Level Shader Language (HLSL) file that should be used with this mesh while loading the file. HLSL is an advanced topic ...

Get Managed DirectX® 9 Kick Start: Graphics and Game Programming 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.