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
2025-05-24 14:30:24 +02:00
.forgejo/workflows workflow updates 2025-05-24 14:30:24 +02:00
nix flake reorg 2025-03-30 16:25:59 +02:00
readme link to source from site 2024-08-29 15:50:47 +02:00
src flake reorg 2025-03-30 16:25:59 +02:00
.envrc bsp geometry 2023-12-20 23:28:48 +01:00
.gitignore serve viewer 2024-09-02 14:45:06 +02:00
Cargo.lock serve viewer 2024-09-02 14:45:06 +02:00
Cargo.toml serve viewer 2024-09-02 14:45:06 +02:00
flake.lock flake reorg 2025-03-30 16:25:59 +02:00
flake.nix flake reorg 2025-03-30 16:25:59 +02:00
README.md flake reorg 2025-03-30 16:25:59 +02: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.

Online converter

An online version of the convert can be found at gltf.demos.tf.