• Advertisement
Sign in to follow this  

Advantage of Meshes

This topic is 4589 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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?

Share this post


Link to post
Share on other sites
Advertisement
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.

Share this post


Link to post
Share on other sites
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?

Share this post


Link to post
Share on other sites
I've filled ID3DXMesh:es using my own model format(s) and it has worked ok...

Share this post


Link to post
Share on other sites
I was just wondering if there were rendering speed advantages or easier for collision detection. But by the replies it sounds like it doesn't really matter at all?

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement