Blender 2.66a MD3 Export Script, Size Reference Template

Advanced OpenGL source port fork from ZDoom, picking up where ZDoomGL left off.
[Home] [Download] [Git builds (Win)] [Git builds (Mac)] [Wiki] [Repo] [Bugs&Suggestions]

Moderator: Graf Zahl

Locked
User avatar
Nash
Developer
Developer
Posts: 1226
Joined: Sun Sep 25, 2005 1:49
Location: Kuala Lumpur, Malaysia
Contact:

Blender 2.66a MD3 Export Script, Size Reference Template

Post 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
Last edited by Nash on Sun Oct 26, 2014 13:58, edited 1 time in total.
ZuC
Posts: 2
Joined: Mon Jun 10, 2013 23:29

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

Post 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
User avatar
NeoHippo
Posts: 402
Joined: Tue Sep 13, 2005 0:47
Location: British Columbia Canada

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

Post by NeoHippo »

ZuC
Posts: 2
Joined: Mon Jun 10, 2013 23:29

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

Post by ZuC »

Thanks a million,

ZuC
User avatar
Nash
Developer
Developer
Posts: 1226
Joined: Sun Sep 25, 2005 1:49
Location: Kuala Lumpur, Malaysia
Contact:

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

Post by Nash »

Thanks for uploading a backup, NeoHippo! I was really wondering if I'd ever see the files again. :P
User avatar
Galaxy_Stranger
Posts: 21
Joined: Thu Dec 01, 2005 23:00
Contact:

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

Post by Galaxy_Stranger »

Dudn't work in Blender 2.7.1. Is there an alternative?

Nevermind - works fine in Blender 2.7.x.
Locked

Return to “GZDoom”