Get SFM ↗
ARTICLE / September 24, 2026

SFM Compile: How to Use It Step by Step

By admin

You import a custom model into Source Filmmaker and get a purple-and-black checkerboard, an error message, or nothing at all. That is usually the moment you learn about SFM compile.

SFM compile is the process of converting raw 3D assets (meshes, bones, animations, and material references) into the binary model files that Source Filmmaker (SFM) can load. SFM cannot read a .blend, .fbx, or .obj file directly. It needs a compiled .mdl file and its companion files.

This tutorial walks you through the complete workflow, from installing tools to seeing your model in a scene. After that, it covers the different compile options, common errors and their fixes, and habits that keep your compiles clean.

Quick answer: To compile a model for SFM, export it as SMD or DMX, create VTF and VMT texture files, write a QC script, point Crowbar at SFM’s studiomdl.exe, click Compile, then test the .mdl in HLMV and SFM.

What Is SFM Compile?

“SFM Compile” is not one button or one program. It is a workflow built from four parts:

  • Source files: your model exported as .smd or .dmx.
  • QC file: a plain-text script that tells the compiler how to build the model.
  • Compiler: studiomdl.exe, Valve’s command-line model compiler, included with SFM.
  • Front end: Crowbar, a free graphical tool that runs studiomdl for you.

A successful compile produces an .mdl file plus supporting files such as .vvd and .vtx, and a .phy file if you defined physics. Together they form the finished model.

This guide covers the original Source Filmmaker, which runs on the Source 1 engine. Source 2 Filmmaker uses a different asset pipeline, and Crowbar does not support Source 2 games.

What You Need Before You Start

ToolWhat it doesCost
Source Filmmaker (Steam)The animation software; also includes studiomdl.exe and HLMVFree
CrowbarGraphical compiler and decompilerFree
Blender + Blender Source ToolsModel your asset and export SMD/DMXFree
VTFEditConverts images to Source’s .vtf texture formatFree
Notepad++ or VS CodeEdit QC and VMT text filesFree

SFM runs on Windows, so the paths below use Windows format.

Step 1: Install SFM and Find Your Folders

Install Source Filmmaker from Steam. With a default Steam install, the game folder is:

C:\Program Files (x86)\Steam\steamapps\common\SourceFilmmaker\game\

These subfolders matter:

  • game\bin\ holds studiomdl.exe and hlmv.exe.
  • game\usermod\models\ is where compiled models end up.
  • game\usermod\materials\ is where your textures and material files go.

Inside models and materials, create your own subfolder, such as yourname. A unique folder name stops your files from overwriting someone else’s assets.

Step 2: Export Your Model as SMD or DMX

Open your model in Blender and check the basics before exporting:

  • Use one armature (skeleton) if the model is rigged.
  • Apply scale and rotation so the model isn’t exported with hidden transforms.
  • Give every material a clear name, for example my_prop_diffuse.

Install the Blender Source Tools add-on from Edit > Preferences > Add-ons. Then go to File > Export > Source Engine (.smd, .vta, .dmx) and save your reference mesh as my_prop_ref.smd. If you want physics, export a simplified collision mesh as my_prop_phys.smd.

SMD or DMX? SMD is the older, simple text format and works well for props and basic characters. DMX supports shape keys (flexes), which SFM uses for facial animation, so it is the better choice for characters with expressions.

Important: the material name in your Blender file becomes the material name inside the SMD. It must match your VMT file name in Step 3.

Step 3: Create Textures (VTF and VMT)

Source uses two texture-related files: a VTF (the image) and a VMT (a text file describing how the surface behaves).

  1. Prepare your texture with power-of-two dimensions, such as 512×512, 1024×1024, or 2048×2048.
  2. Open VTFEdit, import the image, and save it as my_prop_diffuse.vtf. Use DXT1 for opaque textures and DXT5 if you need transparency.
  3. Save it to game\usermod\materials\models\yourname\my_prop\.
  4. In the same folder, create my_prop_diffuse.vmt with this content:
"VertexLitGeneric"
{
    "$basetexture" "models/yourname/my_prop/my_prop_diffuse"
    "$surfaceprop" "metal"
}

The $basetexture path is relative to the materials folder and has no file extension. Most “pink texture” and checkerboard problems come from a mismatch here.

Step 4: Write the QC File

The QC file is the blueprint of the compile. Create my_prop.qc in the same folder as your SMD files:

$modelname "yourname/my_prop.mdl"
$staticprop
$body "body" "my_prop_ref.smd"
$surfaceprop "metal"
$cdmaterials "models/yourname/my_prop/"
$sequence idle "my_prop_ref" loop fps 1

$collisionmodel "my_prop_phys.smd"
{
    $concave
    $mass 10
}

What each line does:

  • $modelname sets the output path and name, relative to the models folder.
  • $staticprop marks a non-animated prop. Remove it for rigged characters.
  • $body points to your reference mesh.
  • $surfaceprop sets the physical material (sound and impact behavior).
  • $cdmaterials tells the compiler which folder inside materials holds your VMT files.
  • $sequence defines an animation. Every model needs at least one, so a simple idle using the reference mesh works for props.
  • $collisionmodel adds physics. Delete this block if you have no collision mesh.

Write your QC in Notepad++ or VS Code. One typo, missing quote, or wrong file name is enough to make the whole compile fail.

Step 5: Set Up Crowbar

Crowbar is a graphical interface for studiomdl. Download it from its official page, extract it, and run crowbar.exe.

  1. Open the Compile tab.
  2. In “Game that has the model compiler,” select Source Filmmaker.
  3. If Crowbar reports missing files, click Set Up Games and check three paths:
    • gameinfo.txt: ...\SourceFilmmaker\game\usermod\gameinfo.txt
    • Model compiler: ...\SourceFilmmaker\game\bin\studiomdl.exe
    • Model viewer: ...\SourceFilmmaker\game\bin\hlmv.exe

The most common cause of a “model compiler does not exist” error is SFM installed in a non-default Steam library, such as another drive. Point Crowbar to the real location and save. Also use SFM’s own studiomdl rather than another game’s, because the SFM compiler is tuned for SFM.

Step 6: Compile the Model

  1. In the Compile tab, browse to your my_prop.qc file.
  2. Set the output so the model lands in the game’s models folder.
  3. Click Compile.
  4. Watch the log window under the button.

If it succeeds, your usermod\models\yourname\ folder now contains my_prop.mdl and its companion files. If it fails, read the log. Crowbar shows the line number of the problem after the QC file name, so you can jump straight to the broken line. Always start with the first error, because later errors are often side effects.

Step 7: Test in HLMV, Then in SFM

Never trust a model until you have seen it.

Test in HLMV first. Use Crowbar’s View options to open the Half-Life Model Viewer. Check that the textures load, the scale is correct, and the model isn’t distorted. Testing here isolates model problems from scene problems.

Then load it in SFM:

  1. Launch Source Filmmaker and open or create a session.
  2. In the Animation Set Editor, right-click and choose Create Animation Set for New Model.
  3. Browse to yourname/my_prop.mdl and add it.

If the model doesn’t show up, restart SFM so it re-reads the model folders, and confirm the .mdl really is inside usermod\models.

Different Options and Tools for SFM Compile

Once the basic workflow works, you can pick the method that fits your project.

Crowbar (recommended for most people)

Crowbar gives you a clear interface, a readable compile log, and a built-in model viewer button. It is the best starting point.

studiomdl from the command line

You can skip Crowbar and run Valve’s compiler directly:

"C:\Program Files (x86)\Steam\steamapps\common\SourceFilmmaker\game\bin\studiomdl.exe" -game "C:\Program Files (x86)\Steam\steamapps\common\SourceFilmmaker\game\usermod" -nop4 -verbose "C:\work\my_prop\my_prop.qc"

This gives you detailed logs and works well in scripts and automation, but the syntax must be exact.

Batch compiling

Crowbar can compile a whole folder of QC files one after another. This saves a lot of time when you have a pack of props or many outfits for one character.

Decompiling to learn

Crowbar’s Decompile tab turns an existing .mdl back into QC and SMD files. It is a great way to study how experienced creators structure their models. Only reuse assets when the creator’s license or permission allows it.

Comparison

MethodBest forDifficultyMain trade-off
CrowbarBeginners and daily workEasyDepends on correct game setup
studiomdl (command line)Automation, detailed logsMediumExact syntax required
Crowbar batch compileMany models at onceEasyOne bad QC can add log noise
SMD workflowProps, simple charactersEasyNo facial flexes in the base format
DMX workflowCharacters with expressionsMediumLarger files, more setup

Common SFM Compile Errors and How to Fix Them

SymptomLikely causeFix
Purple-and-black checkerboardVMT or VTF missing, wrong $cdmaterials, or name mismatchCheck folder paths and make sure the material name matches the VMT file name
“Model compiler does not exist”Wrong path in Set Up GamesRe-browse to game\bin\studiomdl.exe and usermod\gameinfo.txt
“Too many materials”Model uses more than 32 materialsMerge materials and remove duplicates
Compile can’t open an SMDTypo or wrong path in the QCMatch every file name exactly
Stretched or exploded meshBad bone weights or unapplied transformsApply transforms, fix weights, re-export
Model too big or smallScale mismatchAdjust export scale or use $scale in the QC
Model loads but is invisibleNo $sequence definedAdd an idle sequence

Best Practices for Clean SFM Compiles

  • Keep one folder structure. Mirror the same names across models, materials, and your working folder.
  • Compile early and often. Compile a simple version first, then add features one at a time. It is much easier to find the line that broke things.
  • Read logs from the top. The first error is usually the real cause.
  • Version your QC files. Save copies before big changes so you can roll back.
  • Test in HLMV before SFM. It shows model and texture problems faster.
  • Use unique names. A personal folder prefix prevents conflicts with other assets.
  • Respect licenses. Only compile and share assets you made or have permission to use.

Frequently Asked Questions

Is SFM compile a separate program?

No. It is a workflow using a 3D program, a QC script, and a compiler such as studiomdl, usually through Crowbar.

Which file does SFM actually use?

SFM loads the compiled .mdl file, along with supporting files like .vvd, .vtx, and .phy.

Can I compile FBX or OBJ files directly?

No. Convert them to SMD or DMX first, for example through Blender and Blender Source Tools.

Do I need to know how to code?

No. A QC file is a short, plain-text script. Learning a handful of commands is enough to start.

Does this work for Source 2 Filmmaker?

No. Studiomdl and Crowbar are built for the original Source engine, and Source 2 uses a different pipeline.

Where do compiled models go?

Into SourceFilmmaker\game\usermod\models\, in the folder set by $modelname in your QC file.

Conclusion

SFM compile looks intimidating, but it is a chain of dependable steps: export clean SMD or DMX files, build your VTF and VMT textures, write an accurate QC file, run the compile through Crowbar or studiomdl, and test in HLMV before SFM. Most failures come from a wrong path or a name that doesn’t match, so slow, careful checking pays off.

Start with a simple prop, get it working, then move on to characters, DMX flexes, and batch compiles. Once the pipeline clicks, every future model becomes routine.