]> de.git.xonotic.org Git - xonotic/xonotic.wiki.git/blobdiff - modeldecompile-tool.md
Update Monsters
[xonotic/xonotic.wiki.git] / modeldecompile-tool.md
index 544d55ee8a208f86b8ea2a59b36d393b9b02331c..76e90d5c44764732a1339e89d019b5dd98db3690 100644 (file)
@@ -1,15 +1,8 @@
-`modeldecompile` is a powerful command, decompiles any model format (DPM, IQM, MD3, BSP, ...).
+`modeldecompile` is a powerful command that decompiles any model format (DPM, MDL, IQM, MD3, BSP, etc...) to OBJ. It's available in any Darkplaces game including Xonotic and can decompile any model (weapon, player or any object/entity) present in the game filesystem (in the game installation directory and in the `data` directory inside [your user directory](http://www.xonotic.org/faq/#config).
 
-[**LegendGuard**](https://gitlab.com/LegendaryGuard) discovered something magical, if you put the .dpm file and .dpm.framegroups file (also, .iqm, .iqm.framegroups, md3...) in 
-<br/> (`darkplaces_game` can be `xonotic`, `quake`, `wrath` or any DarkPlaces game)
-- Windows: `%USERPROFILE%\Saved Games\darkplaces_game\data\` <br/> 
-- Linux: `~/.darkplaces_game` <br/>
-- Mac: `~/Library/Application Support/darkplaces_game`
-- Or in `darkplaces_game-data.pk3dir` directory.
+Usage example: `modeldecompile models/weapons/v_crylink.md3`
 
-the tool decompiles the mesh and the animations of a model in one action (the animations aren't distributed per actions).
-
-No matter if the model is a weapon, a player or any object/entity.
+It decompiles the mesh and the animations of a model in one action (the animations aren't distributed per actions).
 
 An example of a .framegroups file from a player model (`okrobot1.dpm.framegroups`):
 
@@ -47,7 +40,7 @@ The hacky way to obtain all animations of a model is setting the last keyframe i
 ```
 
 What that legendary method does is setting the initial keyframe to `1` and `9999` the last keyframe, we can know `9999` doesn't exist but reaches into a limit. (ignore `30` (means fps) and `0` (means nonloop, if `1` means loopable)).
-In the game, execute `modeldecompile any_model.dpm` (any_model.iqm, any_model.md3, ...).
+In the game, execute `modeldecompile any_model.dpm` (any_model.iqm, any_model.md3, any_model.mdl, ...).
 
 <img src="uploads/6140abcafb7b60cb154b43ce5e835105/image.png" alt="model_decompile_okrobot1_xon" width=760 />
 <br/>
@@ -60,5 +53,4 @@ After, select the armature of the imported model (orange highlighted) and import
 
 Result (video): https://streamable.com/1egthv 
 
-The actions can be created with the imported one to separate the keyframes of every animation.
-<br/>
\ No newline at end of file
+The actions can be created with the imported one to separate the keyframes of every animation.
\ No newline at end of file