Original Post
hi, i'm really new to learning directx and i've been working through the dx9 kick start book. it seems the api has changed since it was published because some of the code samples don't always run right. i'm having a particular problem on chapter 7, getting the simplify a mesh code to work right. the code (c#): // Clean our main mesh Mesh tempMesh = Mesh.Clean(CleanType.Optimization, mesh, adj, adj); // Replace our existing mesh with this one mesh.Dispose(); mesh = tempMesh; // Get our new simplified mesh simplifiedMesh = Mesh.Simplify(mesh, adj, null, 1, MeshFlags.SimplifyVertex); gives me a runtime error with additional information: object reference not set to an instance of an object. another function i found through looking through the help docs that came with runtime was: SimplificationMesh simplifiedMesh = new SimplificationMesh(mesh, adj); and that function generates the same runtime error. can anyone help me with this? thx jigen3