Category:QC commands: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
(→‎Performance: Added $skinnedlods command)
 
(61 intermediate revisions by 20 users not shown)
Line 1: Line 1:
[[:Category:QC Commands]] is a glossary index of commands or parameters available for use in writing a [[qc|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 [[text editor|text-based]] script which instructs [[Studiomdl]].exe how to compile an [[MDL]] model from an [[SMD]] file. The extension stands for "[[wiki:Quake C|Quake C]]", the programming and scripting language from which the [[Valve Data File]] format was originally derived.
{{category header|background-color=#E0E0E0|border-color=lightgray}}
{{category newcolumn|rowspan=6|width=50%|background-color=#F7F7F7|border-color=lightgray}}


* A '''QCI file''' is a reusable or generic block of QC commands intended for use as an (optional) [[$include]]. You don't have to use the QCI files, but it can save a lot of work when appropriate.
== Getting Started ==


* Many example <code>.qc</code> and <code>.qci</code> files can be found under <code>sourcesdk_content/hl2/modelsrc</code>.
* '''[[Compiling a model]]'''
* [[QC|QC files]]
* [[Studiomdl]]


* See also [[Compiling Models|this concise tutorial]] about compiling models.
== Fundamentals ==


* {{ent|$modelname}}
* {{ent|$body}} or <code>[[$model (QC)|$model]]</code>


{{warning| QC command documentation is far from complete. Please see [[category_talk:QC Commands]] for a list of suspects.}}
== Textures ==
* {{ent|$renamematerial}}
* {{ent|$texturegroup}} (multiple skins)
* {{ent|$cdmaterials}}
* {{ent|$surfaceprop}}
* {{ent|$jointsurfaceprop}}


[[Category:Glossary]]
== 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]]
[[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.