Does DirectX import/export even work?

Hi, just added this update to blenders CVS- a file with a blank line was giving errors. would appreciate if people would test - works with 2.44 release.

http://members.optusnet.com.au/cjbarton/DirectX8Importer.py

Since multiple mapping coordinates have been introduced in blender 2.43 maybe someone with coding knowledge is interested in updating the directx importing of models to show the multiple UV coordinates in blender…

Trakerz, can you provide and example mesh and Ill try and support.

Here are 2 files one in directx format and one in ase(Ascii) format
They both have a cube object with 2 texture coordinates that look different in distribution
Hope this helps :wink:

http://www.4shared.com/file/16992208/73c910bf/box.html

Okay, it seems that The coords are encoded in FVFData, however I cant find out how to decode the data. :confused:

What about ASE importing?
Here is a ASE importer for blender

http://www.katsbits.com/files/blender/goofosASE_import_15Aug06.zip

From what i have seen in the ASE format the information looks better then directx format
Maybe someone could do a try…

actually, I guess most interesting thing would be, with a level(a box and an sphere would do) done in Blender, apply to it a texture in uv layer 1, apply another bitmap, (indeed, the result of bake of lighting done before) to the uv layer 2, asign to it, and then see to export the multiple-uv mesh in X format. FVF is the one used by directx 9.Allows some more features…indeed, probably is actually neeed for this of porting(exporting) the multiple UVs + texture and lightmap bitmap asigned properly, all in a x file.(+bitmaps, of course)

I have not tried yet lightmapping in Blender (I use to use my Giles for this) , but would be rather useful for game people to be able to export lightmapped levels in the form of x files.(+ PNGs or TGAs needed)

Trackers, I wrote an ASE importer (was the first importer I wrote)
but code is awful, and not sure if its much help for multi-UV’s

I can post if you like all the same.

You can try post your ASE version but i doubt it will work because i think there should be some code that will add another mapping channel to the object when it gets in blender…donno :smiley:

Hi can anyone here provide me with meshviewer or dxviewer please, bandwidth restrictions prevent me from downloading the dx sdk with these tools.
Thanks
E

http://www.craigsniffen.com/index/DXViewer.exe

Hurry up and make a great exporter! It’s impossible to use the two we have now, one can only be used once per session and only supports one animation, and the other is hard to get to work and when it does, the UV mapping is all screwed.

MasterSlowPoke! Thanks for the DXviewer link!!
One question though will DXviewer allow me to convert between a directX .X text file and an uncompressed .X binary file?

Hi Folks,
I am new to this forum, so hopefully this is the right place to post this script. I noticed a few posts back that someone mentioned that the Directx Importer Script can only import one mesh. I was frustrated by this too so I took a stab at updating Arben’s script.
The script at the link below allows you to import multiple meshes from one file. I call it the “Multi_Directx8Importer”.
Let me know how it works.
http://www.savefile.com/files/957384
It works best if you unzip it into the Blender/Scripts folder, then run the script from the Blender text editor window.
I created this as part of my effort to make Blender Tools to mod Relic’s Dawn of War.
http://forums.relicnews.com/showthread.php?t=162794
Cheers,
Mudflap;)