Fuse Kingpin: Life of Crime models into a single Daikatana model.
Click on the screenshot to view video footage:
The executable expects a "in.txt" file that's placed in the same directory. Create it, then paste paths to MDX files, separated by line breaks. Example below:
D:\Games\Kingpin\main\players\male_thug\body.mdx
D:\Games\Kingpin\main\players\male_thug\cigar.mdx
D:\Games\Kingpin\main\players\male_thug\fedora.mdx
D:\Games\Kingpin\main\players\male_thug\head.mdx
D:\Games\Kingpin\main\players\male_thug\legs.mdx
D:\Games\Kingpin\main\players\male_thug\w_tommygun.mdx
This program is intended to fuse character models, that are split into multiple MDX files and then stitched together by Kingpin at runtime, so it's important that they all share the same amount of frames. The fact that DKM offers multiple materials/vertex groups is utilised here.
You will likely want to adjust skin paths and other things, which you can do using a different tool I've made, QMDL-JSON-Tool.
If using MSVS, open the SLN. If on Linux, you can use the included shell script. Otherwise:
g++ main.cpp conv.cpp -o FuseMDX2DKM_linux -I.
This program was made by Jakub Majewski. Quake was originally made by iD Software; its engine and model format was mostly devised by John Carmack. Most formats here are derivatives of it. Daikatana and the DKM format are by Ion Storm. Kingpin: Life of Crime and MDX are by Xatrix Entertainment.
The information on how to parse the model files was loosely based on the following sources:
- https://github.com/cholleme/DaikatanaTools/blob/main/DaiMdlV2/models.pas
- https://www.moddb.com/downloads/daikatana-to-quake-2-model-converter
- https://github.com/TrenchBroom/TrenchBroom/blob/c2ae5a5b48c345d06e315571cd4da30ef04748e5/lib/TbMdlLib/src/LoadDkmModel.cpp
- Assistance from the Beta 1.3 patch team.
- https://wiki.kingpin.info/index.php/MDX