This section is just a quick introduction in how to make a qc file for you
model as it is needed in order to compile the model.
Threw out the tutorial many more aspects of the Qc file will be covered.
This is a example QC file for a static rock model.
A rundown of how to use the different parameters used in the rock QC file and
what they do.
$modelname <save path>\<filename>.mdl
Defines where in the models folder the model will be saved.
You can move and rename the model manually later on if you want to.
$cd "<smd path>"
Defines where the compiler should look for the smd files.
$cdmaterials models/<sub path>
Tells the engine where to look for the materials, used by the model.
We will have to specify the models folder inside the materials folder even tho
HL2 always looks in that folder when it searches for a models materials.
If the model uses materials from differ folder you can use multiple instances
of $cdmaterials.
$model <Model Group Name> "<smdfile>"
Defines a model smd to use and names it.
$sequence <AnimName> "<smdfile>" fps <fps>
In the case of a static object the same model can be used for model and
sequence.
When you have made you QC you you need to compile the model, again we could just
dump the QC file on studiomdl.exe but i like having a bat file with some more
options to it.
Before you compile the model you need to make sure that the folder that you are
saving the model to exist in %sourcesdk%\..\..\SourceMods\II\models or the
compiler will fail to save the model, then drop the QC on the bat file and
watch the fireworks.
You should now be able to see the model with the model viewer, you can even
associate .mdl files with %sourcesdk%/bin/hlmv.exe to open it with a duple
click.
Add ice on the top you can make a .jpg with the same name as the model, this
will then show as the preview when browsing for models in the viewer. So fare
every .jpg i have trued saving threw PhotoShop has crashed the viewer but if
you make the jpg with 3D Studio MAX i will work just fine.
|