Reference model: Difference between revisions
Jump to navigation
Jump to search
m (→Reference.mdl) |
m (→Reference.mdl) |
||
Line 2: | Line 2: | ||
== Reference.mdl == | == Reference.mdl == | ||
The Reference.mdl, conventionally named <code><modelname> | The Reference.mdl, conventionally named <code><modelname>.mdl</code>, contains a range of key information for an in game model: | ||
* The model's Origin, which is used to align its rendermesh, collisionmodel, gibs, etc to the Model Entity's position in the World. | * The model's Origin, which is used to align its rendermesh ([[vtx]]), collisionmodel ([[phy]]), gibs, etc to the Model Entity's position in the World. | ||
* The name of the .vmt file to use as the default Skin. | |||
* The name of the .phy file to use as a collisionmodel. | |||
* The name of the | * The names of any sound .wav files used by this model. | ||
* The name of the | |||
* The names of any sound | |||
* etc | * etc | ||
Revision as of 16:11, 29 April 2008
Reference.mdl
The Reference.mdl, conventionally named <modelname>.mdl
, contains a range of key information for an in game model:
- The model's Origin, which is used to align its rendermesh (vtx), collisionmodel (phy), gibs, etc to the Model Entity's position in the World.
- The name of the .vmt file to use as the default Skin.
- The name of the .phy file to use as a collisionmodel.
- The names of any sound .wav files used by this model.
- etc
Reference.smd
The reference.smd, conventionally named <modelname>_ref.smd
, contains some of the information that goes into the reference.mdl, but not all of it:
- The default Origin
- Render Mesh vertex geometry
- UV map geometry and default Skin filename
- Skeleton
- etc