Skip to content
Jeremy L edited this page Aug 28, 2022 · 1 revision

studiomdl

studiomdl is the MDL compiler shipped with all branches of Source. In Chaos, mdlcompile's functionality was merged into studiomdl. It is available for Windows and Linux.

The following input model formats are supported:

  • SMD
  • DMX
  • FBX
  • OBJ

Help Text

NOTE: -nop4 does nothing and is left only for compatibility with old scripts.

Usage: ./bin/linux64/studiomdl [options] <file.qc>

Options:
  [-a <normal_blend_angle>]
  [-checklengths]
  [-d] - dump glview files
  [-definebones]
  [-f] - flip all triangles
  [-fullcollide] - don't truncate really big collisionmodels
  [-game <gamedir>]
  [-h] - dump hboxes
  [-i] - ignore warnings
  [-minlod <lod>] - truncate to highest detail <lod>
  [-n] - tag bad normals
  [-perf] report perf info upon compiling model
  [-printbones]
  [-printgraph]
  [-quiet] - operate silently
  [-r] - tag reversed
  [-t <texture>]
  [-fastbuild] - write a single vertex windings file
  [-nowarnings] - disable warnings
  [-dumpmaterials] - dump out material names
  [-mdlreport] model.mdl - report perf info
  [-mdlreportspreadsheet] - report perf info as a comma-delimited spreadsheet
  [-striplods] - use only lod0
  [-overridedefinebones] - equivalent to specifying $unlockdefinebones in qc file
  [-stripmodel] - process binary model files and strip extra lod data
  [-stripvhv] - strip hardware verts to match the stripped model
  [-vsi] - generate stripping information .vsi file - can be used on .mdl files too
  [-allowdebug]
  [-overridedefinebones]
  [-verbose]
  [-makefile]
  [-verify]
  [-fastbuild]
  [-maxwarnings]
  [-preview]
  [-dumpmaterials]
  [-basedir]
  [-tempcontent]
  [-nop4]