Reference model: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
Line 18: Line 18:


== Reference.smd ==
== Reference.smd ==
The reference.smd, conventionally named <code>"<modelname>_ref.smd"</code> or <code>"lod0_<modelname>_ref.smd"</code>, contains:
The reference.smd is conventionally named <code>"<modelname>_ref.smd"</code> or <code>"lod0_<modelname>_ref.smd"</code>.
* The skeletal [[Bone Hierarchy]] (<code>nodes</code> block).
 
* The default, un-animated pose (<code>skeleton</code> block).
It ''defines'' the model's:
* The (default [[LOD Models|LOD]]) Render Mesh (<code>triangles</code> block), including its:
* [[Bone Hierarchy]] (skeleton)(<code>nodes</code> block).
** default [[Skin]] filename(s),
* [[Default Pose]] (<code>skeleton</code> block).
* ([[LOD Models|Default LOD]]) [[Mesh]] (<code>triangles</code> block), including its:
** [[Default Skin]] filename(s),
** "[[3D vertex]]" data (in relation to the model's [[$origin]]),
** "[[3D vertex]]" data (in relation to the model's [[$origin]]),
** "[[smoothing group]]" data,
** "[[Smoothing group]]" data,
** "[[texture map]]" data,
** "[[Texture map]]" data,
** "[[bone map]]" or "envelope" 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 11:27, 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 conventionally named "<modelname>_ref.smd" or "lod0_<modelname>_ref.smd".

It defines the model's: