Sign in to follow this  
MannyZanny

Advantage of Meshes

Recommended Posts

MannyZanny    147
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
DirectXFreak    166
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
Saruman    4339
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
MannyZanny    147
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this