Creating an armour for Fallout 4. Part 3
- 1 Overview
- 1.1 Create the textures and the normal maps in GIMP
- 1.2 BGSM Materials
- 1.3 Add the armour to the game
- 1.4 Adjust the armour after testing it in game
- 2 References
This is the part 3 of the tutorial for creating an armour or outfit for Fallout 4. You can find the other parts of the tutorial here:
Create the textures and the normal maps in GIMP
This step is exactly the same than the one explained in the tutorial Creating a sword for Fallout because it doesn't matter the mesh you are working with: you will create the textures and normal maps following the same steps.
Next step is to paint the textures: to do this you can use a program like GIMP. You can immport the UV map image file you saved earlier into GIMP and use it as a pattern to paint the textures: this way you will know at any time what part of the sword you are painting.
Diffuse maps contain mainly the colours of your armour. Their name usually ends wuth the _d.dds extension.
Once you've painted the armour textures save them as dds as this is the image format that the game requires. If the images don't have transparent parts you can save them with DTX1 compression. If they have transparency save them as DTX3 or DTX5. Make sure that the Generate mipmaps flag is marked when you save the textures.
Once you've painted the textures you'll have to create the normal maps that are the image files that will give your armour a sense of volume. You can create the normal map from the texture you've just painted, to do it this way just follow these steps:
- Select Colors -> Color to alpha and then select black or 000000 as the source colour.
- Select Filter -> Map -> Normalmap. A window will pop up like the one shown in the Normal map window picture.
- pressing 3d preview you will be able to see in another screen how the changes in the parameters give more or less deep to the normal map.
- select the Wrap flag and change the value of Height source to Alpha.
- select a filter (I usually select 3x3 but you can try different filters and see which one works better for you)
- modify the scale value to add more or less deep to the normal map (I usually set this to 3 or 4)
- Press the OK button and the image will show now a blueish look: this is the normal map. Save it with the same name than your texture file + the _n.dds extension and choose the BC5 compression as shown in picture Saving the dds file - BC5 format. Make sure that the Generate mipmaps flag is selected when saving it.
- Note: If your textures look too shiny in game and you want to make your textures less shiny:
- make your textures a little darker: for example, don't paint white parts in white but in a light grey.
- make the normal map a little more transparent: if you are generating them from the textures, you can try the following:
- before generating the normal map, add a black layer to the texture and merge it with the texture using a % of opacity (like 50%, or 25%).
- merge down the black layer onto your original texture and then generate the normal map.
Specular maps contain two kinds of information: reflection to the light and glossiness of the different parts of the armour. This information is stored in the RGB channels (see picture Specular maps and RGB Channels for an example of a specular map in Fallout 4)
- Red Channel: stores the reflection to the light information. The darker the red channel is, the less reflective the armour, the lighter it is, the more reflective the armour. For metallic reflections, the red channel is very light, and for non-reflective materials like cloth, it is painted dark.
- Green Channel: stores the glossiness information. The darker the green channel the less glossy is the material. It also stores information of how the material looks when wet. If your armour looks too shinny when wet (when it is raining), then it is probably because the green channel is too light.
- Blue Channel: does nothing, so just paint it in white (it will look blue in GIMP).
In GIMP you can paint only one of the channels by selecting it and deselecting the rest of them as shown in picture Editting the Red Channel in GIMP.
When you are done painting the specular map save it with the same name than your texture file + the _s.dds extension and choose the BC5 compression as shown in picture Saving the dds file - BC5 format. Make sure that the Generate mipmaps flag is selected when saving it.
You can set the textures in the nif file of your armour as it was done for other Bethesda games like Skyrim (see Add textures in NifSkope for Skyrim, but that will only affect NifSkope and allow you to see the mesh texured in NifSkope but not in game.
Fallout 4 uses BGSM materials, that are a new type of file, that contain most of the information regarding to textures and shaders in game. You have to set the textures here if you want to see them in game. Armours and clothes use two bgsm mateials, the main one and another one for the wet effects as shown in picture BGSM materials. In the BSLighting Shaderproperty of each node of your armour mesh, you have to enter the path and name of the BGSM material your armour uses.
Until the GECK is realeased for Fallout 4, you can use ousnius' Material Editor to create new BGSM materials or edit existing ones. To create a new material it is easier to edit an existing one that is similar to the one you want to create (for example, if your armour has metallic parts, use the material of an armour that also has metallic parts as the material will have all the properties and shaders for metal), and then save it with a new name.
The Material Editor tool displays data in three tabs. At the top of the Material tab, enter the path and name of your texture files, as shown in picture Material Editor. If you want your texture to apply the texture to both sides of the mesh, activate the Double Sided checkbox on the General tab.
Add the armour to the game
Add the armour as a replacer of an existing armour
You can add the armour as a replacer of an existing one. For doing that you have to name your mesh like the one in game that you want to replace, and place it under the same folder where the vanilla mesh is. You can use jonwd7's B.A.E. - Bethesda Archive Extractor to look at the name of the nif files and folders used in game. For example, for making a replacer of the BOS Uniform for female characters:
- place the nif file in the folder Data\Meshes\Armor\KnightUnderArmor\
- rename your nif file to FBody.nif
Add the armour to the game as a new item
Until Bethesda releases the GECK for Fallout 4 you will need to use ElminsterAU's FO4Edit PreRelease Alpha to create the new esp file that will add your armour to the game.
- First create a new armour addon. To do it the easiest thing is:
- look for an existing armour addon in game, right click on it and select Copy as new record into ... from the pop up menu as shown in picture FO4Edit - Make a copy
- click on Yes, I am absolutely sure on the next window
- then enter a new ID for your armour addon on the next window and click on the OK button
- then FO4Edit will ask you for the esp file where you want to store that copied item. As you don't have and esp file yet, select the <new file> option and then enter the name for your esp file (for example, MyArmour). Then FO4Edit will create a new esp file (MyArmour.esp in the example) that will contain the copied armour addon.
- To save your progress, close FO4Edit and say OK to the next window that asks you if you want to save changes.
Then open again FO4Edit and load your new esp file (MyArmour.esp in the example).
- Select the armour addon item in your esp file and look at its properties in the right side of the screen. You can change those properties by right clicking on each of them and selecting Edit from the menu.
- Change any values you want.
Some useful parameters are (see picture Armour Addon properties):
- Weapon adjust: this box that is just below the Armour Addon id, indicates how close to the armour will be displayed weapons when sheathed. Increase this value if weapons clip through the armour and decrease it if there is a gap between the armour and the weapon.
- In the Male area you have to indicate what meshes will be used by the male characters equipping the armour and in the Female area what meshes will be used by the female characters equipping the armour.
- Biped Model: the nif file containing the mesh of your armour when seen in 3rd person mode, or when looking at an NPC wearing the armour. Indicate here the _1.nif mesh of your armour. The game will use the _0.nif model when needed, even though you don't have a place to link it to the armour addon.
- First person: the nif file containing the mesh of your armour when seen in 1st person mode. Indicate here the _1.nif mesh of your armour. The game will use the _0.nif model when needed, even though you don't have a place to link it to the armour addon.
- Biped Object: the selected objects in this list are the dismemberment parts that form your armour. For armour covering the body you usually will select 32-Body, 34-Forearms and 38-Calves. For boots, you will select 37-Feet. Note that the number before the name is the same number you wrote in the Skin partition nodes of the nif file.
- Once you've created the armour addon, create a new armour. Again, the easiest thing is to look for an existing armour in game, double click on it to open the screen showing its properties and change the ID and name of the armour (the first two boxes at the top left of the screen as shown in picture Armour properties). Click on the OK button and CK will ask you if you want to create a new object. Answer yes.
- Open again the sceen showing the properties of the armour you've just created with your own ID and name and modify the values you want.
Some useful parameters are (see picture Armour properties):
- Flag Playable: select it to indicate that your character can use the armour.
- Biped Object: the slot used by your armour when equipped.
- In the Male area you have to indicate what meshes will be used in the inventory if your character is male and in the Female area what will be used if your character is female.
- World model: the nif file containing the mesh that you have created and that will be shown when you throw the armour to the ground (you can leave the world model the original armour had).
- Models: the list of Armor Addons that will be equipped at the same time by your character when equipping the armour.
- Keywords: the groups the armour belongs to. They can indicate if it is a piece of clothing (in the example, ArmorClothing), what kind of vendor will buy/seel it (in the example, VendorItemClothing), the quality of the armour (in the example, ClothingRich), etc.
Adjust the armour after testing it in game
Test your armour in game. Test it with your character in several poses: standing up, holding a weapon, walking, running, etc.
Most likely in some poses you will see parts of the body clipping through the armour, as shown in picture Clipping.
If this only happens in some unusual poses, like some added by mods, you can leave your armour as it is. But if this happens in usual poses in game you'll have to work a little more on your armour to eliminate this clipping effect.
Load your armour into Blender again and in the areas where the body clips through the armour try some of the following methods:
- move the vertices out, separating them from the body. After doing this take a look at your armour's shape in those areas and, if it has deformed too much, move the surrounding vertices to fix the shape.
- cut the parts of the body that are under the armour in those areas, if it is possible to cut them without leaving holes in parts that are not covered by the armour.
- if you cannot fix the clipping issues with any of the two previous methods you will probably have to slightly modify the weights of those areas. Try different weights until you find out what works better.
Repeat the testing and fixing process until the armour works fine in game and you'll be done :)