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 16:50:05 +02:00
.github/workflows workflow updates + msrv 2024-08-29 15:13:28 +02:00
readme link to source from site 2024-08-29 15:50:47 +02:00
src better io errors 2024-08-29 16:50:05 +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 workflow updates + msrv 2024-08-29 15:13:28 +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 nix server build 2024-08-29 16:12:22 +02:00
README.md link to online version 2024-08-29 16:17:50 +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.