$body: Difference between revisions
Jump to navigation
Jump to search
Tip:Models with facial animation use
Note:Reference meshes co-exist by default, rather than replacing each other.
TomEdwards (talk | contribs) mNo edit summary |
TomEdwards (talk | contribs) mNo edit summary |
||
Line 1: | Line 1: | ||
The [[$body]] [[QC command]] is used to specify a [[ | The [[$body]] [[QC command]] is used to specify a [[reference mesh]] that contains [[vertex]], [[UV map]], [[skeleton]] and [[envelope]] data for the model. Without at least one body, the model will have no physical appearance. | ||
{{tip|Models with [[facial animation]] use <code>[[$model (QC)|$model]]</code>.}} | {{tip|Models with [[facial animation]] use <code>[[$model (QC)|$model]]</code>.}} | ||
{{note| | {{note|Reference meshes co-exist by default, rather than replacing each other.}} | ||
== Usage == | == Usage == | ||
Line 12: | Line 12: | ||
;<code><name></code> | ;<code><name></code> | ||
:A label for this body to distinguish it from other | :A label for this $body to distinguish it from other reference meshes (if there are any). | ||
;<code><reference smd></code> | ;<code><reference smd></code> | ||
:Path to and name of the 'reference' (sometimes 'model') SMD relative to the QC file's current directory. | :Path to and name of the 'reference' (sometimes 'model') SMD relative to the QC file's current directory. | ||
Line 25: | Line 25: | ||
== See also == | == See also == | ||
*[[ | *[[Reference mesh]] | ||
*[[$bodygroup]] | *[[$bodygroup]] | ||
*[[$model (QC)|$model]] | *[[$model (QC)|$model]] | ||
[[Category:QC Commands|B]] | [[Category:QC Commands|B]] |
Revision as of 11:57, 28 April 2008
The $body QC command is used to specify a reference mesh that contains vertex, UV map, skeleton and envelope data for the model. Without at least one body, the model will have no physical appearance.

$model
.
Usage
$body <name> <reference smd>
Options
<name>
- A label for this $body to distinguish it from other reference meshes (if there are any).
<reference smd>
- Path to and name of the 'reference' (sometimes 'model') SMD relative to the QC file's current directory.
Example
$modelname "weapons/shell.mdl" $cdmaterials "models/weapons/" $body shell "shell-ref.smd" $sequence idle "shell-idle.smd"