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
2024-08-29 15:02:25 +02: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 updates 2024-08-29 15:02:25 +02:00
.envrc bsp geometry 2023-12-20 23:28:48 +01:00
.gitignore server 2023-12-26 18:35:24 +01:00
assets.nix overlay 2024-01-03 22:03:06 +01:00
Cargo.lock updates 2024-08-29 15:02:25 +02:00
Cargo.toml updates 2024-08-29 15:02:25 +02:00
flake.lock updates 2024-08-29 15:02:25 +02:00
flake.nix updates 2024-08-29 15:02:25 +02:00
overlay.nix overlay 2024-01-03 22:03:06 +01:00
package.nix fix pname 2024-01-12 23:59:56 +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.