Go Back  Xtreme Visual Basic Talk > Visual Basic .NET (2002/2003/2005/2008, including Express editions) > .NET Game Programming > Managed DirectX > Q: DX9, VB.NET, Mesh A + Mesh B = Mesh C

Thread Tools Display Modes
Old 09-07-2005, 04:33 AM
DxDotNet DxDotNet is offline
Join Date: Sep 2005
Posts: 2
Question Q: DX9, VB.NET, Mesh A + Mesh B = Mesh C


How is it possible to combine two meshes to a single mesh?

The reason is that I have to show hundreds of small meshes
and the performance of rendering one big mesh with identical
number of vertices is quite better.
(I've tried it out using vertex buffers to make a mesh)

Now I want to take two meshes A and B, which were created with
a 3D software and loaded as *.x-file by the directx loadmesh
function, and put them together to a third mesh C.
(Mesh A + Mesh B = Mesh C, if possible including previous
transformation, materials and texture .)

If anyone has any suggestions or ideas to manage this, or if
there is a tutorial, sourcecode etc. please help




Wie kann man es schaffen, zwei Meshes zu einer zusammen zu

Ich habe herausgefunden, das es enorm Laufzeiteffektiver ist eine
große Mesh zu verwenden, statt mehrere hundert von kleinen, trotz
gleicher Anzahl von Vertices. Das habe ich per Vertex-Buffer ge-
testet, doch damit kann man nur begrenzt schöne Meshes bauen.

Jetzt will ich zwei Meshes (A, B) mit der DirectX LoadMesh Funktion
als *.x Datei laden, transormieren und anschließend zu einer Mesh C
zusammenfassen ohne die Materialien oder Texturen zu verlieren.

Hat das schon mal jemand gemacht oder gesehen wie's geht oder
eine Idee oder Tutorial oder ein Stück Quellcode oder sonstwas?

Vielen Dank im Voraus,

Reply With Quote

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..