https://github.com/koerismo/pbr-2-source
A Python-powered gui for converting pbr materials into Source Engine-compatible materials.
https://github.com/koerismo/pbr-2-source
python3 source-engine
Last synced: 8 months ago
JSON representation
A Python-powered gui for converting pbr materials into Source Engine-compatible materials.
- Host: GitHub
- URL: https://github.com/koerismo/pbr-2-source
- Owner: koerismo
- License: gpl-3.0
- Created: 2021-12-22T03:20:54.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2024-10-18T04:35:52.000Z (over 1 year ago)
- Last Synced: 2024-10-21T01:38:04.995Z (over 1 year ago)
- Topics: python3, source-engine
- Language: Python
- Homepage:
- Size: 19.4 MB
- Stars: 23
- Watchers: 1
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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.
---
*Demonstration of PBR-2-Source usage*

---
### [View Builds](https://github.com/koerismo/PBR-2-Source/releases)
## 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
```