programmatic creation of meshes in Managed DX 9 / VB.Net
From: chris esposito (christopher.esposito_at_boeing.com)
Date: 07/01/04
- Next message: Fabian Schmied: "Re: what to redistribute"
- Previous message: Jakob NIelsen: "Re: Camera Movement"
- Next in thread: Steven Licciardi: "Re: programmatic creation of meshes in Managed DX 9 / VB.Net"
- Reply: Steven Licciardi: "Re: programmatic creation of meshes in Managed DX 9 / VB.Net"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 01 Jul 2004 15:04:12 -0700
Greetings-
I'm working on a VB.Net app that will dynamically generate 3D point
data sets (i.e., not from files) that I want to turn into Direct3D
meshes for display, triangle picking, and other manipulations. I have
VS.Net 2003 and the DX9 summer 2003 update installed.
From what I can find, neither Tom Miller's (excellent) book nor the DX9
docs for managed languages discuss this in much depth, instead focusing
on either loading meshes from files or creating standard shapes via the
API.
Since a mesh contains both a vertex buffer and an index buffer, I'm
guessing that the steps to do what I want are:
1) triangularize my data set via a 3D Delaunay triangulation, or
something similar (I'll be generating surface data, not volumetric, so
it seems to me that delaunay is a reasonable choice)
2) generate and fill vertex and index buffers from the results of (1)
3) call the Mesh constructor, passing in the number of faces
(triangles) and vertices, among other things
4) call SetVertexBuffer and SetIndexBuffer to associate the index and
vertex buffers from (2) with the mesh from (3)
I know I've left out colors, lighting, materials, etc. As fas as getting
the mesh itself constructed, have I missed anything?
Thanks,
Chris
- Next message: Fabian Schmied: "Re: what to redistribute"
- Previous message: Jakob NIelsen: "Re: Camera Movement"
- Next in thread: Steven Licciardi: "Re: programmatic creation of meshes in Managed DX 9 / VB.Net"
- Reply: Steven Licciardi: "Re: programmatic creation of meshes in Managed DX 9 / VB.Net"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|