Author Topic: [MD5] export add-on for Blender 2.63+  (Read 34004 times)

0 Members and 1 Guest are viewing this topic.

Offline nemyax

  • Newbie
  • Posts: 38
[MD5] export add-on for Blender 2.63+
« on: May 15, 2012, 10:03:40 PM »
UPDATE: Updated version (for Blender 2.66+) of Arx MD5 export available here



I've written an MD5 exporter for Blender 2.63+. It takes advantage of the Bmesh data structure, so it won't work with prior versions. This exporter was done from scratch and does not use any code from older ones.

It was made for use in the Arx: End of Sun project, and built around the workflow used by the project team, not around the workflow associated with previous exporters. For usage details, see the accompanying readme file.

The exporter is up at http://arxendofsun.solarsplace.com/downloads/io_scene_md5.zip
The .zip file contains the add-on directory and a readme file (mandatory reading).

Disclaimer: I don't really know how to code, so do not expect this to work well for you. In addition, some of the transform code is based on trial and error rather than an understanding of the maths involved. However, if you've been bitten by the lack of MD5 export for 2.63 (as I have) and you abhor the prospect of sticking with pre-2.63 (as I do), you might want to give this a spin.

[EDIT]added link to updated script. kat

Online kat

  • Administrator
  • Hero Member
  • *
  • Posts: 2094
Re: MD5 export add-on for Blender 2.63+ released
« Reply #1 on: May 18, 2012, 07:17:12 PM »
Thanks for posting. Not had a chance to test this yet though.

Offline nemyax

  • Newbie
  • Posts: 38
Re: MD5 export add-on for Blender 2.63+ released
« Reply #2 on: May 25, 2012, 12:40:08 PM »
The script has been updated:
1. Fixed a frame range bug.
2. Made it record parameter values (Reorient and Scale) used during export.

Offline velociostrich

  • Newbie
  • Posts: 1
Re: MD5 export add-on for Blender 2.63+ released
« Reply #3 on: May 28, 2012, 03:31:42 AM »
I'm a developer on the Unvanquished project (http://unvanquished.net/). We've been having a number of issues with the previous MD5 exporter and haven't really gotten around to addressing them (opting instead to use older versions of Blender). At present, there's a lot of different versions of the old exporter just floating around on the internet, so just yesterday we set up a new github repository (https://github.com/Unvanquished/Blender-Scripts) for that purpose. Haven't had any time to upload any scripts to that, however.

tl;dr we ought to work together if we can, and get that script under revision control ASAP, whether its yours or ours. (Git is really great for this sort of thing, imo).

Online kat

  • Administrator
  • Hero Member
  • *
  • Posts: 2094
Re: MD5 export add-on for Blender 2.63+ released
« Reply #4 on: May 28, 2012, 03:59:33 AM »
As of now, pretty much any MD5/MD3/ASE et-al material finds a focus on KatsBits as a central hub of information on those formats so I'm not entirely sure (convinced) adding yet another download/repository location is an effective way of dealing with the problem you're addressing with your comment.

What I'd suggest is you version up what you need using Git and your hosting channel, then post here to let everyone know it's availability, this allows everyone to do what they need, minus, the problems associated with projects going offline and/or disappearing, taking all their content with them - over the years that's happened more times that it should and we loose a lot of material as a result (it's also one of the reasons KatsBits was set up some 12 years ago [under a different name]).

In other words, I'd encourage you and other authors (including nemyax) to work independently or collectively as required and circumstances dictate. Good luck with your project by the way.

Offline nemyax

  • Newbie
  • Posts: 38
Re: MD5 export add-on for Blender 2.63+ released
« Reply #5 on: May 28, 2012, 09:05:09 AM »
We've been having a number of issues with the previous MD5 exporter and haven't really gotten around to addressing them
Have you tried this exporter with your assets?
get that script under revision control ASAP
It's version-controlled in the Arx End of Sun repo.

Offline motorsep

  • Jr. Member
  • *
  • Posts: 75
Re: MD5 export add-on for Blender 2.63+ released
« Reply #6 on: June 15, 2012, 07:21:33 PM »
I gave this exporter a try. It didn't work for me.

I unzipped .py file into scripts/addon/ , started Blender, went to Preferences to activate the addon and it was not there :/ Nor it was in Export menu.

Offline nemyax

  • Newbie
  • Posts: 38
Re: MD5 export add-on for Blender 2.63+ released
« Reply #7 on: June 15, 2012, 07:28:40 PM »
Put the io_scene_md5 directory in addons, not the individual .py files.

Offline motorsep

  • Jr. Member
  • *
  • Posts: 75
Re: MD5 export add-on for Blender 2.63+ released
« Reply #8 on: June 15, 2012, 07:35:07 PM »
Thanks, that worked. However, may I ask why not to get very nice GUI from existing MD5 exporter and not re-invent the wheel?

Offline nemyax

  • Newbie
  • Posts: 38
Re: MD5 export add-on for Blender 2.63+ released
« Reply #9 on: June 15, 2012, 07:39:05 PM »
I did what worked best for me.

Offline nemyax

  • Newbie
  • Posts: 38
Re: MD5 export add-on for Blender 2.63+ released
« Reply #10 on: June 18, 2012, 05:20:31 PM »
A quick note on why mesh and anim export are separated (so that there's no more Drama):
In the course of working with a scene, a completed mesh normally needs to be exported only once. However, you may need to export multiple animations for that mesh. For that reason, anim export is a separate command, and the GUI (one particular dropdown, really) from der_ton and keless' script was not adopted.

Offline motorsep

  • Jr. Member
  • *
  • Posts: 75
Re: MD5 export add-on for Blender 2.63+ released
« Reply #11 on: June 18, 2012, 06:08:05 PM »
Mesh file can be overwritten every time you export, it's just an automated thing. But exporting one Action at a time is a total pain.

Offline nemyax

  • Newbie
  • Posts: 38
Re: MD5 export add-on for Blender 2.63+ released
« Reply #12 on: June 18, 2012, 06:23:35 PM »
exporting one Action at a time is a total pain.
Does the previous script write multiple anims per save?

Offline motorsep

  • Jr. Member
  • *
  • Posts: 75
Re: MD5 export add-on for Blender 2.63+ released
« Reply #13 on: June 18, 2012, 06:46:55 PM »
Ofc, why else would I be asking for improvements :)

Offline nemyax

  • Newbie
  • Posts: 38
Re: MD5 export add-on for Blender 2.63+ released
« Reply #14 on: June 18, 2012, 06:50:24 PM »
I see. I should certainly add that at some point.
I'm not sure when I'll be able to though.

 

RSS Content is copyright © KatsBits™ 2017 unless otherwise stated. All Rights Reserved.
No part of this web site may be reproduced (except for personal use, or otherwise stated) without prior written permission from KatsBits.com. For more infomation on copyright click here.
Web design cpdtAdvertisePrivacy PolicyDMCA (about DMCA) Home Store Workshops Blog Jobs Support About Katsbits Contact Site Search KatsBits Help Site Map RSS feed Forum Old Forum YouTube FaceBook LinkedIn Twitter IMVU