Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / [DBP] DirectX export function

Author
Message
Sven B
19
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 9th Feb 2008 10:53 Edited at: 9th Feb 2008 11:19
Hi everyone!

I posted a DirectX exporter a while ago, but I forgot to mention DBP in the post so it got deleted.
But it doesn't matter, because I rewrote the whole thing to be more functional.

- The function -


Maybe some explanation before you come with bugs:
This exporter can export loaded DirectX files or other file formats that use indices (in theory). I have experienced problems with he DBP primitives regarding displacement, but my tests with normal exported DirectX files and 3DS files were working.
Memblock objects cannot be exported with this function, caused by the obvious reason that they do not contain index data, only vertex data.
Also, it removes any bones that do not contain any vertex data and are positioned at 0,0,0. A root frame is added automatically.
No texture names are exported along with the file.

You will need IanM's MatrixUtils plugin to get it working

There seems to be some problems other than that. But it might be out of my reach.

[EDIT]
I found a small error.

It's the programmer's life:
Have a problem, solve the problem, and have a new problem to solve.
n008
17
Years of Service
User Offline
Joined: 18th Apr 2007
Location: Chernarus
Posted: 9th Feb 2008 19:28
OOh, this looks useful!

Good job!

"I have faith, that I shall win the race, even though I have no legs, and am tied to a tree." ~Mark75
Sven B
19
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 9th Feb 2008 23:27
Thanks n008.

Here's a small example:
It can load DirectX and 3DS files and convert it to a DirectX file (DirectX2DirectX is pretty stupid, but hey, it makes my point).
You can add some more formats, but I can say DBO files do not work.


The open/savedialog is coded by JessT.

It's the programmer's life:
Have a problem, solve the problem, and have a new problem to solve.

Login to post a reply

Server time is: 2024-05-17 03:49:18
Your offset time is: 2024-05-17 03:49:18