PDA

View Full Version : [DirectX] .X files from code!



NecroDOME
17-09-2005, 02:58 PM
Hi there,

I know it's possible to create .x files from code, but I'm needing an example...

Can any one help my??

(I currently using my own file format, but for animated models I want to use the .x files.
juist cause I think they work easy)

Thanks in advance,
NecroDOME himself

Sly
17-09-2005, 11:27 PM
There are D3DX functions available to create the mesh and animations and then call D3DXSaveMeshHierarchyToFile() to save it all out to file. It is quite complex though.

NecroDOME
19-09-2005, 05:05 PM
I do not want to save it to a file (yet),
Im trying create one from code, but I think im needing an example :S (or some help :P)

Clootie
20-09-2005, 07:03 PM
Really old DirectX 8.x example: GenXFile (http://www.clootie.ru/delphi/download_custom.html#D3Dex_GenXFile).
But it shows exactly what you need.