How to Export u,v to a DirectX X-file using a script

Got my export script working now. Thank you very much for updating that sample script.

-MarkZero

A game we are creating (Novawar:Skirmish) uses a modified version of DirectX .X-files for its models, which are exported using a script. The script is based on the Sample – Export DirectX.CS script. When I updated my 3DC to version 6.5.5.10 I noticed that the scripting API has changed so that my script no longer works, so I looked if there was a new Sample – Export DirectX.CS included so that I could take a look and change my script accordingly. There was, but it was exporting dummy u,v coordinates.
I have tried to write the u,v exporting part myself, but I haven’t gotten it to work. 3DC seems to use some sort of indexed UV coordinates now whereas DirectX .X-files don’t. No problem I thought, I could just search the faces for which UV-coordinate is for which point. But to my surprise this doesn’t work. And what’s more confusing is that there seems to be more UV coordinates in an object than there are points? How does 3DC scripting API handle u,v coordinates now, and how do I export them to a .X file?

-MarkZero

I was hoping I wouldn’t need to update that script. But I can update it and give you a copy.

Or, if you have Visual Basic 6 I could give you the source for a DirectX exporter plug-in. It’s much faster and easier to deal with.

Your choice.

It would be best if you could update and send that script. I don’t have VB 6, but I could take also that source code anyways and try my luck with compiling it in VB 2005 Express Edition. Though what I have read from the other thread it doesn’t look good and so far I haven’t gotten any of the examples to work with VB 2005 either.

-MarkZero

And my e-mail address so that you can send the script and/or source code: marko.karkela.foolspambots.tut.fi

-MarkZero

If you don’t have Visual Basic 6 I won’t send the plug-in source. I would have to do a fair amount of work to write it (it doesn’t exist).

I’ll get the DirectX export done as quickly as I can. I have a few other things that I’m in the middle of right now. Hopefully it won’t be very long.

An updated script is the new release of 3DC (6.6.5.11).

You must be logged in to reply in this thread.

7 posts