mirror of
https://codeberg.org/icewind/vbsp-to-gltf.git
synced 2026-06-03 18:24:07 +02:00
Convert Valve BSP files to GLTF files
- Rust 83.3%
- TypeScript 7.7%
- Nix 4.5%
- HTML 3.3%
- CSS 1.2%
| .github/workflows | ||
| readme | ||
| src | ||
| .envrc | ||
| .gitignore | ||
| Cargo.lock | ||
| Cargo.toml | ||
| flake.lock | ||
| flake.nix | ||
| README.md | ||
vbsp-to-gtlf
Convert Valve BSP files to GLTF files
Usage
vbsp-to-gltf input.bsp output.glb
Note that this requires TF2 to be installed to get the texture and props referenced in the map.
It should be able to automatically detect the tf2 path or you can overwrite it by setting the TF_DIR environment variable.
Model optimization
The output for the converter isn't particularly optimized, it's strongly recommended to run the output through gltfpack before usage.
koth_bagel as viewed with the PlayCanvas model viewer.
