MODELDEF creator

Any utility that assists in the creation of mods, assets, etc, go here. For example: Ultimate Doom Builder, Slade, WadSmoosh, Oblige, etc.
Forum rules
The Projects forums are ONLY for YOUR PROJECTS! If you are asking questions about a project, either find that project's thread, or start a thread in the General section instead.

Got a cool project idea but nothing else? Put it in the project ideas thread instead!

Projects for any Doom-based engine (especially 3DGE) are perfectly acceptable here too.

Please read the full rules for more details.
Post Reply
User avatar
Apeirogon
Posts: 1605
Joined: Mon Jun 12, 2017 12:57 am

MODELDEF creator

Post by Apeirogon »

Very straightforward script which read/parse (for now only) md3 file and create modeldef definition for it animation frames.

How to use it? For Windows
1.Put executable and model in the same folder.
2. Open cmd (clear mouse selection, then Shift + right mouse button click on empty space in opened folder, then select line with something like "Open command window")
3. Type in cmd ("executable name" "md3 file name" "sprite name from which model definition should start"), without () and "", and then press enter.
It then create new modeldef.%model file name%.txt file in folder which would contain all frames for model, which should looks like
model %file name%
{
Path "path to model"
Model 0 "model name"
Skin 0 "texture name"
Scale three numbers here


USEACTORROLL \\model would follow actors roll
USEACTORPITCH \\model would follow actors pitch

Frameindex sprite name frame name 0 frame index
Frameindex definition for next frame
and so on
}
You only need to redact path, model 0, skin 0 and scale variables to specific and model definition ready. If actor which would use this model and model file names do not match you should alos change model definition name to to actor name.
If there are would be some errors, it should print what goes wrong.
Spoiler:
Compiled x64 version (x86/x32 wont compiles for me for some reason)
https://github.com/MekBoss/gzdoom_model ... tag/1.0x64

Git
https://github.com/MekBoss/gzdoom_modeldef_creator
Post Reply

Return to “Creation, Conversion, and Editing”