Just wondering about BSP trees...

brimonk

L1: Registered
Jun 5, 2017
1
0
This doesn't directly relate to tf2 mapping, but I'd like to make my own game engine with the overall intent on making a performance centered arena shooter. That being said, I'd like to use Binary Space Partitions to create the maps.

The real question: are there any existing tools that can be used to view the actual data structures built into the map file (*.bsp) itself, or will I have to spend some time making my own?
 

B!scuit

L4: Comfortable Member
Aug 12, 2016
196
267
You'll definitely want to look at:
https://developer.valvesoftware.com/wiki/Source_BSP_File_Format
https://en.wikipedia.org/wiki/Binary_space_partitioning
and maybe even:
Creating a Doom-style 3D engine in C

I don't know of any tools for analyzing bsp files (except maybe vbspinfo.exe) but I've tried my hand at building my own and it's not too hard
bsp.jpg (ngons are hard)

Just be aware that the bsp system is pretty well documented so you don't have to stick to the way source does it!
Even the original Doom used bsp! But it probably looks very different to what we have in TF2 & other source games like Titanfall!
 

henke37

aa
Sep 23, 2011
2,075
515
Remember that the BSP system isn't alone. It works together with PVS.