Reference model

From Valve Developer Community
Revision as of 17:00, 2 May 2008 by Beeswax (talk | contribs)
Jump to navigation Jump to search
Under construction.png
This page is actively undergoing a major edit.
As a courtesy, please do not edit this while this message is displayed.
If this page has not been edited for at least several hours to a few days, please remove this template. This message is intended to help reduce edit conflicts; please remove it between editing sessions to allow others to edit the page.

The person who added this notice will be listed in its edit history should you wish to contact them.

The plan is to break out this stuff when it's finished. --Beeswax 19:08, 1 May 2008 (PDT)

Compiling a Model

probable destination for this section is an introduction to Compiling models for Source. 3rd party MDL compilers often provide a different GUI to the QC file than StudioMDL, so a checklist of "things you should already have done" would be relevant to all MDL compiler docs. It includes model anatomy/glossary definitions for #REDIRECTs ?

Reference.smd

The Reference.smd is traditionally named "modelname_ref.smd". The Physics.smd is traditionally named "modelname_phys.smd". Each Animation.smd is traditionally named "sequencename.smd".


The Reference.smd basically contains the model's "default" Rig and Rendering data for animation files to manipulate.

  • The Default Skeleton is used by animations or ragdoll physics to manipulate the mesh, collisionmodel, hitboxset, etc. unless modified by $lod configuration.
  • The Default Pose is used when no animation or vphysics is applied to the skeleton.
  • The Default Mesh is the Mesh that will be Rendered unless replaced by an $lod configuration or modified by $bodygroups.
  • The Default Skinname 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.
Tip.pngTip:See SMD file format for exactly how this data is stored in each "Studio Model Data" file.


LOD...smd

see LOD Models ... compiled into VVD/VTX of main model

Physics.smd

Hitbox.smd

Confirm:not compiled by StudioMDL, but opened in text editor for hitbox vertex coordinates?

Animation.smd

  • modelname_idle.smd
  • $sequence ragdoll "ragdoll" ACT_DIERAGDOLL 1 fps 30.00