SFM Compile: How to Bring Your Blender Models Into Source Filmmaker
You finish a model in Blender, open Source Filmmaker, and realize there is nowhere to import the .blend file. The missing step is an SFM compile. It takes the model data you export from Blender and builds the files that Source Filmmaker can load through its model browser.
A simple crate is a good first project. It gives you a chance to learn how the mesh, material, and output folders fit together before you add a character rig, facial expressions, or a collection of animations. Once the crate works, you can use the same workflow for more involved models.
What Is SFM Compile?
Compiling a model for Source Filmmaker starts with an export in a format that the Source model compiler can read, such as SMD or DMX. You then write a QC file that tells the compiler what to build. It lists things like the mesh to include, the name of the compiled model, and the folder where SFM should look for its materials.
StudioMDL reads the QC and builds the model. You can run it from the command line or launch it through Crowbar, which provides a graphical interface. Either way, StudioMDL does the actual compiling. Crowbar makes it easier to choose the QC file, select the SFM compiler, and see the messages it returns.
Prepare Your Model Before Exporting
Open your model in Blender and give it a quick check. For a crate, make sure the wood grain runs in the direction you expect and the object is the right size for your scene. Give the material a clear name such as crate_wood. You will use that name again when you set up the material in Source Filmmaker.
Use Blender Source Tools to export the mesh as SMD or DMX. For the example below, save the mesh as crate.smd and use a separate, compatible one-frame idle export named crate_idle.smd. Keep both exports in the same project folder so you can find them easily when you write or update the QC.
Write the QC File
Create a plain-text file called crate.qc in the same folder as the two exports. Check the file extension when you save it. If your editor adds .txt, the file may appear as crate.qc.txt on disk. The following example assumes your exports have the filenames shown.
$modelname "myprops/wooden_crate.mdl"
$body "body" "crate.smd"
$cdmaterials "models/myprops/wooden_crate/"
$sequence "idle" "crate_idle.smd" fps 1
The $modelname line gives the finished model a filename and a subfolder under models. The $body line points to the exported mesh, and $sequence points to the idle export. The $cdmaterials line tells SFM where to look for the material definition. Its path starts from the materials folder, so the crate’s VMT goes in materials/models/myprops/wooden_crate/.
Compile the Model With Crowbar
In Crowbar, open the Compile tab, select crate.qc, and choose Source Filmmaker as the game compiler. If Crowbar reports that it cannot find studiomdl.exe or gameinfo.txt, open Set Up Games and check the paths. In a typical installation, the compiler is in SourceFilmmaker/game/bin/, and gameinfo.txt is in SourceFilmmaker/game/usermod/. Browse to your Steam library if you installed SFM on another drive.
Click Compile and check the log for the output location. A typical SFM model includes an .mdl, a .vvd, and a .dx90.vtx file. If you compiled to a temporary folder, copy the matching files into an SFM content folder and keep them together. In this example, they belong under models/myprops/, with wooden_crate as their shared base name.
Set Up the Material and Texture
Source Filmmaker uses two files for a basic textured material. The VMT defines the material, and the VTF contains the texture image. For the crate, name the material definition crate_wood.vmt to match the name exported with the mesh. You can place the corresponding crate_wood.vtf in the same folder.
Here is a basic VMT for that setup. The $basetexture path starts inside the materials folder and leaves off the .vtf extension.
"VertexLitGeneric"
{
"$basetexture" "models/myprops/wooden_crate/crate_wood"
}
Load the crate in a test scene and inspect it from a few angles. Compare its size with another prop and look closely at the corners to see how the grain lines up. You can catch scale and texture problems here before using the model in a shot.
Fix Common SFM Compile Problems
Crowbar Cannot Find an Exported File
Read the first error that names a file. If it mentions crate_idle.smd, check that the file exists and that the spelling matches the $sequence line. If the error names the compiler or gameinfo.txt, go back to Crowbar’s game setup. The filename in the log tells you which folder to check first.
The Model Compiles but Is Missing From the Browser
Check where Crowbar wrote the compiled files. If they are still in a temporary output folder, SFM may be looking elsewhere. Put the model in a models folder that SFM searches, preserve the subfolder from $modelname, and search for wooden_crate in the model browser.
The Model Has a Pink-and-Black Checkerboard
Start with the exported material name and look for a matching VMT in the $cdmaterials folder. Then open the VMT and follow the $basetexture path to the VTF. If the texture was renamed or moved, update the path and test the model again. This kind of path fix can usually be made without recompiling the mesh.
Conclusion
The easiest way to learn SFM compile is to take one small prop all the way from Blender to a test scene. Get it to appear in the model browser, check that its material loads, and confirm that it looks the right size. When you run into trouble, start with the symptom. A failed compile points you to the log, a missing model points you to the output folder, and a checkerboard points you to the material files.
Frequently Asked Questions
1. Can I import a Blender model directly into Source Filmmaker?
Source Filmmaker loads compiled Source models. Export the model from Blender as SMD or DMX, then compile those exports with StudioMDL using a QC file.
2. Is Crowbar required for an SFM compile?
You can run StudioMDL from the command line. Crowbar gives you an interface for choosing the QC file, configuring the SFM compiler, and reading the compile log.
3. Should I use SMD or DMX for my first model?
SMD is a straightforward choice for a basic prop. If you later work with a character that uses facial expressions or other advanced features, check which DMX export settings your SFM workflow supports.
4. Why did my compile produce several files?
The compiled model uses companion files to store information such as vertex and rendering data. Some models also produce a .phy file for collisions. Keep the files from the same compile in the same folder.
5. Do I need to recompile after replacing a texture?
If the replacement VTF has the same name and path, you can usually use it without recompiling the model. Changes to the exported material name or the QC’s material search folder require a fresh compile.



