Using a Simplification Mesh

Although simplifying a mesh directly as you did here is feasible in a few situations, in most cases you have to store entirely too many meshes for it to be useful in a real-world situation with many levels of detail. (Each level of detail requires a separate mesh.) What you need is a way to do something similar but without the requirement of all these mesh copies.

You can use the SimplificationMesh object to encapsulate the process of simplifying a mesh. However, you can't actually use the object to do the rendering; you must first get an actual mesh from the simplification mesh. Creating the simplification mesh is simple; here is the overload:

public SimplificationMesh ( Microsoft.DirectX.Direct3D.Mesh mesh , Microsoft.DirectX.GraphicsStream ...

Get Beginning 3D 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.