Skip to content

koerismo/PBR-2-Source

Repository files navigation

PBR-2-Source

A Python-powered gui for converting pbr materials into Source Engine-compatible materials.

Features

  • Supports PNG, JPG, BMP, and TGA input.
  • Automatically generates material VMTs.
  • Generates out-of-the-box functional materials for both PBR and traditional shaders.
  • Live material reloading with game integration.

Demonstration of PBR-2-Source usage

PBR-2-Source_A8YT6MpP3v


Command-line Arguments

usage: PBR-2-Source.exe [-h] [--logfile LOGFILE] [--config CONFIG]

options:
  -h, --help         show this help message and exit
  --logfile LOGFILE  Writes errors and information to the specified file.
  --config CONFIG    Uses the specified config path instead of the installation config path

Building from Source

With uv

uv sync
uv run PyInstaller build.spec

With pip

# Create a new virtual env
python -m venv ./venv

# Activate the venv (Windows)
./venv/Scripts/activate.bat

# Activate the venv (Unix/linux)
source ./venv/Scripts/activate

pip install -r requirements.txt

python -m PyInstaller build.spec

About

A Python-powered gui for converting pbr materials into Source Engine-compatible materials.

Topics

Resources

License

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •  

Languages