Merging 3 Meshes
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
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
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
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]
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]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement