Convert PBR materials to VMT and VTF files that imitate PBR properties in Source engine games like Garry's Mod.
The releases might be outdated, they are simply the latest commit at that time, packed together with VTFLibWrapper.
- pillow (PIL)
- numpy
- VTFLibWrapper (https://github.com/Ganonmaster/VTFLibWrapper)
-
If you're using the release version, you don't need to do anything else
-
On the other hand, when cloning the source, make sure to also pull and initialize VTFLibWrapper ("git submodules init" + "git submodules update")
-
You will need the following textures:
- Diffuse/Color map
- Normal map
- Metalness map
- Glossiness map (If you have a roughness map, set "Material Type" in config.md to "rough")
- Optional: Ambient Occlusion map (If no image is given, the script defaults to a white image as the AO map)
- Adjust config.md
- Drop all texture files into your input folder
- Run FastValveMaterial.py
- Make sure your images are in RGBA8888 format. While the script can understand many different color formats, if you're getting errors, check if this is the case.
- The config file needs to stay stay 34 lines long, since FVM is just parsing the parameters from every line. For example, if you want to ignore an image, simply clear the line and do not delete it!!