- Version
- Download 19
- File Size 9.43 MB
- File Count 1
- Create Date May 21, 2023
- Last Updated May 21, 2023
Mesh Tool
Credit Author: DaZombieKiller
Github/Source Code: https://github.com/DaZombieKiller/DukeMeshTools
SETUP
* Edit extract_from_dnf.cmd so that DNF_PATH points to your DNF installation.
* After editing it, run extract_from_dnf.cmd to generate the 'meshes' folder.
EXPORTING SKELETONS
You can convert .skl files to .dae using the 'sklconv' command.
This allows you to import the skeleton into a modelling tool to rig your own custom model.
See get_machinegun_skeleton.cmd for an example.
CONVERTING MODELS
Use the 'mshtool convert' command to generate .msh files for importing into DNF.
It uses the Open Asset Import Library, so any model formats supported by it should work.
The command is structured like so:
mshtool convert <input file path> <meshes folder path> <input .skl path> <output .msh path>
The input .skl path must point to a file within the meshes folder. This is necessary because
of how DNF references skeletons from .msh files.
REPACKAGING THE DATA FILES
You can use the 'mshtool build' to rebuild meshes.dat and skels.dat.
See make_packages.cmd for an example of how this works. The resulting .dat files can be copied
into the DNF 'SkinMeshes' folder, replacing the originals.
Some Commands:
--auto-rig root