]> git.xonotic.org Git - xonotic/xonotic.wiki.git/blob - Tutorial:-Exporting-a-weapon-for-Xonotic.md
Update Tutorial: Exporting a weapon for Xonotic
[xonotic/xonotic.wiki.git] / Tutorial:-Exporting-a-weapon-for-Xonotic.md
1 ## WARNING: This tutorial is under construction!
2
3 Blender version recommended: 2.79b or later *(if you want to contribute, it's strongly important use 2.79b for compatibility cases, they need to open from this version).*
4
5 Requires [iqm plugin](https://gitlab.com/xonotic/iqm) as addon for Blender. 
6
7 # Introduction to export a weapon
8 **Keep in mind about weapon systems:**
9
10 - `g_*.md3`: model mesh for item pickup spawn and third person.
11 - `h_*.iqm`: for first person animations; the skeleton and the bones (the rigging and animation part). Keep in mind, you would need `*.iqm.framegroups` (more info: [Framegroups](https://gitlab.com/xonotic/xonotic/-/wikis/framegroups), you can look `*.iqm.framegroups` opening a notepad to see what animations contain and the keyframes where these are set)
12 - `v_*.md3`: model mesh for first person and a glue of `h_*`; if `h_*.iqm` doesn't match with the animations needed of `v_*.md3`, it will generate spamming errors and bad pivot position.
13
14
15 # Textures and UV map
16
17 Keep in mind, when you've done your UV map in your model, you need to set this:
18 <br />
19 <br />
20 <img src="uploads/efee46a2a80a232ebe5fa63e30f4e2d9/Md3exp.png" alt="Md3exp" width="300" />
21 <br />
22 Texture must:
23
24 - be of **Image** type
25 - mapping type **UV**
26 - have UV map assigned
27
28 otherwise resulting data block will be filled with zeroes.
29 <br />
30 <br />
31 <img src="uploads/c48fb7565453eab24faca2d6ffec4347/Md3_textures.png" alt="Md3_textures" width="360" />
32 <br />
33 <br />
34 [Blender reference about UV in MD3](https://archive.blender.org/wiki/index.php/Extensions:2.6/Py/Scripts/Import-Export/MD3/)