VBSP2

From Valve Developer Community
Jump to: navigation, search

An extremely obscure tool, VBSP2 appears to have been a BSP/VMF utility and analysis tool, with support for Windows and Mac. It can be found in the bin folder of Dino D-Day.

Syntax

vbsp2 [options] <vmf or bsp file>
Note.pngNote:VMF files appear to be either unsupported or broken.

Options

-game
Overrides the VProject.
-info
Spews out CSVs in the BSP's directory containing info on:
General BSP info (i.e. size),
Brushes,
Faces,
BSP lumps,
Planes,
Static props,
Textures used,
Visibility
It also produces a text file containing all entities in the level, and their keyvalues.
-gl
Dumps a .gl file of the map's brushes, for use with glview.
-lump <lump id>
Dumps out the binary contents of the specified BSP lump.

One of the options other than -game MUST be chosen for VBSP2 to operate.

Source Files

//portal2/rel_pc/src/public/vbsp2lib/lightmaptransfer.h
//portal2/rel_pc/src/public/vbsp2lib/serializesimplebspfile.h
//portal2/rel_pc/src/public/vbsp2lib/simplebspfile.h
//portal2/rel_pc/src/public/vbsp2lib/simplemapfile.h
//portal2/rel_pc/src/public/vbsp2lib/vbspmathutil.h
//portal2/rel_pc/src/utils/vbsp2/vbsp2.cpp
//portal2/rel_pc/src/utils/vbsp2/vbsp2.vpc
//portal2/rel_pc/src/vbsp2lib/bsp2gl.cpp
//portal2/rel_pc/src/vbsp2lib/lightmaptransfer.cpp
//portal2/rel_pc/src/vbsp2lib/physicsbuild.cpp
//portal2/rel_pc/src/vbsp2lib/physicsbuild.h
//portal2/rel_pc/src/vbsp2lib/serializesimplebspfile.cpp
//portal2/rel_pc/src/vbsp2lib/simplebspfile.cpp
//portal2/rel_pc/src/vbsp2lib/simplemapfile.cpp
//portal2/rel_pc/src/vbsp2lib/vbsp2lib.vpc
//portal2/rel_pc/src/vbsp2lib/vbspmathutil.cpp

See also

  • VBSP, Valve's BSP compiling tool.
  • VBSPINFO, Valve's original BSP analysis tool.
  • VMAP, another obscure tool developed around the same time. Not to be confused with the VMAP file format introduced in Source 2.