Please note that this is NOT a Camouflage!
Please note that this is NOT a Camouflage!
Update 1.7.3 has been uploaded
This is a model processing tool for Blender, made especially for camouflage creators. It can perform semi-automatic, one-stop processing of ground and air vehicle models from War Thunder (I haven't figured out the naming conventions for surface vehicles yet). This version completely refactors the UI, improves usability, and adds guidance. It also resolves previous issues where models with add-on kits or those using textures from other vehicles could not be recognized (though it requires a bit of manual operation).
Please note that you need a certain amount of basic modeling knowledge to use this plugin (e.g., basic Blender operations, understanding what UVs are, and knowing the principles of texturing).
The file provided in this post is the English version of the plugin. (I tried to implement in-plugin language switching, but it was quite complicated, so I am still using separate version releases.)
Installation:
Plugin installation is the same as previous versions. Unzip the zip file and place it in “C:\Users(Your Username)\AppData\Roaming\Blender Foundation\Blender(Your Version Number)\scripts\addons\”. Please note that if the “scripts” and “addons” folders do not exist, you will need to create them manually.
Then, in Blender, find “Edit” → “Preferences” in the upper left corner (as shown), select “Add-ons” on the left side of the window that opens, and then select “Refresh” from the drop-down list in the upper right corner. If installed correctly, you will see “Model Repair Tool” in the add-on list below. Check the box in front of it. The plugin installation is now complete, and you will see the “WTtool” tool on the right side of the main viewport.
Usage:
Ground Vehicles Section:
After clicking “Ground Vehicles”, you will see the window shown below:
Clicking “Back to Main Menu” will return to the vehicle type selection interface
The following operations are strongly recommended to be carried out according to the given steps. Indications are provided in the window.
Step 1: Clear
After pressing the button, all content in the scene will be cleared, and a new collection named “Ground_Work” (hereinafter referred to as the work collection) will be created. Subsequent operations will only affect the content within this work collection.
Step 2: Import
Pressing the button will automatically open Blender's built-in Wavefront (.obj) import window. The plugin will automatically select the work collection level for import.
Please be sure to check “Split by Group” when importing, otherwise the script may not run as expected.
Additionally, for easier observation, you can click on “Material Preview” in the upper right corner of the viewport.
Step 3: Model Cleanup
Operation 1: Analyze Model
Just press the group button, and the plugin will automatically identify the corresponding parts based on the textures linked to the models. Taking Strv-122B+ as an example, after clicking, you will see the following list: Models in the left list will be grouped and kept, while those in the right list will be grouped separately or deleted (depending on whether “Group instead of Delete” is checked in Operation 3 below).
Operation 2: Adjust Groups
At this point, you need to check if everything in the keep list needs to be kept, and if there are any misjudged items in the discard list. Clicking on an item in the list will highlight the corresponding model in the main viewport. If you see an unnecessary part grouped into the keep list, select that item and click the right arrow in the middle to move it to the discard list, such as the inside of the gun barrel in the picture*.
At the same time, some models that reference the same texture may be split into two parts. This is common for hulls and turrets*.
*: How to determine whether to keep or merge? The best way is to duplicate a viewport (hover the mouse in the upper right corner of the main viewport, and when the cursor turns into a cross, press and drag to the left to your desired window size), set it as a UV Editor, and observe if the UVs are standard (e.g., the UVs on the inside of the gun barrel will clearly extend beyond one quadrant). For the hull or turret, you can check if the UVs of the internal models (referring to the inside of the hull, turret basket, and other internal parts) do not overlap with the external models (referring to the main hull, main turret). As for Add-on parts, if there is significant overlap, it means they do not use the same texture, like Add_2 (anti-mine armor plate) and Add_3 (add-on armor) in the example.
As shown in the image below, Body_1 (hull interior) and Body_2 (main hull exterior), the hull and turret generally need to be merged. It is recommended to check for UV conflicts before merging. When merging, select the Body_1 item in the list and click “Merge Down” to merge it with “Body_2” below. Merging “Body_2” upwards has the same effect. You can also use the up and down arrows on the left to move groups to merge non-adjacent groups (like Body_1 and 3), but this usually doesn't happen.
Ps. The reason for merging here is that only models in the same group will be assigned the same material, which will then use the same texture set in Substance Painter. Otherwise, you might need to merge textures manually.
Operation 3: Execute Cleanup
After selecting whether to keep, completing the merge, and confirming everything is correct, click Execute to confirm the cleanup. If “Group instead of Delete” is checked, the models in the discard list will be packed and moved out of the work collection instead of being directly deleted. The Ungroup button on the right can cancel the separate grouping of objects in the work collection at any time (by default, they will be packed into corresponding Body, Turret, Gun, Add groups). This shows the effect after deletion; you can see that parts that don't need modification, like tracks, machine guns, and glass, have been removed.
Step 4: Material Processing
Pressing Analyze Materials will display a list of identified materials. You can browse to see if there are any extras or omissions. If so, you need to go back to the previous step to make changes. If there are no problems, click “Assign Materials” below.
If successful, you will see the material list disappear, and the model textures will all be in their correct places (it's possible for the turret or hull to appear “faded”, which is normal), as shown in the picture.
Step 5: UV & Wheel Movement
Click “Move UVs” to normalize the UVs to the default (0,0) quadrant.
The “Delete Small Parts” function is not needed for ground vehicles. Using it may lead to accidental model deletion or a crash.
The Move Wheels in the wheel tool will, by default, move the wheels and suspension parts with corresponding names downwards. Some vehicles may have non-standard naming, making them impossible to move; in that case, just ignore this step.
Please note, if you need to undo, use the “Undo Move” button on the right. Using the Ctrl+Z shortcut to undo may prevent the wheels from automatically returning to their original positions. The movement effect is shown in the picture:
Step 6: Export
This is the final step of the plugin. Just click the Export button. The plugin will automatically select the work collection. It is recommended to check “Selected Only” and “Object Groups” below. After choosing a path, complete the naming and click Export to export the processed model.
At this point, importing the model into Substance Painter will show that the texture sets are correct.
Aircraft Section:
After clicking “Aircraft”, you will see the window shown below:
Only the parts different from ground vehicles will be introduced here:
In Step 3, you first need to select any main part of the model (like the fuselage, main wings, etc.), and then click the “Assign Body” button (theoretically, it will automatically assign the fuselage even if not selected, but it's recommended to manually assign it once just in case).
After clicking, you will see a Body item created in the list below; this is the main fuselage part. Then, click “Group Others” to split the remaining parts. If “Keep Body Only” is checked, pylons and external fuel tanks will be moved to the discard list by default. You can also manually move items to decide which parts to keep. Please note that due to the complex naming conventions for aircraft, issues may arise such as glass parts being kept, or pylons/fuel tanks not being correctly identified. Please fix these manually if necessary.
In Step 5, “Delete Small Parts” generally needs to be executed once. The Move Wheels function will move all objects with “Wheel” and “Gear” in their names. This operation might also move the landing gear bay doors. Please decide whether to move them based on your needs.
That is all for the plugin usage instructions. If you encounter any problems during use, you can leave a comment below, and I will reply as soon as possible.
You are free to use, redistribute, and adapt this plugin without my permission (though I'd be happy to know if you make improvements). I hope you enjoy using it, and I hope it's helpful to everyone!
#tools #script #blender