DRD Team

drdteam.org forum

Blender 2.66a MD3 Export Script, Size Reference Template

GZDoom has moved, please visit the new home -> [Home].

Moderators: Graf Zahl, Gez

Blender 2.66a MD3 Export Script, Size Reference Template

Postby Nash » Sat Mar 23, 2013 21:12

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
User avatar
Nash
 
Posts: 1106
Joined: Sun Sep 25, 2005 1:49
Location: Kuala Lumpur, Malaysia

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

Postby ZuC » Mon Jun 10, 2013 23:31

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
ZuC
 
Posts: 2
Joined: Mon Jun 10, 2013 23:29
Title: The God of Israel Reigneth

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

Postby NeoHippo » Thu Jun 27, 2013 23:48

User avatar
NeoHippo
 
Posts: 289
Joined: Tue Sep 13, 2005 0:47
Location: British Columbia Canada

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

Postby ZuC » Sun Jun 30, 2013 3:44

Thanks a million,

ZuC
ZuC
 
Posts: 2
Joined: Mon Jun 10, 2013 23:29
Title: The God of Israel Reigneth

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

Postby Nash » Sun Jul 07, 2013 21:13

Thanks for uploading a backup, NeoHippo! I was really wondering if I'd ever see the files again. :P
User avatar
Nash
 
Posts: 1106
Joined: Sun Sep 25, 2005 1:49
Location: Kuala Lumpur, Malaysia

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

Postby Galaxy_Stranger » Fri Jul 04, 2014 22:38

Dudn't work in Blender 2.7.1. Is there an alternative?
User avatar
Galaxy_Stranger
 
Posts: 24
Joined: Thu Dec 01, 2005 23:00
Title: "FIRE THE ASS-CANNON!"


Return to GZDoom

Who is online

Users browsing this forum: Bing [Bot] and 1 guest