StudioMDL (Source): Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(→‎Output files: minor corrections - see diff)
(not incorrect at all; ask Valve)
Line 1: Line 1:
{{mergeto|Compiling a model}}
'''Studiomdl''' is the command-line tool used to compile [[model]]s from the intermediate [[Studio Model Data]] format exported from modeling packages to the binary .mdl format that is read by the Source engine.
'''Studiomdl''' is the command-line tool used to compile [[model]]s from the intermediate [[Studio Model Data]] format exported from modeling packages to the binary .mdl format that is read by the Source engine.


Line 9: Line 8:


;<code>mymodel.mdl</code>
;<code>mymodel.mdl</code>
<!-- :[[Skeleton]], animations, bounding/hit boxes, surface materials, [[lod]] index... // incorrect-->
:[[Skeleton]], animations, bounding/hit boxes, surface materials, [[lod]] index...
;<code>mymodel.sw.vtx</code>
;<code>mymodel.sw.vtx</code>
;<code>mymodel.dx80.vtx</code>
;<code>mymodel.dx80.vtx</code>
;<code>mymodel.dx90.vtx</code>
;<code>mymodel.dx90.vtx</code>
<!-- incomplete -->
:Vertex data optimised for DirectX 7, 8 and 9 respectively
<!-- :Vertex data optimised for DirectX 7, 8 and 9 // incorrect-->
;<code>mymodel.vvd</code>
;<code>mymodel.vvd</code>
<!-- :Remaining hardware-agnostic vertex data, and the [[UV map]] // incorrect-->
:Remaining hardware-agnostic vertex data, including the [[UV map]]
;<code>mymodel.phy</code>
;<code>mymodel.phy</code>
:Collision mesh data <!-- and $collsionmodel data ... -->
:Collision mesh data


== See also ==
== See also ==

Revision as of 07:28, 17 May 2008

Studiomdl is the command-line tool used to compile models from the intermediate Studio Model Data format exported from modeling packages to the binary .mdl format that is read by the Source engine.

It can be found at steam/steamapps/<account>/sourcesdk/bin/[orangebox|ep1]/bin/studiomdl.exe.

Studiomdl is executed with a QC file as a parameter. For more information about compiling, see Compiling a model.

Output files

mymodel.mdl
Skeleton, animations, bounding/hit boxes, surface materials, lod index...
mymodel.sw.vtx
mymodel.dx80.vtx
mymodel.dx90.vtx
Vertex data optimised for DirectX 7, 8 and 9 respectively
mymodel.vvd
Remaining hardware-agnostic vertex data, including the UV map
mymodel.phy
Collision mesh data

See also