Skip to content
forked from fnky/studiomdl

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

License

Notifications You must be signed in to change notification settings

SanyaSho/studiomdl

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 98.2%
  • Makefile 1.8%