Crates.io | vbsp |
lib.rs | vbsp |
version | 0.6.0 |
source | src |
created_at | 2022-02-18 19:54:05.311766 |
updated_at | 2024-08-29 12:22:48.685323 |
description | Rust parser for valve bsp files. |
homepage | https://github.com/icewind1991/vbsp |
repository | https://github.com/icewind1991/vbsp |
max_upload_size | |
id | 534855 |
size | 136,063 |
Rust parser for valve bsp files.
Currently only supports the tf2 version of bsp files, but adding other sourcemod variants should be fairly straight forward.
fn main() -> Result<(), vbsp::BspError> {
let data = std::fs::read("maps/cp_steel.bsp")?;
let bsp = vbsp::Bsp::read(&data)?;
println!("{:?}", bsp);
Ok(())
}
See vbsp-to-gltf or vbspviewer for some more examples of how to use the bsp data.
This project is adapted from the quake bsp parser and wouldn't be possible without information from the source engine wiki.