Sign in to follow this  

Mesh Question

This topic is 4779 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

Hi, everybody, actually I am a beginner and I start to write DirectX recently. Now, I start to learn what is mesh. I have several question want to know that: 1. If we want to make a large game, should we use mesh instead of use only vertex buffer written by myself. as you know, some example on beignner such as triangle,rectangle, their vertex is written by myself. is the game the same ? or we must need to use mesh? 2. Where can I found more detail about mesh? 3. If I need to use mesh, what tools should I use is more easily?Becuase I want to make a maze My english is not good. but I hope you can undestand what I mean and help me this problem. Thank you very much ^^

Share this post


Link to post
Share on other sites
Quote:
Original post by GDMichael
Hi, everybody, actually I am a beginner and I start to write DirectX recently.


Hey there. I'm fairly new in the area too, but hopefully I can help you out.

Quote:
1. If we want to make a large game, should we use mesh instead of use only vertex buffer written by myself. as you know, some example on beignner such as triangle,rectangle, their vertex is written by myself. is the game the same ? or we must need to use mesh?


To my understanding (please correct me by all means if I'm quite wrong), a Mesh in DX is a class that contains a vertex buffer, and other things that optimize the Mesh. Since optimization is generally a good thing, I'd go for using Meshes.

Quote:
2. Where can I found more detail about mesh?


People don't like I hear it, but I'll say it: Google and/or MSDN. :)

Quote:
3. If I need to use mesh, what tools should I use is more easily?Becuase I want to make a maze


Not really sure what your asking for here. What sort of tools are we talking about, here?

Share this post


Link to post
Share on other sites
Quote:
Original post by GDMichael
3. What tools can I make a mesh ?


Uhm. You mean external third-party tools, or D3D helper classes for Meshes? If you need tools for actually modeling a Mesh for a .X file, then there's plenty around (3ds max, Milkshape, gmax, etc). If it's the latter, then MSDN or the DXSDK docs can help you out.

Share this post


Link to post
Share on other sites
Take a look at :

D3DXLoadMeshFromX
ID3DXMesh
ID3DXPMesh ( Progrssive meshes )

This should get you started with .x files.

Regards,
Steve

PS - look at the sticky in this forum on x-file tutorials.

Share this post


Link to post
Share on other sites

This topic is 4779 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.

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