Page 1 of 1

Blender 2.66a MD3 Export Script, Size Reference Template

Posted: Sat Mar 23, 2013 21:12
by Nash
Updated 05 July 2014 download link, click here to download

First up, I have modified a script for Blender 2.66a that works perfectly for exporting GZDoom-ready models with correct scale. See bottom of this post for download link.
This is a modified version of the MD3 export script from
http://www.katsbits.com/tools/#md3

It has been modified for GZDoom-friendly exporting.

Tested for Blender 2.66a (works great!)

How to install:

Copy io_export_gzdoom.md3 into the scripts\addons\ direction. For example,
C:\Program Files\Blender Foundation\Blender\2.66\scripts\addons\

Then start Blender, go to File -> User Preferences

Go to the Addons tab

Scroll down the Addons list and look for Import-Export: GZDoom .MD3 and tick
the checkbox to enable GZDoom export. You will find it under File -> Export ->
GZDoom .MD3.

(To avoid having to redo this everytime Blender starts up, click the "Save User
Settings" button in the User Preferences window)
Warning: Models must not exceed 511 in size in Blender units, in any axis... otherwise the exporter will fail. So to be safe, make sure your models dimensions are < 512 Blender units (you can see this selecting your object, pressing N on the keyboard, then look for "dimensions" in the properties panel)

Image

This .blend file can be used for your reference with regards to scale, when you are making your models for use in GZDoom. The dimensions are setup such that they will export with a 1:1 Blender - GZDoom scale. So for example, a 64 x 64 x 64 cube in Blender will export as a model that fits a 64 x 64 x 64 sector in Doom map units. However, one little detail needs to be observed:

GZDoom squashes models down on the Z axis by default, so to truly achieve a 1:1 scale, you have to use the following scale parameters in your MODELDEF:

Code: Select all

Scale 1 1 1.2
So model your objects around my references, apply 1.2 scaling on the Z axis on your MODELDEF, and you will achieve 1:1 Blender -> GZDoom scaling. :)

Oh and also, 1 more thing. By default, this script exports the .md3 with the object facing the wrong angle. To fix this, apply this in your MODELDEF:

Code: Select all

AngleOffset 90
And you're good to go!

Download my MD3 exporter script for Blender 2.66a

Download size reference template

Have fun!

[28/03/2013]

Image

Added a HUD model weapon modeling reference for Blender. The test gun is roughly sized to the Doom pistol. Also positioned such so that it will appear in the HUD area properly without having to mess with MODELDEF offsets. Runnable test file for GZDoom included.

Download gun reference .blend file

Re: Blender 2.66a MD3 Export Script, Size Reference Template

Posted: Mon Jun 10, 2013 23:31
by ZuC
The link to your stellar file seems to be broken.
I can't wait to use this; it's awesome.
Could you relink it?

Thanks,
ZuC

Re: Blender 2.66a MD3 Export Script, Size Reference Template

Posted: Thu Jun 27, 2013 23:48
by NeoHippo

Re: Blender 2.66a MD3 Export Script, Size Reference Template

Posted: Sun Jun 30, 2013 3:44
by ZuC
Thanks a million,

ZuC

Re: Blender 2.66a MD3 Export Script, Size Reference Template

Posted: Sun Jul 07, 2013 21:13
by Nash
Thanks for uploading a backup, NeoHippo! I was really wondering if I'd ever see the files again. :P

Re: Blender 2.66a MD3 Export Script, Size Reference Template

Posted: Fri Jul 04, 2014 22:38
by Galaxy_Stranger
Dudn't work in Blender 2.7.1. Is there an alternative?

Nevermind - works fine in Blender 2.7.x.