Reference model: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (→‎Reference.smd: alphabetical, ref redundant)
Line 18: Line 18:


== Reference.smd ==
== Reference.smd ==
The reference.smd is conventionally named <code>"<modelname>_ref.smd"</code> or <code>"<modelname>_lod0.smd"</code>.
The reference.smd is traditionally named <code>"modelname_ref.smd"</code> to distinguish it from <code>"modelname_anim.smd"</code> files. It is also distinct from the <code>"modelname_phys.smd"</code> which contains only collisionmodel reference data.


It ''defines'' the model's:
The reference.smd contains the model's "default" Rendering data for animation files to manipulate.
* [[Bone Hierarchy]] (skeleton)(<code>nodes</code> block).
* The '''Reference Skeleton''' (<code>nodes</code> block) is used by animations or ragdoll physics to manipulate the mesh, collisionmodel, hitboxset, etc. It can be modified by [[$lod]] bonetreecollapse (etc)
* [[Default Pose]] (<code>skeleton</code> block).
* The '''Reference Pose''' (<code>skeleton</code> block) is used when no animation or vphysics is applied to the skeleton.
* ([[LOD Models|Default LOD]]) [[Mesh]] (<code>triangles</code> block), including its:
* The '''Reference Mesh''' (<code>triangles</code> block) is the Mesh that will be Rendered unless replaced by an [[$lod]] configuration.
** [[Default Skin]] filename(s),
* The '''Reference Skin''' is only the ''filename'' of the VMT whose VTFs will be used on the Mesh unless overridden by [[$texturegroup]] skinfamilies options and/or [[$lod]] configuration.
** "[[3D vertex]]" data (in relation to the model's [[$origin]]),
 
** "[[Smoothing group]]" data,
The Mesh includes:
** "[[Texture map]]" data,
* [[Default Skin]] filename(s),
** "[[Bone map]]" or "envelope" data.
* "[[3D vertex]]" data (in relation to the model's [[$origin]]),
* "[[Smoothing group]]" data,  
* "[[Texture map]]" data,
* "[[Bone map]]" or "envelope" data.
<!-- I'm trying to figure out the correct terminology!-->
<!-- I'm trying to figure out the correct terminology!-->




[[category:modeling]]
[[category:modeling]]

Revision as of 14:43, 30 April 2008

Stub

This article or section is a stub. You can help by expanding it.

Reference.mdl

The Reference.mdl, conventionally named <modelname>.mdl, contains a range of key information for an in game model:

  • The model's Filename, used to identify vital data stored in the model's VTX, VVD, PHY files.
  • The names of any Sound WAV files used by this model.
  • The names of the Skin VMT files used by this model. (or is this in VTX / VVD files ?)
  • The names of any Animation Sequences used by this model.
  • The names of any Animation Library MDL files used by this model.
  • Any propdata attributes this model may have, including
  • The names of any Gib MDL files used by this model.
  • etc

Each model's 3D Rendering data is stored in the VVD and VTX files, and its Collisionmodel data in its PHY file.

Reference.smd

The reference.smd is traditionally named "modelname_ref.smd" to distinguish it from "modelname_anim.smd" files. It is also distinct from the "modelname_phys.smd" which contains only collisionmodel reference data.

The reference.smd contains the model's "default" Rendering data for animation files to manipulate.

  • The Reference Skeleton (nodes block) is used by animations or ragdoll physics to manipulate the mesh, collisionmodel, hitboxset, etc. It can be modified by $lod bonetreecollapse (etc)
  • The Reference Pose (skeleton block) is used when no animation or vphysics is applied to the skeleton.
  • The Reference Mesh (triangles block) is the Mesh that will be Rendered unless replaced by an $lod configuration.
  • The Reference Skin is only the filename of the VMT whose VTFs will be used on the Mesh unless overridden by $texturegroup skinfamilies options and/or $lod configuration.

The Mesh includes: