PDA

View Full Version : Creating D3DX Meshes in code (from scratch)



adebruyn
04-01-2004, 05:18 AM
Hi:

I'm a veteran with Delphi, but very new to DirectX.

I'm trying to create a D3DX Mesh from scratch, that is, by defining vertex, faces and face attributes in the code itself, rather then loading it from a .x file (it's about a randomly generated fractal world). But I have to say I'm quite lost, and since the rare examples out there are in C++, that doesn't help me much (yes, I'm illiterate in C++, too, shame on me) :oops:

Would anyone be kind enough to post an example of mesh creation in Delphi? Anything, ANYTHING that could put me on the right path would be greatly appreciated.

Thanks!
Arnaud

PS: I'm not using DelphiX.

Clootie
04-01-2004, 02:09 PM
"Generate X-File inside your program": http://clootie.narod.ru/delphi/download_custom.html#D3Dex_GenXFile
Good luck!