Jump to content
  • Advertisement
Sign in to follow this  
Rapthor

Merging 3 Meshes

This topic is 4860 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, how do I merge some 3 meshes so that I have one left, that consists of a larger VertexBuffer and IndexBuffer? (Please post some code, because I think I got problems with theory ...) Thanks, Rapthor

Share this post


Link to post
Share on other sites
Advertisement
what kind of meshes are you currently using? D3DXMesh?
if yes then:
1)get the raw vertex and index data from your meshes with
D3DXMeshVertexBuffer8GetData / D3DXMeshIndexBuffer8GetData

2) then just load another mesh with the 3 raw vertex and index data from the previous step.
D3DXMeshVertexBuffer8SetData/D3DXMeshIndexBuffer8SetData

Share this post


Link to post
Share on other sites
Does this apply to C# programming, too?

I am using Directx.Direct3DX in Visual Studio.

I put in this:

mesh_kirche = new Mesh(14, unterer_block.NumberVertices + oberer_block.NumberVertices + spitze.NumberVertices,
MeshFlags.Managed, CustomVertex.PositionNormalTextured.Format, dev);

What next? I'm not sure ...

[Edited by - Rapthor on April 24, 2005 2:22:28 PM]

Share this post


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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!