]> git.xonotic.org Git - xonotic/xonotic.wiki.git/blobdiff - Exporting-a-weapon-for-Xonotic.md
Update Starting to export section
[xonotic/xonotic.wiki.git] / Exporting-a-weapon-for-Xonotic.md
index e0dc14497f49d3a03f7bbfab845af9bb343f5151..ea6a91b8bb09898714e227087b7a3310ef746e6d 100644 (file)
@@ -1,8 +1,15 @@
-## WARNING: This tutorial is under construction!
+## :rotating_light: :warning: WARNING: This tutorial is under construction! :warning: :rotating_light: 
 
-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).*
+# Modeling requirements
+### To follow this, you need knowledge about modeling using Blender
 
-Requires [iqm plugin](https://gitlab.com/xonotic/iqm) as addon for Blender. 
+Blender version recommended: 2.79b or later
+
+Requires these following tools (addons) for Blender:
+- [IQM exporter](https://gitlab.com/xonotic/iqm) to export IQM files.
+- [MD3 importer/exporter](https://github.com/neumond/blender-md3) to import/export MD3 files.
+
+***IMPORTANT NOTE**: if you want to contribute, it's strongly important use 2.79b version for compatibility cases, they need to open from this version. Share the .blend file saved from 2.79b, make sure to work properly for this version!*
 
 # Introduction to export a weapon
 **Keep in mind about weapon systems:**
@@ -16,6 +23,10 @@ More info: [Weapon modeling system](Weaponsystem)
 
 # Textures and UV map
 
+### For MD3 exportation:
+
+You have to add single material with single texture for every mesh object. Name of texture node will be written as is into MD3 data (suffixes like .001, .002 are ignored, feel free to use one texture for many meshes).
+<br />
 Keep in mind, when you've done your UV map in your model, you need to set this:
 <br />
 <br />
@@ -33,4 +44,29 @@ otherwise resulting data block will be filled with zeroes.
 <img src="uploads/c48fb7565453eab24faca2d6ffec4347/Md3_textures.png" alt="Md3_textures" width="360" />
 <br />
 <br />
-[Blender reference about UV in MD3](https://archive.blender.org/wiki/index.php/Extensions:2.6/Py/Scripts/Import-Export/MD3/)
\ No newline at end of file
+If you didn't this, the model will be invisible and it won't be able to interact shaders.
+<br />
+<br />
+[Blender reference about UV in MD3](https://archive.blender.org/wiki/index.php/Extensions:2.6/Py/Scripts/Import-Export/MD3/)
+
+# Starting to export
+
+Keep in mind, you need to set these modifiers for each mesh/model object: 
+
+<img src="uploads/447f6abe0f73c6d6cadce97e4ed66e8b/blendermodifiersiqmandmd3.jpg" alt="blendermodifiersiqmandmd3" />
+
+## MD3
+
+Before to export, you need to select all objects in the scene. (Pressing A, seeing all objects highlighting orange or red)
+
+<img src="uploads/f3f39c9a06a408bffd5e48bc5e07eac6/exporttutorialMD3.jpg" alt="exporttutorialMD3" />
+
+## IQM
+
+Before to export, you need to select all objects and bones in the scene. (Pressing A, seeing all objects highlighting orange or red)
+
+<img src="uploads/7df860d73a6fae27408c8f0c024122c7/exporttutorialIQM.jpg" alt="exporttutorialIQM" />
+
+
+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
+