studiomdl compiles Studio Model Data from QC files to a model file.
This is a cross-platform compatible version of studiomdl for Half-Life (GoldSrc).
gcc
orclang
Clone this project.
git clone https://github.com/fnky/studiomdl.git
cd studiomdl
make
make install # optional
You can set architecture (default -m32
), compiler (default gcc
) and install path (default /usr/local/bin
) as well as user flags for custom C flags.
make CC=clang ARCH=-m64 INSTALL_PATH=/usr/bin USER_FLAGS="-O3 -march=native"
Note: 64-bit build currently doesn't work, due to structs not using compatible data types.
studiomdl [options] <QC file>
-t
- texture
-r
- tag reversed
-n
- tag bad normals
-f
- flip all triangles
-a
- normal blend angle
-h
- dump hboxes
-i
- ignore warnings
-g size
- max sequencegroup size
Note: Your QC and SMD files has to use
LF
(Unix) line-endings in order to work.
See the guidelines for contributing.