Category:QC commands: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
(→‎Performance: Added $skinnedlods command)
 
(67 intermediate revisions by 21 users not shown)
Line 1: Line 1:
This is a glossary index of commands or parameters available for use in writing a [[QC]] file.
{{languageBar|Category:QC Commands}}__NOTOC__
{{note|This documentation is far from complete. Please see [[Category talk:QC Commands]] for a list of commands yet to be looked at. See [[Qc|QC]] for a description of QC files themselves.}}
{{warning|This documentation is almost exclusively for {{src|4}}; several commands are different or absent in {{gldsrc|4}}. See [https://the303.org/tutorials/gold_qc.htm The303's GoldSrc Model Compile Command Glossary] for accurate GoldSrc reference.
{{todo|Split GoldSrc information that's on these pages into separate pages from their Source counterparts.}}}}


* A QC File is a temporary text-based script which instructs [[Studiomdl]].exe how to compile an [[MDL]] from an [[SMD]] model.
{{category header|background-color=#E0E0E0|border-color=lightgray}}
{{category newcolumn|rowspan=6|width=50%|background-color=#F7F7F7|border-color=lightgray}}


* See also this concise [[Compiling Models]] Tutorial.
== Getting Started ==
 
* '''[[Compiling a model]]'''
* [[QC|QC files]]
* [[Studiomdl]]
 
== Fundamentals ==
 
* {{ent|$modelname}}
* {{ent|$body}} or <code>[[$model (QC)|$model]]</code>
 
== Textures ==
* {{ent|$renamematerial}}
* {{ent|$texturegroup}} (multiple skins)
* {{ent|$cdmaterials}}
* {{ent|$surfaceprop}}
* {{ent|$jointsurfaceprop}}
 
== Submodels ==
* {{ent|$bodygroup}} {{not|{{ent|prop_static}}}}
 
== Collisions ==
* '''{{ent|$collisionmodel}}''' and '''{{ent|$collisionjoints}}'''
* <code>[[Prop Data|prop_data]]</code> (using {{ent|$keyvalues}})
* {{ent|$jigglebone}} {{hl2ep2|since}}<noinclude>
* '''{{ent|$hbox}}'''
* {{ent|$hboxset}}
* {{ent|$contents}}
* {{ent|$cbox}}
* {{ent|$bbox}}
 
== Animations ==
* '''{{ent|$animation}}'''
* '''{{ent|$sequence}}'''
* {{ent|$lockbonelengths}}
* {{ent|$declaresequence}}
* {{ent|$ikchain}}
* {{ent|$ikautoplaylock}}
* {{ent|$weightlist}}
* {{ent|$poseparameter}}
* {{ent|$proceduralbones}}
* {{ent|$append}}
* {{ent|$prepend}}
* {{ent|$continue}}
 
== Skeleton ==
* {{ent|$root}}
* {{ent|$hierarchy}}
* {{ent|$definebone}}
* {{ent|$bonemerge}}
* {{ent|$animblocksize}}
* {{ent|$realignbones}}
* {{ent|$renamebone}}
* {{ent|$jointsurfaceprop}}
* {{ent|$contents}}
* {{ent|$jointcontents}}
* {{ent|$alwayscollapse}}
 
{{category newcolumn|rowspan=1|width=50%|background-color=#FBF7EA|border-color=#E4DCCD}}
 
== Utility ==
* '''{{ent|$keyvalues}}'''
* {{ent|$include}}
* {{ent|$includemodel}}
* {{ent|$scale}}
* {{ent|$autocenter}}
* {{ent|$upaxis}}
* {{ent|$pushd}} and {{ent|$popd}}
* {{ent|$definemacro}} and {{ent|$definevariable}}
* {{ent|$continue}}
* {{ent|$cmdlist}}
* {{ent|$centerbonesonverts}}
 
{{category cell|background-color=white|border-color=white}}
 
== Performance ==
* {{ent|$staticprop}}
* {{ent|$shadowlod}}
* {{ent|$collapsebones}}
* {{ent|$alwayscollapse}}
* {{ent|$opaque}}
* {{ent|$mostlyopaque}}
* {{ent|$animblocksize}}
* {{ent|$sectionframes}}
* {{ent|$noforcedfade}}
* {{ent|$lod}}
* {{ent|$skinnedlods}}
* {{ent|$maxverts}}
 
{{category cell|background-color=#FBF7EA|border-color=#E4DCCD}}
 
== Lighting ==
 
* {{ent|$illumposition}}
* {{ent|$constantdirectionallight}}
* {{ent|$ambientboost}}
* {{ent|$casttextureshadows}}
* {{ent|$donotcastshadows}}
 
{{category cell|background-color=white|border-color=white}}
 
== Facial Animation ==
 
* '''<code>[[$model (QC)|$model]]</code>'''
* {{ent|$eyeposition}}
 
{{category cell|background-color=#FBF7EA|border-color=#E4DCCD}}
 
== Locations ==
* {{ent|$attachment}}
* {{ent|$origin}}
* {{ent|$collisiontext}} (gibs)
* {{ent|$autocenter}}
 
{{category end}}
[[Category:Modeling]]

Latest revision as of 20:14, 26 August 2025

English (en)Español (es)Français (fr)한국어 (ko)Português do Brasil (pt-br)Русский (ru)Translate (Translate)
Note.pngNote:This documentation is far from complete. Please see Category talk:QC Commands for a list of commands yet to be looked at. See QC for a description of QC files themselves.
Warning.pngWarning:This documentation is almost exclusively for Source Source; several commands are different or absent in GoldSrc GoldSrc. See The303's GoldSrc Model Compile Command Glossary for accurate GoldSrc reference.
Todo: Split GoldSrc information that's on these pages into separate pages from their Source counterparts.

Getting Started

Fundamentals

Textures

Submodels

Collisions

Animations

Skeleton

Utility

Performance

Lighting

Facial Animation

Locations

Subcategories

This category has the following 4 subcategories, out of 4 total.