Jump to content
The Dark Mod Forums

Maya to md5


Lascha

Recommended Posts

Hello everyone,

 

I am a student and just started on a project in which we will use md5 models in a raytracer. Here's what I'm talking about:

fatty.th.png

 

The ray tracer (in c++) has no problems importing an md5 models (eg. the ones from doom3). The problem is converting maya (2009 and 2010) models to md5 models. Since you probably already dealt with issues concerning this, I think someone would be able to help.

 

I am using "MayaImportx86.dll" (2010 version) with "doom3.exe". First I would get the error about maya not in registry, which was fixed by setting the environment variables. Then I got an error about MayaImport dll not being able to load, which was fixed by a typo in the environment path variable. Trying to export models after fixing these errors leaves me with a complete new behaviour: doom3 waits ~1 sec and exits. No errors are printed in the console. Nothing got exported.

 

Here is what I have:

 

I have maya 2010 installed in:

C:\Program Files\Autodesk\maya2010\

 

Environmental variables are set:

Path C:\Program Files\Autodesk\Maya2010\bin;

MAYA_LOCATION C:\Program Files\Autodesk\maya2010;

 

Doom 3 and its .exe is in:

C:\Doom3\

This directory also contains:

MayaImportx86.dll (The one for Maya2010)

 

The .def file is in:

C:\Doom3\base\def

 

Here is my .def file, named "character.def":

export character
{
options -sourcedir models/mymodels/character -destdir models/md5/mymodels/character

mesh character.mb -dest character.md5mesh
anim idle.mb -dest idle.md5anim
}

 

The source directory is in:

C:\Doom3\base\models\mymodels\character

This folder contains:

character.mb

idle.mb

 

The destination directory is in:

C:\Doom3\base\models\md5\mymodels\character

 

So now I run the game and press ctrl+alt+` to bring up the console.

I enter the command: exportModels character.def

(I also tried the command 'fs_game' first, as suggested somewhere on the internet.)

The game sleeps for 1 seconds and then exits, no errors notified.

 

 

I believe the problem lies in the models, if possible, can anyone else try to convert them and see what is wrong? Here is a link to a dummy model that gives the problem: http://www.fileshost...hp?id=0BAB5D641

 

This should be about it. Thanks for your time :P

 

Kind regards,

 

Lascha

Edited by Lascha
Link to comment
Share on other sites

The model is fine, I could export it and see it in-game (although it was black of course):

 

testmodel.jpg

 

Here's my test.def:

 

export character
{
options -sourcedir models/model_src -destdir models/model_src/test

mesh normalMesh_02.mb -dest character.md5mesh
anim Idle_02.mb -dest idle.md5anim
}

// For the testmodel command
model test
{
mesh models/model_src/test/character.md5mesh
channel torso ( *Spine_Dummy)
channel legs ( origin Pelvis Pelvis2 *Hips)

anim af_pose models/model_src/test/idle.md5anim
anim idle models/model_src/test/idle.md5anim
}

I'm using Maya 2009 though. I could load the .mb file you uploaded just fine, so I guess there is not much of a difference.

 

You can try to change the texture name of your model perhaps. Vanilla Doom 3 tries to convert the file path of the texture to a D3 material by cutting off paths, and maybe this fails for you. Use something like "textures/test.tga" to double-check.

Link to comment
Share on other sites

Thanks for the reply. It's good to hear that the model works, makes the problem easier to find.

 

I have downloaded the "MayaImportx86.dll" for 2009, and replaced the 2010 by it. Then I set the environment variables to the maya2009 directory. I then tried to export to see if that would work, but it didn't. So it seems it's not maya version related since 2009 also causes the same problem. (For this I used the .def file you posted). I also made sure that the textures were correctly named, like you suggested, but this also did not help.

 

This brought me to wondering what version of doom3 you are using. Perhaps thats the problem?

Here is mine (version.inf) in C:\Doom3\

[Version Info]
ExtVersion=1.3
IntVersion=16.0
Language=255
Branch=0.0
QA=3735

[Product Info]
Platform=PC
Product=Doom 3

[Ereg Info]
Server=www.activision.com
StartLocation=/webreg/register/
Template=/webreg/register/user_env.asp?context=app
UPC=047875323773

 

Also, any idea where I could find the source code of the md5 exporter? Perhaps I can find the place where problem occurs by searching where the app is being terminated (after all, it suddenly exits after the export command).

Edited by Lascha
Link to comment
Share on other sites

This brought me to wondering what version of doom3 you are using. Perhaps thats the problem?

I'd recommend patching your Doom 3 version to the latest (1.3.1.1304), there is a link on our wiki to that patch. It could well be the problem, I used the latest SDK from id.

 

Also, any idea where I could find the source code of the md5 exporter? Perhaps I can find the place where problem occurs by searching where the app is being terminated (after all, it suddenly exits after the export command).

The source code is contained in the D3 SDK, which you can download from www.iddevnet.com (http://www.iddevnet.com/doom3/downloads.php).

Link to comment
Share on other sites

What a bummer... I have updated doom with the version from the wiki, but unfortunately that didn't help. I have also downloaded and installed dark mod, to see if it would perhaps work, but nope; game just exits after typing the command.

 

Went through the source code, it has pretty many places that return without an error message - no way for me to track it down unless I can debug it. That brings me to my next question: Is there a project available in which I can accomplish this?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recent Status Updates

    • nbohr1more

      The FAQ wiki is almost a proper FAQ now. Probably need to spin-off a bunch of the "remedies" for playing older TDM versions into their own article.
      · 1 reply
    • nbohr1more

      Was checking out old translation packs and decided to fire up TDM 1.07. Rightful Property with sub-20 FPS areas yay! ( same areas run at 180FPS with cranked eye candy on 2.12 )
      · 3 replies
    • taffernicus

      i am so euphoric to see new FMs keep coming out and I am keen to try it out in my leisure time, then suddenly my PC is spouting a couple of S.M.A.R.T errors...
      tbf i cannot afford myself to miss my network emulator image file&progress, important ebooks, hyper-v checkpoint & hyper-v export and the precious thief & TDM gamesaves. Don't fall yourself into & lay your hands on crappy SSD
       
      · 7 replies
    • OrbWeaver

      Does anyone actually use the Normalise button in the Surface inspector? Even after looking at the code I'm not quite sure what it's for.
      · 7 replies
    • Ansome

      Turns out my 15th anniversary mission idea has already been done once or twice before! I've been beaten to the punch once again, but I suppose that's to be expected when there's over 170 FMs out there, eh? I'm not complaining though, I love learning new tricks and taking inspiration from past FMs. Best of luck on your own fan missions!
      · 4 replies
×
×
  • Create New...