SFM Compile Guide: How to Compile Models for Source Filmmaker 2027

November 24, 2026

Compiling a custom model for Source Filmmaker can seem complicated when you are unfamiliar with Source-engine tools, model formats, and compilation scripts.

However, once you understand how the process works, you can convert custom 3D models into usable SFM assets without unnecessary trial and error.

This SFM compile guide explains how to prepare a model, export SMD or DMX files, create a QC script, configure Crowbar, and use StudioMDL to generate the files required by Source Filmmaker.

It also covers texture configuration, static props, animated characters, common compilation errors, and model testing.

Whether you are importing a Blender character, creating a custom prop, or troubleshooting a model that does not appear in the SFM Model Browser, this tutorial will help you understand the complete workflow.

The guide focuses on the original Source Filmmaker application, which uses the Source 1 asset pipeline. Source 2 tools and formats follow a different workflow.

What Is SFM Compile?

SFM compile is the process of converting source 3D model data into compiled Source-engine model files that Source Filmmaker can load.

A model created in Blender, Maya, or 3ds Max cannot automatically become a working SFM model simply by changing its file extension. It must be exported into a compatible intermediate format, described through a QC (Quality Control) script, and processed using StudioMDL.

The typical compilation pipeline looks like this:

3D Model → SMD/DMX Export → QC Script → StudioMDL Compiler → MDL Files → Source Filmmaker

Each component has a specific responsibility:

  • 3D modeling software: Creates the original geometry, skeleton, and animations.
  • SMD or DMX: Stores exported model and animation information.
  • QC file: Defines how the compiler should assemble the model.
  • StudioMDL: Performs the actual model compilation.
  • Crowbar: Provides a graphical interface for running the compiler.
  • Source Filmmaker: Loads the completed model for animation and scene creation.

A successful compilation produces an MDL model and supporting files. Additional files depend on the model configuration, including optional physics data.

Tools Required for SFM Model Compilation

Before starting, install the tools appropriate for your workflow. You do not necessarily need every tool for every project.

ToolPurpose
Source FilmmakerLoads and animates compiled models
CrowbarGraphical model compiler and decompiler
StudioMDLCompiles Source-engine models
BlenderCreates and prepares 3D models
Blender Source ToolsExports SMD and DMX files
VTFEditConverts images into VTF textures
Notepad++ or VS CodeEdits QC and VMT files
HLMVInspects compiled Source models

Source Filmmaker is available through Steam. Blender and Crowbar are commonly used free tools. Check the compatibility and download information for each utility before installing it.

Why Is Crowbar Important?

Crowbar simplifies the compilation process by allowing users to select a QC file, configure a game profile, choose an output location, and inspect compiler logs through a graphical interface.

It is important to understand that Crowbar is not the actual model compiler. StudioMDL performs the compilation, while Crowbar helps configure and run it.

This distinction matters when troubleshooting because an incorrect compiler path or game configuration can prevent an otherwise valid model from compiling.

Understanding SFM Model File Formats

Before writing a QC script, learn the purpose of the main file formats used in Source Filmmaker model compilation.

SMD (Studiomdl Data)

SMD is an intermediate Source model format that can contain reference geometry, skeletal information, vertex weights, and animation data.

A character project may contain separate SMD files for its reference mesh, idle animation, walking animation, and collision geometry.

DMX (Data Model Exchange)

DMX is another Source-compatible data format used in model and animation workflows. It can support more complex model information, depending on the exporter and target Source toolchain.

SMD and DMX are not simply interchangeable file extensions. Your exporter and compiler workflow must support the data you intend to use.

QC (Quality Control)

A QC file is a text-based compilation script that tells StudioMDL how to assemble the model.

It defines information such as:

  • Model output location.
  • Reference geometry.
  • Material search paths.
  • Animation sequences.
  • Physics collision data.
  • Bodygroups and attachments.

MDL, VVD, VTX, and PHY

These are important compiled model files.

ExtensionFunction
MDLMain compiled model information
VVDVertex and related mesh data
VTXOptimized mesh and rendering data
PHYOptional physics and collision information

Some models may also produce additional files, such as ANI files, depending on their compilation configuration.

Keep the related compiled files together. Moving only the MDL file into SFM can cause loading problems because the model relies on its supporting data.

VTF and VMT

VTF stands for Valve Texture Format. It stores texture image data.

VMT stands for Valve Material Type. It defines how Source uses a texture, including the shader and material properties.

The model references a material name, the material system locates the VMT, and the VMT references the appropriate VTF.

Understanding this relationship is essential for preventing missing-texture problems.

How to Prepare a 3D Model Before SFM Compilation

Model preparation is one of the most important stages of the workflow. Many compilation errors originate from incorrect geometry, broken skeletons, or incomplete exports.

Open your project in Blender or another compatible 3D application and check these elements.

1. Check geometry: Remove unnecessary objects, hidden meshes, duplicate vertices, and unwanted geometry.

2. Verify scale and orientation: Make sure the model uses a sensible scale and faces the intended direction.

3. Apply appropriate transforms: Review object transformations before exporting, especially when the exporter expects specific orientations.

4. Check UV maps: Make sure the model has properly assigned UV coordinates for its textures.

5. Review materials: Confirm that material assignments match the textures you intend to use in Source.

6. Inspect the skeleton: For animated characters, check the armature hierarchy, bone names, and vertex weights.

7. Check animation data: Make sure animation actions use the intended skeleton and contain the required keyframes.

A static prop does not need the same skeletal preparation as a fully animated character. Preparing assets according to their intended use prevents unnecessary work.

How to Export SMD and DMX Files from Blender

After preparing your model, use Blender Source Tools or another compatible exporter to generate the intermediate files.

A typical SMD export workflow is:

  1. Open the model in Blender.
  2. Install and configure Blender Source Tools.
  3. Check the mesh and armature selections.
  4. Open the Source Engine export options.
  5. Choose the required export format.
  6. Export the reference mesh.
  7. Export animation sequences separately when needed.
  8. Check that the generated files are saved in the expected project folder.

For example, a character project might contain:

character_project/
    character_ref.smd
    character_idle.smd
    character_walk.smd
    character_physics.smd
    character.qc

Use consistent filenames because the QC script must reference the exact exported filenames.

For facial animation or advanced Source features, additional export data and compatible workflows may be required. Do not assume that exporting a basic mesh automatically preserves every Blender feature.

How to Create an SFM QC File

The QC script connects your exported model files with the StudioMDL compiler.

Create a plain-text file using a text editor and save it with a .qc extension.

Basic QC Example for an Animated Character

The following is a simplified starting example:

$modelname "custom/character/character.mdl"

$body "body" "character_ref.smd"

$cdmaterials "models/custom/character/"

$surfaceprop "flesh"

$sequence "idle" "character_idle.smd" fps 30 loop

This script contains several important commands.

$modelname: Defines the compiled model’s output path and filename under the game’s models directory.

$body: Identifies the main body mesh and its reference geometry.

$cdmaterials: Defines the material search directory relative to the game’s materials directory.

$surfaceprop: Specifies the surface property associated with the model.

$sequence: Defines an animation sequence, including its source animation file and playback settings.

The example assumes that the reference and animation files exist and that the animation is compatible with the reference skeleton. It is a starting template, not a universal QC script for every character.

Additional QC Commands

Other commands become useful when you create more advanced models.

QC commandPurpose
$staticpropMarks a model as a static prop
$bodygroupDefines selectable model parts
$collisionmodelDefines collision geometry
$attachmentDefines attachment points
$hitboxDefines hitbox information
$texturegroupDefines alternative skin configurations
$includeIncludes another QC script

Not every model needs every command. Select the commands according to the asset you are building.

How to Compile a Static Prop for SFM

Static props are generally simpler to compile than animated characters because they do not require a complete character skeleton or animation sequences.

A basic static-prop QC template looks like this:

$modelname "props/custom/crate.mdl"

$staticprop

$body "body" "crate_ref.smd"

$cdmaterials "models/props/custom/"

$surfaceprop "wood"

Here is what each part does:

  • $modelname defines the output model path.
  • $staticprop identifies the model as static.
  • $body references the prop geometry.
  • $cdmaterials identifies the material directory.
  • $surfaceprop specifies the physical surface type.

The model must still have correctly exported geometry and properly configured materials.

If the prop needs collision information, you can add a suitable collision model using $collisionmodel. A collision mesh should be designed for its intended purpose rather than blindly duplicating a complex render mesh.

How to Compile an Animated Character for SFM

Animated characters require additional preparation because their meshes must work with a skeleton and animation data.

Before compiling, verify:

  • The reference mesh has the correct armature.
  • Bone names are consistent.
  • Vertex weights are properly assigned.
  • Animation exports use the compatible skeleton.
  • The QC script references the correct sequence files.

For example:

$modelname "characters/custom/hero.mdl"

$body "body" "hero_ref.smd"

$cdmaterials "models/characters/custom/"

$surfaceprop "flesh"

$sequence "idle" "hero_idle.smd" fps 30 loop

$sequence "walk" "hero_walk.smd" fps 30 loop

This example defines two animation sequences: idle and walking.

Advanced characters may also require facial flexes, flex controllers, attachments, hitboxes, and additional QC configuration.

If the character loads but its animations do not work, check the reference skeleton and animation exports before changing unrelated compiler settings.

How to Convert and Configure SFM Textures

A compiled model can load successfully while still displaying missing textures. This usually indicates a material-path or texture-reference problem.

The Source material workflow follows this relationship:

Image file → VTF texture → VMT material → Source Filmmaker

First, prepare your texture image in an image editor.

Next, convert it to VTF using VTFEdit or another compatible tool.

Then create a VMT file that references the texture.

For example:

"VertexLitGeneric"
{
    "$basetexture" "models/custom/character/diffuse"
}

The $basetexture value refers to the texture name without the .vtf extension.

Suppose the VMT is stored at:

materials/models/custom/character/diffuse.vmt

The VTF would normally be located at:

materials/models/custom/character/diffuse.vtf

The QC command:

$cdmaterials "models/custom/character/"

tells the model where to search for its material files.

Make sure the material names assigned to your model, the VMT filenames, and the directory paths are consistent.

How to Configure Crowbar for Source Filmmaker

Once your exported files and QC script are ready, configure Crowbar to use the correct Source Filmmaker environment.

Step 1: Open Crowbar

Launch Crowbar and locate its game configuration or setup section.

Step 2: Configure Source Filmmaker

Select the Source engine configuration and identify your Source Filmmaker installation.

The exact paths depend on your Steam library location.

A typical installation resembles:

Steam\steamapps\common\SourceFilmmaker\

Step 3: Select StudioMDL

Configure the model compiler path to the appropriate studiomdl.exe supplied with the target Source environment.

Do not select an unrelated compiler from another Source game simply because the executable has the same name.

Step 4: Configure the Game Directory

Point Crowbar to the appropriate SFM game configuration, including the relevant game folder and its gameinfo.txt.

For a typical custom-content workflow, usermod is commonly used.

Step 5: Select Your QC File

Open Crowbar’s Compile section and browse to your QC file.

Review the output settings and confirm where the compiled model files will be written.

Step 6: Start Compilation

Run the compile operation and inspect the output log.

Crowbar can also save compilation logs, which is useful when diagnosing errors or comparing different attempts.

How to Compile Models Using StudioMDL Directly

Crowbar is convenient, but it is not mandatory.

You can also use StudioMDL directly through a command prompt.

The general command structure is:

studiomdl.exe -game "PATH_TO_GAME_FOLDER" "PATH_TO_MODEL.qc"

Replace the placeholders with the actual paths for your installation.

For example, the game argument should identify the intended Source Filmmaker game content directory, not an unrelated Steam folder.

Direct StudioMDL compilation is useful when you want more control over command-line options or need to inspect the compiler output.

However, beginners may find Crowbar easier because it keeps the game configuration, QC selection, and compile log in one interface.

How to Install and Test a Compiled Model in SFM

After compilation, confirm that the generated model files are in the correct game content directory.

A simplified example is:

usermod/
    models/
        custom/
            character/
                character.mdl
                character.vvd
                character.dx90.vtx

    materials/
        models/
            custom/
                character/
                    diffuse.vmt
                    diffuse.vtf

The exact supporting files depend on the compilation output.

Do not separate or rename files without understanding their relationships.

Now open Source Filmmaker and locate the model through the Model Browser.

Create an animation set if you are testing a character and check whether the model behaves as expected.

Testing with Half-Life Model Viewer

Half-Life Model Viewer (HLMV) provides another useful way to inspect compiled Source models.

Depending on the model and viewer version, you can examine:

  • Mesh geometry.
  • Materials and textures.
  • Bones and skeleton structure.
  • Animation sequences.
  • Attachments.
  • Bodygroups.
  • Facial flexes.

HLMV can help distinguish a model-compilation problem from an issue occurring inside an SFM scene.

Always test the model in Source Filmmaker as well, because successful inspection in a model viewer does not guarantee that every SFM-specific feature works correctly.

Common SFM Compile Errors and How to Fix Them

Compilation errors are easier to resolve when you identify their original cause instead of changing multiple settings at once.

Error or symptomLikely causeSolution
Cannot load SMDIncorrect source filename or pathCheck QC references
Invalid QC commandIncorrect syntax or unsupported commandReview QC structure
Missing texturesIncorrect material referencesCheck VMT and VTF paths
Model not appearingIncorrect output location or model pathCheck game folders and $modelname
Broken animationIncompatible skeleton or sequence exportVerify bone names and animation files
Compilation abortedEarlier file or syntax errorFind the first meaningful error in the log
Physics not workingMissing or invalid collision setupInspect collision mesh and QC settings

Purple and Black Checkerboard Textures

This appearance usually indicates that Source cannot locate or load the expected material or texture.

Check:

  1. The $cdmaterials directory.
  2. The location of the VMT file.
  3. The material name used by the model.
  4. The $basetexture reference.
  5. The VTF filename and extension.
  6. The spelling of every folder and filename.

Do not assume that recompiling the geometry will fix a material-path problem.

Model Does Not Appear in the Model Browser

First, verify that the model was compiled successfully.

Then check the $modelname output path and confirm that the model and its supporting files are inside a mounted SFM game directory.

Also check whether the model appears in HLMV. If it does not, investigate the compiled asset before troubleshooting the animation scene.

Character Appears in a T-Pose

A character stuck in a T-pose may have a missing animation sequence, an incorrect QC reference, or incompatible skeleton data.

Check that the reference mesh and animation files use compatible bone names and hierarchy.

Also verify that the sequence command references the correct exported animation.

StudioMDL Reports an Error

Read the compilation log from the beginning rather than focusing only on its final failure message.

Look for the first meaningful error, such as a missing file, invalid command, or malformed source data.

Correct one issue at a time and compile again.

Best Practices for Reliable SFM Compilation

A well-organized workflow reduces errors and makes future updates easier.

  • Keep source files: Save your original Blender project, exported SMD or DMX files, QC scripts, and textures.
  • Use consistent filenames: Match exported filenames with the references inside your QC script.
  • Separate asset types: Keep reference geometry, animations, collision meshes, and textures organized.
  • Use appropriate geometry: Avoid unnecessarily complex collision meshes.
  • Check material paths: Confirm that VMT and VTF references are correct before assuming the model itself is broken.
  • Read compiler logs: Investigate the first meaningful error instead of repeatedly changing unrelated settings.
  • Test each model type: Static props and animated characters require different validation steps.
  • Keep compiler configurations consistent: Use the correct Source Filmmaker compiler and game environment.

SFM Compile vs. SFM Rendering: What Is the Difference?

SFM compilation and rendering are two separate stages of the animation workflow.

Compilation converts model source files into assets that Source Filmmaker can load.

Rendering produces the final visual output of an animated scene.

For example, when you create a custom character in Blender, you first export and compile it. After loading it into SFM, you can create an animation set, position the character, adjust lighting, set up cameras, and render the finished sequence.

Understanding this distinction helps prevent confusion when a model is ready but the final animation has not yet been produced.

Frequently Asked Questions About SFM Compile

1. What is SFM compile?

SFM compile is the process of converting custom 3D model data into Source-engine-compatible files using a QC script and the StudioMDL compiler.

2. Is Crowbar required to compile SFM models?

No. Crowbar is a graphical interface that simplifies the process. StudioMDL can also be run directly through a command prompt.

3. Can I compile Blender models for Source Filmmaker?

Yes. You can export models from Blender using compatible tools such as Blender Source Tools and compile the resulting SMD or DMX data using StudioMDL.

4. What is a QC file in SFM?

A QC file is a text-based script that tells StudioMDL how to assemble a model. It defines the model output path, reference geometry, material directories, animations, and other supported features.

5. Which files are generated after SFM compilation?

A typical Source model includes an MDL file, VVD data, and VTX data. Additional files, such as PHY and ANI, depend on the model configuration.

6. Why does my SFM model have missing textures?

The most common causes are incorrect VMT references, missing VTF files, and incorrect material directories. Check $cdmaterials and $basetexture first.

7. Can I compile static props and animated characters differently?

Yes. Static props and animated characters have different requirements. Static props generally use static model configuration, while animated characters need compatible skeletons and animation sequences.

8. What is StudioMDL used for?

StudioMDL is the Source-engine model compiler. It reads QC scripts and processes the referenced source files to generate compiled model assets.

9. What is the difference between SMD and DMX?

Both are intermediate formats used in Source model workflows. They differ in how they represent and support model data. The correct choice depends on your exporter, target engine, and project requirements.

10. Can I use Source 2 tools for original SFM models?

No, not as a direct replacement. Original Source Filmmaker uses the Source 1 asset pipeline, while Source 2 applications use different model formats and compilation tools.

Conclusion

Compiling custom models for Source Filmmaker becomes much easier when you understand the relationship between 3D exports, QC scripts, StudioMDL, Crowbar, and Source material files.

Start by preparing your model in Blender, exporting the required SMD or DMX files, and creating a QC script that matches your asset type.

Configure Crowbar to use the correct Source Filmmaker environment, run StudioMDL, and inspect the resulting files before importing the model into SFM.

If something goes wrong, check the compiler log, verify your file paths, and test materials and animations separately.

This systematic approach is more effective than repeatedly recompiling a model without identifying the actual problem.

With a properly organized workflow and careful testing, you can create custom characters, static props, and animated assets that integrate more reliably into your Source Filmmaker projects.

About the author
Leah Morgan

Leave a Comment