Skip to content
This repository has been archived by the owner on Mar 30, 2024. It is now read-only.

Latest commit

 

History

History
30 lines (27 loc) · 1.89 KB

README.md

File metadata and controls

30 lines (27 loc) · 1.89 KB

Releases License

FastValveMaterial

Convert PBR materials to VMT and VTF files that imitate PBR properties in Source engine games like Garry's Mod.

Warning

The releases might be outdated, they are simply the latest commit at that time, packed together with VTFLibWrapper.

Dependencies:

Setup:

  • 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)
  1. Adjust config.md
  2. Drop all texture files into your input folder
  3. Run FastValveMaterial.py

Notes and Troubleshooting:

  • 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!!

Examples:

  • With FVM: 1
  • Witout FVM: 2