KatsBits Community

[MD5] export add-on for Blender 2.63+

nemyax · 58 · 136963

0 Members and 2 Guests are viewing this topic.

Offline motorsep

  • Jr. Member
  • *
    • Posts: 75
There are some folks who are interested in doing this, and therefore I created a mock up of the GUI and technical description, in case you are still interested: http://blenderartists.org/forum/showthread.php?258069-PAID-job-MD5-exporter-for-Doom-3


Offline nemyax

  • Newbie
    • Posts: 38
> types in Action names
A resounding NO. If batch export is to happen in this one, it will be  based on timeline markers, not actions in the Blender sense. I don't want to go near that can of worms.


Offline motorsep

  • Jr. Member
  • *
    • Posts: 75
You need to have each animation in a separate Action. There is IQM exporter that does just that - it takes Action and exports only amount of frames occupied with keys. Nothing more nothing less. Sometimes animation needs to be shorter than Action timeline is, so markers would help a lot.

That's just sane workflow. You exporter provides workflow from 90s, when command line tools were common.


Offline nemyax

  • Newbie
    • Posts: 38
The script has been updated:
1. Added batch export.
2. Added popups blocking the file selector if export is not possible (not implementing this from the start was very lame on my part, sorry about that).

Get it at the usual place: http://arxendofsun.solarsplace.com/downloads/io_scene_md5.zip
Don't forget to read the readme.


Offline Spielkarsten

  • Defunct
  • Newbie
    • Posts: 1
I have noticed that the export fails if you have any object transformation on the armature. If you clear that, it works fine. Maybe you could add that to the readme or fix it.


Offline 222464

  • Newbie
    • Posts: 6
Hello,

When looking for a solution for an animated model format for my game engine, I found MD5, and from there I found this. First of all, thanks for sharing this! MD5 exporters seem to be pretty rare. Unfortunately though, when trying to export a MD5 mesh, I got:



I was able to export an animation just fine, but meshes don't seem work for me. Any ideas as to what I might be doing wrong?


Offline kat

  • Administrator
  • Hero Member
  • *
    • Posts: 3139
    • KatsBits
When you export are you select both mesh and armature (armature last), or just the mesh on it's own?


Offline 222464

  • Newbie
    • Posts: 6
I tried both, no success  :(

EDIT: The error also causes Blender to crash when exiting.


Offline kat

  • Administrator
  • Hero Member
  • *
    • Posts: 3139
    • KatsBits
Do you want to send me the file and I'll take a look? info@katsbits.com if you can/are able to.


Offline nemyax

  • Newbie
    • Posts: 38
I have noticed that the export fails if you have any object transformation on the armature. If you clear that, it works fine. Maybe you could add that to the readme or fix it.
I'll look into it, thanks for reporting.
When you export are you select both mesh and armature (armature last), or just the mesh on it's own?
It doesn't matter. Only the mesh selection is used. The readme states this explicitly.
Unfortunately though, when trying to export a MD5 mesh, I got:
This error means the script can't find vertex weight data in the mesh object. It's supposed to catch this condition early, but apparently it doesn't. I'll try to fix this soon; meanwhile, please make sure your mesh is weighted properly. It would help if you uploaded your blend file somewhere.



Offline kat

  • Administrator
  • Hero Member
  • *
    • Posts: 3139
    • KatsBits
Did you check the email I sent you in return 222464? There are a few more problems with the model you need to address in addition to the vertex weighting issue nemyax mentioned.

[EDIT]ignore the above, I just read your reply, message was in my junk folder again.. damn filters!


Offline 222464

  • Newbie
    • Posts: 6
After setting it aside for a while, I again tried to use this exporter, but unfortunately I have still not been able to successfully export a MD5 mesh.

Animations work just fine, so I don't see how it can be a vertex weighting issue.

Thanks for the help so far!



Offline nemyax

  • Newbie
    • Posts: 38
I don't see how it can be a vertex weighting issue.
It is. Check your weights. And unparent the mesh from the armature while you're at it—this is wrong on so many levels (and you tricked yourself by parenting it).
MD5 animations don't use any weight information (only bounding boxes and joints), so animation export is not prevented.


Offline nemyax

  • Newbie
    • Posts: 38
A small clarification: although the "swarmer" character has some weighting issues, the real cause of the error seems to be the presence of vertex groups unrelated to bones. I'll need to make the script ignore those. I'll also forbid zero weights, because they are ambiguous.