Skip to content

Repository files navigation

VmfOptimizer

THIS PROJECT IS UNDER DEVELOPMENT!

Automatic face visibility and NoDraw optimization tool for Source Engine VMF maps.

Actually, it's working only on tiny structure and tiny vmf, do not try it on your map now, it won't work. Even on tiny structure, it can be inaccurate

VmfOptimizer analyzes .vmf map files and determines which brush faces are visible to the player.
It automatically identifies hidden or unreachable faces, then suggests or applies the tools/nodraw texture to them — saving you hours of manual optimization in Hammer.


Features

  • Parse .vmf files and extract all brush faces
  • Detect player-visible and hidden faces
  • Automatically apply tools/nodraw
  • Optional GUI preview (later)

Tech stack

  • Language: C++
  • Parsing: Custom VMF parser
  • Geometry: Computational geometry & raycasting
  • (Rendering: Optional debug visualizer (OpenGL or ImGui) ) NOT SURE

Example usage

You can run the tool directly via the command line:

VmfOptimizer.exe -path "PathToYourWorkFolder\maps\yourmap.vmf"

The program will:

  1. Parse your VMF file
  2. Compute the visibility of all brush faces
  3. Identify faces not visible from any playable area
  4. Suggest applying tools/nodraw to these hidden surfaces

License

MIT License © 2025 Lumastor (Mr.S)

About

Automatic face visibility and NoDraw optimization tool for Source Engine VMF maps.

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages