Convert Valve BSP files to GLTF files
  • Rust 83.3%
  • TypeScript 7.7%
  • Nix 4.5%
  • HTML 3.3%
  • CSS 1.2%
Find a file
2023-12-22 17:21:11 +01:00
.github/workflows ci builds 2023-12-21 00:43:12 +01:00
readme readme/clippy 2023-12-21 00:25:17 +01:00
src node name 2023-12-22 17:21:11 +01:00
.envrc bsp geometry 2023-12-20 23:28:48 +01:00
.gitignore bsp geometry 2023-12-20 23:28:48 +01:00
Cargo.lock gtlf 1.4 2023-12-22 16:56:35 +01:00
Cargo.toml gtlf 1.4 2023-12-22 16:56:35 +01:00
flake.lock ci builds 2023-12-21 00:43:12 +01:00
flake.nix ci builds 2023-12-21 00:43:12 +01:00
README.md readme typo 2023-12-21 00:51:52 +01:00

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.

screenshot of koth_bagel model

koth_bagel as viewed with the PlayCanvas model viewer.