Advantage of Meshes
I am creating my own file format for saving and loading 3D models but is there an advantage of using meshes. I have seen code to load a mesh .x but if a mesh has considerable advantages how do you assign data into a mesh from a custom format?
What exactly do you mean by advantages to using a mesh? Are you talking about meshes in general? Or specifically the .x file format?
It's not a good idea to create a ID3DXMesh object and try to fill it with your own custom model data. If you've created your own custom format, it should have it's own methods of rendering, loading, etc.
All that you really need to do is load the data from the file, stuff the vertices and indices into buffers, create the materials and textures, and then render them all.
It's not a good idea to create a ID3DXMesh object and try to fill it with your own custom model data. If you've created your own custom format, it should have it's own methods of rendering, loading, etc.
All that you really need to do is load the data from the file, stuff the vertices and indices into buffers, create the materials and textures, and then render them all.
Quote:Original post by DirectXFreak
It's not a good idea to create a ID3DXMesh object and try to fill it with your own custom model data.
I would love to hear your reasoning on this. Care to share?
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement