What is SFM Compile?
SFM Compile is the process of building custom models that the original Source Filmmaker can read. It connects the work you do in a 3D modeling application with the assets you use to create shots, posters and animated films. Instead of opening a Blender project directly in SFM, you export suitable source data, describe the model in a QC script and run a compiler that understands the original Source engine.
Source Filmmaker itself is Valve’s free filmmaking application available on Steam. SFM Compile is not the name of a separate official Valve application. This website is an independent learning resource for that workflow. Similar names are also used by unrelated websites and communities, so a search result containing the phrase does not necessarily lead to a compiler or an official download.
The most useful way to understand compilation is to think of it as a build step. Your editable source files remain available for future changes, while the compiler generates a separate set of runtime files. When you change the geometry, skeleton or model configuration, you can rebuild the asset without starting your entire animation over.
Quick answer: Export SMD or DMX data, prepare Source materials, write a QC file, run the SFM version of StudioMDL (directly or through Crowbar), and test the resulting model in a clean session.
Understand the Source Filmmaker file formats
Before installing tools, learn which files belong to each stage. Keeping editable source files separate from compiled assets makes troubleshooting and sharing much easier.
| Format | Role in the workflow |
|---|---|
.smd / .dmx | Exported mesh, skeleton or animation data used as compiler input. |
.qc | Text instructions defining the model path, meshes, material directories and sequences. |
.mdl | Compiled model header and associated model information. |
.vvd / .vtx | Companion vertex and optimized mesh data; keep the generated variants together. |
.phy | Optional compiled collision data, when a collision model is configured. |
.vmt / .vtf | Material definition and texture image data, stored under the materials directory. |
.bsp | Compiled map, generated through a different toolchain. |
Model compilation, map compilation and rendering are related but separate activities. A successful model build does not guarantee that its textures are installed, and a finished map does not automatically produce a movie. Identify which kind of output you need before following a tutorial.
Essential tools for SFM model compilation
Start with a small set of compatible tools rather than downloading every utility mentioned in a tutorial. Each application has a specific job in the pipeline.
Source Filmmaker and StudioMDL
Install SFM from its Steam listing and launch it to confirm the installation works. StudioMDL, the model compiler, is normally found in the installation’s game/bin directory. The model viewer can help inspect assets without building an entire scene.
Blender and Source-compatible exporters
Use Blender or another suitable modeling application to prepare meshes, UVs and bones. Blender Source Tools exports SMD and DMX files. Check the add-on’s supported Blender versions before installing it; a newer Blender release is not automatically compatible.
Crowbar
Crowbar provides a graphical interface for running Source model tools and reviewing build output. It does not replace StudioMDL. Select the original Source Filmmaker game configuration so that Crowbar invokes the correct compiler rather than the executable for another Source game.
Texture and text editors
A compatible VTF editor converts ordinary image files into Source textures. A plain text editor lets you create QC and VMT files without introducing rich text formatting. Use the resource directory for software references and compatibility notes.
How to compile a model for SFM, step by step
The following walkthrough uses a simple crate as an illustrative example. A rigid prop is a better first project than a complex character because there are fewer moving parts to diagnose. The example is a template, not a tested downloadable asset.
1. Prepare and organize the model
Check mesh scale, orientation, normals and UV coordinates in your 3D editor. Give the material slot a consistent name such as crate. Save a copy of the editable project in a source directory outside the runtime models folder. If you use a skeleton, verify that vertices are assigned to the intended bones. Avoid changing the rig and materials at the same time during debugging.
2. Export the reference mesh
Use a compatible exporter to save the reference mesh as crate_ref.smd or the equivalent DMX file. For a character, export animation sequences according to the exporter documentation. Confirm that the export actually contains the intended objects. Place the source file and the QC script together for this example so that relative references are simple to understand.
3. Create the QC script
A QC file describes what StudioMDL should build. The model name controls the output path relative to the models directory; the body command identifies the reference mesh; the material directory points to the location beneath materials. The sequence provides a basic pose for this example.
$modelname "workshop_example/crate.mdl"
$body "body" "crate_ref.smd"
$cdmaterials "models/workshop_example/"
$sequence "idle" "crate_ref.smd" fps 1Save this as crate.qc using a plain text editor. This minimal script does not define physics, facial flexes or a complete character rig. Make sure the exported source is suitable for the sequence; if needed, export a dedicated idle animation and reference that file instead. The QC file generator can create a similar starting template without uploading your assets.
4. Build the model with Crowbar or StudioMDL
Open Crowbar and configure the Source Filmmaker installation and target game directory. In its compile interface, select crate.qc, review the destination and run the build. If you prefer the command line, the example below illustrates the equivalent executable and game arguments for a common Windows Steam installation. Adjust every path to your actual library location.
"C:\Program Files (x86)\Steam\steamapps\common\SourceFilmmaker\game\bin\studiomdl.exe" -game "C:\Program Files (x86)\Steam\steamapps\common\SourceFilmmaker\game\usermod" -nop4 "C:\modelsrc\crate\crate.qc"Read the output even when the build succeeds. Warnings may reveal problems that are easier to fix now than after animating the model. Keep the log beside the source project, and verify the location of the newly generated files rather than assuming the compiler used your intended output directory.
5. Install, inspect and validate
Keep the generated MDL and its companion files together in a mounted models directory. Put matching materials in the corresponding materials directory, not inside the models directory. Open a blank SFM session, add an animation set for a new model and search for the crate. Inspect its appearance under a light, check the scale and pose, and restart or refresh the application if the asset list has not updated. See the complete model compilation guide for the next steps.
How to install textures and materials correctly
A model can compile successfully and still appear pink and black. This usually means that the engine cannot resolve the expected material or texture. Source uses a VMT text definition to describe the surface and a VTF file to store the image. Neither file should be confused with the material name in your 3D editor.
For the crate example, create a crate.vtf texture and a crate.vmt definition under materials/models/workshop_example. With a material slot named crate and the QC directory shown above, a simple model shader definition might look like this:
"VertexLitGeneric"
{
"$basetexture" "models/workshop_example/crate"
}The base texture path is relative to materials and excludes the VTF extension. Check spelling in the exported mesh, the QC directory and the VMT file. If your model requires transparency, normal maps or other properties, add them only after the basic material works. The materials and textures guide explains how to isolate these issues.
Common SFM compile errors and how to fix them
Do not reinstall the software immediately after a failed build. Start with the first meaningful error in the compiler log and isolate the affected stage. Later errors may simply be consequences of the first failure.
| Symptom | What to check first |
|---|---|
| Compiler cannot open source file | QC relative path, extension and actual export location. |
| Unknown QC command | Spelling, quotation marks and support in the target engine branch. |
| Model absent in SFM | Mounted content folders, compiler output and model browser filters. |
| Pink and black texture | VMT name, VTF path and material directory. |
| Distorted mesh or pose | Exported transforms, skeleton hierarchy and skin weights. |
| VTX load failure or crash | Missing companion files or a model built for a different engine branch. |
Make one change at a time and rebuild. Record what changed, whether the error disappeared and which files were generated. If a formerly working asset breaks, compare the latest source and QC against your backup. Visit the troubleshooting guide for a more detailed diagnostic workflow.
Maps, animation and rendering in Source Filmmaker
Once the model is ready, you can place it in a scene, create animation sets, adjust the camera and light the shot. Compiling a map, however, is not the same as compiling a model. Source maps use a separate pipeline, commonly involving Hammer and the VBSP, VVIS and VRAD tools. The resulting BSP must be compatible with SFM, including its lighting requirements. Follow the map compilation guide if your project needs a custom environment.
Rendering is the final presentation stage. Select a camera, check the shot and frame range, then choose an output format. An image sequence is often useful for longer projects because individual frames can be inspected and a partial render may be easier to recover. Assemble the frames with the intended frame rate in a video editor and combine them with sound as needed. Our rendering and export guide covers this separate workflow.
Source 1 compatibility, safety and asset permissions
The instructions on this page target the original Source Filmmaker on Steam. Source 2 filmmaking environments use a different asset pipeline; a tutorial or compiled asset for one engine is not guaranteed to work with the other. Even games within Source 1 can use incompatible model versions. Recompile from permitted source files using the appropriate target when necessary.
Download software from its developer or a reputable distribution page. Be cautious of unknown executables advertised as an all-in-one SFM compiler. Verify asset licenses before porting or redistributing models, textures or animations made by someone else. Keep backups and avoid modifying the only copy of a working asset. When sharing a model, include the required companion files, permitted materials and clear installation instructions rather than only the MDL.
Your preflight checklist before every compile
- Exported model and QC files have matching relative paths.
- Material slot names match the intended VMT definitions.
- The compiler is configured for original Source Filmmaker.
- Generated companion files are kept together in the target content folder.
- A clean session has been used to test scale, pose and appearance.
- Editable project files, compiler logs and asset permissions are retained.
Working through this checklist takes less effort than repeatedly rebuilding a complicated scene. Once a simple prop works, expand your workflow to multiple materials, rigged characters and animation sequences. Use our getting started guide to plan your first project, and consult the official Source Filmmaker website and Valve Developer Community for platform documentation.
Organize a reusable SFM project
A useful production habit is to separate the source project, exported files and installed assets. For example, a project folder can contain a Blender file, a source exports folder, a copy of the QC script and a log from the last successful build. The runtime files belong in the mounted game content directory. This separation makes it possible to rebuild an asset without accidentally editing or losing the files that your existing scenes depend on.
When making a revision, keep the same output name only if you deliberately want to replace the previous model. If the change affects the skeleton or removes a material used by an existing shot, consider a new model name so the old version remains available. Before deleting a previous build, check which sessions use it and keep an archive outside the game folder. A modest naming convention and a short change log can save substantial time when a project has several characters, props and environments.














