/studiomdl

A cross-platform compatible version of studiomdl for Half-Life.

Primary LanguageCOtherNOASSERTION

studiomdl

Overview

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).

Prerequestites

  • gcc or clang

Installing & Building

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.

Usage

studiomdl [options] <QC file>

Options

-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.

Contribute

See the guidelines for contributing.

License

Half Life 1 SDK LICENSE