K0bin / sourceloader

Source Engine map loader

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SourceLoader

Source Engine map loader written in C#

Incomplete, I revisit it from time to time but don't expect it to ever be completed. So far only tested with CSGO maps but should work with most other source maps as well.

What's working:

  • loading the BSP tree and most (relevant) lumps
  • loading most of the MDL file (although that's useless without the geometry found in .vtx files)
  • loading 2D VTF textures (cubemaps might work as well, didn't test that)
  • extracting basic brush geometry
  • exporting as OBJ

What's missing:

  • the skybox
  • .vtx mesh strips
  • static props (work for it is mostly done, except for .vtx)
  • displacements
  • lightmaps (work for it is mostly done, just needs to be brought together)
  • exporting materials

The Unity branch is an outdated version of the same code that was tweaked to work with .Net 3.5.

About

Source Engine map loader

License:MIT License


Languages

Language:C# 100.0%