Hi everyone. This is a Maya md5 importer, so you can use it to import doom3 models and animations into Maya and watch them/tweak them/learn from them...
Thanks to everyone on this forum (
der_ton,
bozo and all the others) for the doom3 knowledge sharing. And thank you especially to
nobdhy, who took some time to check the code, and came up with the equations that made it all possible (basically he got me going when I was completely stuck).
This MEL script (and the icon for the GUI) should work for Maya 8, 7, 6 and maybe 5. To use it:
1) Just put the script somewhere where you'll know where to find it, and the icon in "my docs/maya/6.0/prefs/icons" or something of the sort. Then in Maya make a button with:
Code:
source "F:/maya_scripts/my_scripts/doom3toMaya_018e.mel" ;
md5import ;
Of course, replace the path with the relevant info...
Please note the use of "/" instead of "\" in the path!
2) Edit (with notepad) the line number 9 (of the the MEL script) that says $doomBasePath with your valid doom path.
Now some caveats:
=============
- this is a BETA, but it mostly works.
- there are no textures imported in Maya, because the code is not working yet (and the purpose is just to see the geo and the anim).
- the vertex number in Maya is not the same as in doom3. What I understand is that there are some vertices in (not all) the models that occupy the same position in space, but are still considered distinct. However, when Maya combines the faces (based on the tris), it gets rid of those weird/duplicated vertices. This doesn't seem to be such a big deal as far as weighting is concerned, but the UVs get pretty distorted in places (hence the texture feature disabling)...
- because of the aforementioned problem, some props/things will miss part of their geometry
Finally, I hope you have a fast rig, because on my mighty powerful Pentium 3 at 1Ghz, it takes:
- 8 sec to build a "lost soul"
- 33 sec to build a "skeleton"
- 1mn 51s to build a "pinky"
- 2mn 9s to build an "imp"
I think for the "hellknight" it was about 10 minutes. Rhhaaa... But I'm getting a much better machine soon!

Please, tell me how long it takes on your PC!
Don't hesitate to tell me if you see glaring mistakes in the script or anything (after all I'm not a coder

). Oh yeah, the link:
[EDIT] by Seith:
This is where to find the most recent version!
http://www.seithcg.com/#MD5toMaya
[EDIT]moved to Maya forum >kat<