From: LegendaryGuard Date: Sun, 17 Apr 2022 22:07:29 +0000 (+0000) Subject: Fix too big images X-Git-Url: http://git.xonotic.org/?a=commitdiff_plain;h=252eec8f33e5916c4e638285e1f4708f9501e857;p=xonotic%2Fxonotic.wiki.git Fix too big images --- diff --git a/Exporting-a-weapon-for-Xonotic.md b/Exporting-a-weapon-for-Xonotic.md index 4c7fa11..8bb6fbc 100644 --- a/Exporting-a-weapon-for-Xonotic.md +++ b/Exporting-a-weapon-for-Xonotic.md @@ -64,7 +64,7 @@ Keep in mind, you need to set these modifiers for the mesh/model object: MUST contain `tag_handle`, `tag_shell` and `tag_shot` bone names attached. These tag_names MUST be attached, if not the model will cause errors. -`tag_Somename` is another one, you can add if you need some optional animation in this bone. +`tag_Somename` is another one, you can add if you need some optional animation in this bone. (Not useful for [old methodology](#old-methodology)) Moreover, watch out about position and rotation. `h_*.iqm` alterates the position and rotation of `v_*.md3`. The positions may not be equal. @@ -82,15 +82,14 @@ Use Source Tools addon in Blender to export the model and animations. - For `h_*`: Select the mesh and 1 animation and click Export, you need to export all animations one per one: -
blenderSMDexport1
-Repeat the process:
blenderSMDexport2

-blenderSMDexport3

-blenderSMDexport4 +
blenderSMDexport1

+Repeat the process:
blenderSMDexport2

+blenderSMDexport3

blenderSMDexport4

- For `g_*` and `v_*`: Just select the mesh: -
blenderSMDexport5 width=700 /><br/>
+<br/><img src=
Use `iqm.exe` from [IQM exporter](https://gitlab.com/xonotic/iqm), in Windows, in CMD execute for convert SMD to IQM for `v_*` and `g_*`:
`iqm v_myweapon.iqm v_mesh.smd`
`iqm g_myweapon.iqm g_mesh.smd` @@ -108,7 +107,7 @@ Save those compiled model files into `models/weapons/` folder where they belong. **Conclusion**: Sometimes, renaming formats can be useful to save effort. Note: it's a kind of weird way to do stuff, the issue of model resources was found here: https://gitlab.com/xonotic/xonotic-data.pk3dir/-/issues/2629#note_686988936 If you received spamming errors like that:
-spammingerrorstagweapon
+spammingerrorstagweapon
It's because you didn't do correctly the steps after exporting the models. Remember, `g_*` and `v_*` MUST contain one bone. # Old methodology