Reference mesh: Difference between revisions
Jump to navigation
Jump to search
TomEdwards (talk | contribs) m (→Implementation) |
Thunder4ik (talk | contribs) m (→top: clean up, replaced: {{Source| → {{src|) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
In | In {{src|4}}, a [[Reference mesh]] (sometimes '''body''', '''envelope''' or '''skin''') defines some or all of a model's rendered geometry. It is stored in a 'reference [[Studiomodel Data|SMD]]' file together with [[skeleton]] and [[UV map]] data. | ||
== Facets == | == Facets == | ||
Line 24: | Line 24: | ||
;<code>[[$lod]] replacemodel</code> | ;<code>[[$lod]] replacemodel</code> | ||
:A low-detail reference mesh that replaces another at the $lod's specified distance and above. | :A low-detail reference mesh that replaces another at the $lod's specified distance and above. | ||
[[Category:Source]] | |||
[[Category:Modeling]] | [[Category:Modeling]] | ||
Latest revision as of 04:02, 4 January 2024
In Source, a Reference mesh (sometimes body, envelope or skin) defines some or all of a model's rendered geometry. It is stored in a 'reference SMD' file together with skeleton and UV map data.
Facets
- UV maps
- The UV map defines how the mesh's material is deformed to fit it.
- Levels of detail
- A reference mesh is commonly replaced by lower-detail meshes at distances with
$lod
to improve performance. See LOD Models. - Envelopes
- A reference mesh is enveloped to the bones of a model's skeleton to allow for animation.
- Weight maps
- See weight map.
Implementation
There are three QC commands related to reference meshes:
$body
- A basic reference mesh.
$model
- A reference mesh with facial animation.
$bodygroup
- A reference mesh or group of reference meshes that can be switched between or off.
$lod replacemodel
- A low-detail reference mesh that replaces another at the $lod's specified distance and above.