Skip to content

CLI tool for converting .map files to .gltf/.glb

License

Notifications You must be signed in to change notification settings

fLindahl/map-to-gltf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

map-to-gltf

CLI tool for converting Valve format .map files to .gltf/glb

How to use

Run $ mtg -h or check here for instructions.

There's also some docs.

Build prerequisities

  1. CMake
  2. Compiler of choice

How to build

  1. mkdir build
  2. cd build
  3. cmake ..
  4. cmake --build . --config Release

Limitations

Currently only parses and works with Valves "220" format.

This tool has been built and tested with Trenchbroom-produced files.

Pull-request are warmly welcome!

Missing features:

  • No support for WAD files
  • No support for CSG union between polygons yet. It does however merge polygons within a single entity based on their materials.
  • Untested on Linux