📄 m2.mht
字号:
From: <由 Microsoft Internet Explorer 5 保存>
Subject: M2 - Wowmapview
Date: Sun, 27 Nov 2005 23:47:59 +0800
MIME-Version: 1.0
Content-Type: multipart/related;
type="text/html";
boundary="----=_NextPart_000_005D_01C5F3AC.FF440720"
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
This is a multi-part message in MIME format.
------=_NextPart_000_005D_01C5F3AC.FF440720
Content-Type: text/html;
charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Content-Location: http://wowmapview.sourceforge.net/wiki/index.php/M2
=EF=BB=BF<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" =
"http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML lang=3Den dir=3Dltr xml:lang=3D"en"=20
xmlns=3D"http://www.w3.org/1999/xhtml"><HEAD><TITLE>M2 - =
Wowmapview</TITLE>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Dutf-8">
<META=20
content=3DM2,DBFilesClient\CharSections.dbc,DBFilesClient\CreatureDisplay=
Info.dbc,DBFilesClient\ItemDisplayInfo.dbc=20
name=3DKEYWORDS>
<META content=3Dindex,follow name=3Drobots><LINK href=3D"/favicon.ico"=20
rel=3D"shortcut icon">
<STYLE type=3Dtext/css media=3Dscreen,projection>@import url( =
/wiki/skins/monobook/main.css );
</STYLE>
<LINK media=3Dprint=20
href=3D"http://wowmapview.sourceforge.net/wiki/skins/common/commonPrint.c=
ss"=20
type=3Dtext/css rel=3Dstylesheet><!--[if lt IE 5.5000]><style =
type=3D"text/css">@import =
"/wiki/skins/monobook/IE50Fixes.css";</style><![endif]--><!--[if IE =
5.5000]><style type=3D"text/css">@import =
"/wiki/skins/monobook/IE55Fixes.css";</style><![endif]--><!--[if IE 6]>
<STYLE type=3Dtext/css>@import url( /wiki/skins/monobook/IE60Fixes.css =
);
</STYLE>
<![endif]--><!--[if IE]>
<SCRIPT =
src=3D"http://wowmapview.sourceforge.net/wiki/skins/common/IEFixes.js"=20
type=3Dtext/javascript></SCRIPT>
<META http-equiv=3Dimagetoolbar content=3Dno><![endif]-->
<SCRIPT=20
src=3D"http://wowmapview.sourceforge.net/wiki/index.php?title=3D-&act=
ion=3Draw&gen=3Djs"=20
type=3Dtext/javascript></SCRIPT>
<SCRIPT =
src=3D"http://wowmapview.sourceforge.net/wiki/skins/common/wikibits.js"=20
type=3Dtext/javascript></SCRIPT>
<STYLE type=3Dtext/css>@import url( =
/wiki/index.php?title=3DMediaWiki:Monobook.css&action=3Draw&ctype=3Dtext/=
css&smaxage=3D18000 );
@import url( /wiki/index.php?title=3D-&action=3Draw&gen=3Dcss );
</STYLE>
<META content=3D"MSHTML 6.00.2900.2180" name=3DGENERATOR></HEAD>
<BODY class=3Dns-0>
<DIV id=3DglobalWrapper>
<DIV id=3Dcolumn-content>
<DIV id=3Dcontent><A id=3DcontentTop name=3Dtop></A>
<H1 class=3DfirstHeading>M2</H1>
<DIV id=3DbodyContent>
<H3 id=3DsiteSub>From Wowmapview</H3>
<DIV id=3DcontentSub></DIV><!-- start content -->
<TABLE id=3Dtoc border=3D0>
<TBODY>
<TR id=3Dtoctitle>
<TD align=3Dmiddle><B>Table of contents</B>
<SCRIPT =
type=3Dtext/javascript>showTocToggle("show","hide")</SCRIPT>
</TD></TR>
<TR id=3Dtocinside>
<TD>
<DIV class=3Dtocline><A=20
=
href=3D"http://wowmapview.sourceforge.net/wiki/index.php/M2#M2_Files">1 =
M2=20
Files</A><BR></DIV>
<DIV class=3Dtocindent>
<P><A=20
=
href=3D"http://wowmapview.sourceforge.net/wiki/index.php/M2#Overview">1.1=
=20
Overview</A><BR><A=20
=
href=3D"http://wowmapview.sourceforge.net/wiki/index.php/M2#Header">1.2=20
Header</A><BR></P></DIV>
<DIV class=3Dtocline><A=20
=
href=3D"http://wowmapview.sourceforge.net/wiki/index.php/M2#Skeleton_and_=
animation">2=20
Skeleton and animation</A><BR></DIV>
<DIV class=3Dtocindent>
<P><A=20
=
href=3D"http://wowmapview.sourceforge.net/wiki/index.php/M2#Standard_anim=
ation_block">2.1=20
Standard animation block</A><BR><A=20
=
href=3D"http://wowmapview.sourceforge.net/wiki/index.php/M2#Global_sequen=
ces">2.2=20
Global sequences</A><BR><A=20
=
href=3D"http://wowmapview.sourceforge.net/wiki/index.php/M2#Animation_seq=
uences">2.3=20
Animation sequences</A><BR><A=20
=
href=3D"http://wowmapview.sourceforge.net/wiki/index.php/M2#Bones">2.4=20
Bones</A><BR></P></DIV>
<DIV class=3Dtocline><A=20
=
href=3D"http://wowmapview.sourceforge.net/wiki/index.php/M2#Geometry_and_=
rendering">3=20
Geometry and rendering</A><BR></DIV>
<DIV class=3Dtocindent>
<P><A=20
=
href=3D"http://wowmapview.sourceforge.net/wiki/index.php/M2#Vertices">3.1=
=20
Vertices</A><BR><A=20
=
href=3D"http://wowmapview.sourceforge.net/wiki/index.php/M2#Views_.28LOD.=
29">3.2=20
Views (LOD)</A><BR></P>
<DIV class=3Dtocindent>
<P><A=20
=
href=3D"http://wowmapview.sourceforge.net/wiki/index.php/M2#Indices">3.2.=
1=20
Indices</A><BR><A=20
=
href=3D"http://wowmapview.sourceforge.net/wiki/index.php/M2#Triangles">3.=
2.2=20
Triangles</A><BR><A=20
=
href=3D"http://wowmapview.sourceforge.net/wiki/index.php/M2#Vertex_proper=
ties">3.2.3=20
Vertex properties</A><BR><A=20
=
href=3D"http://wowmapview.sourceforge.net/wiki/index.php/M2#Submeshes">3.=
2.4=20
Submeshes</A><BR><A=20
=
href=3D"http://wowmapview.sourceforge.net/wiki/index.php/M2#Texture_units=
">3.2.5=20
Texture units</A><BR></P></DIV>
<P><A=20
=
href=3D"http://wowmapview.sourceforge.net/wiki/index.php/M2#Render_flags"=
>3.3=20
Render flags</A><BR><A=20
=
href=3D"http://wowmapview.sourceforge.net/wiki/index.php/M2#Texture_unit_=
lookup_table">3.4=20
Texture unit lookup table</A><BR><A=20
=
href=3D"http://wowmapview.sourceforge.net/wiki/index.php/M2#Colors_and_tr=
ansparency">3.5=20
Colors and transparency</A><BR></P>
<DIV class=3Dtocindent>
<P><A=20
=
href=3D"http://wowmapview.sourceforge.net/wiki/index.php/M2#Colors">3.5.1=
=20
Colors</A><BR><A=20
=
href=3D"http://wowmapview.sourceforge.net/wiki/index.php/M2#Transparency_=
lookup_table">3.5.2=20
Transparency lookup table</A><BR><A=20
=
href=3D"http://wowmapview.sourceforge.net/wiki/index.php/M2#Transparency"=
>3.5.3=20
Transparency</A><BR></P></DIV>
<P><A=20
=
href=3D"http://wowmapview.sourceforge.net/wiki/index.php/M2#Textures">3.6=
=20
Textures</A><BR></P>
<DIV class=3Dtocindent>
<P><A=20
=
href=3D"http://wowmapview.sourceforge.net/wiki/index.php/M2#Texture_looku=
p_table">3.6.1=20
Texture lookup table</A><BR><A=20
=
href=3D"http://wowmapview.sourceforge.net/wiki/index.php/M2#Texture_defin=
itions">3.6.2=20
Texture definitions</A><BR><A=20
=
href=3D"http://wowmapview.sourceforge.net/wiki/index.php/M2#Texture_anima=
tion_lookup_table">3.6.3=20
Texture animation lookup table</A><BR><A=20
=
href=3D"http://wowmapview.sourceforge.net/wiki/index.php/M2#Texture_anima=
tions">3.6.4=20
Texture animations</A><BR></P></DIV></DIV>
<DIV class=3Dtocline><A=20
=
href=3D"http://wowmapview.sourceforge.net/wiki/index.php/M2#Effects">4=20
Effects</A><BR></DIV>
<DIV class=3Dtocindent>
<P><A=20
=
href=3D"http://wowmapview.sourceforge.net/wiki/index.php/M2#Ribbon_emitte=
rs">4.1=20
Ribbon emitters</A><BR><A=20
=
href=3D"http://wowmapview.sourceforge.net/wiki/index.php/M2#Particle_emit=
ters">4.2=20
Particle emitters</A><BR></P></DIV>
<DIV class=3Dtocline><A=20
=
href=3D"http://wowmapview.sourceforge.net/wiki/index.php/M2#Miscellaneous=
">5=20
Miscellaneous</A><BR></DIV>
<DIV class=3Dtocindent>
<P><A=20
=
href=3D"http://wowmapview.sourceforge.net/wiki/index.php/M2#Bounding_volu=
mes">5.1=20
Bounding volumes</A><BR><A=20
=
href=3D"http://wowmapview.sourceforge.net/wiki/index.php/M2#Lights">5.2=20
Lights</A><BR><A=20
=
href=3D"http://wowmapview.sourceforge.net/wiki/index.php/M2#Cameras">5.3 =
Cameras</A><BR><A=20
=
href=3D"http://wowmapview.sourceforge.net/wiki/index.php/M2#Camera_lookup=
_table">5.4=20
Camera lookup table</A><BR></P></DIV>
<DIV class=3Dtocline><A=20
=
href=3D"http://wowmapview.sourceforge.net/wiki/index.php/M2#Unknown_block=
s">6=20
Unknown blocks</A><BR></DIV>
<DIV class=3Dtocindent>
<P><A=20
=
href=3D"http://wowmapview.sourceforge.net/wiki/index.php/M2#Block_C">6.1 =
Block C</A><BR><A=20
=
href=3D"http://wowmapview.sourceforge.net/wiki/index.php/M2#Block_D">6.2 =
Block D</A><BR><A=20
=
href=3D"http://wowmapview.sourceforge.net/wiki/index.php/M2#Block_F">6.3 =
Block F</A><BR><A=20
=
href=3D"http://wowmapview.sourceforge.net/wiki/index.php/M2#Block_K_-_Rep=
lacable_texture_lookup">6.4=20
Block K - Replacable texture lookup</A><BR><A=20
=
href=3D"http://wowmapview.sourceforge.net/wiki/index.php/M2#Block_Y">6.5 =
Block Y</A><BR><A=20
=
href=3D"http://wowmapview.sourceforge.net/wiki/index.php/M2#Block_O_-_Att=
achments">6.6=20
Block O - Attachments</A><BR><A=20
=
href=3D"http://wowmapview.sourceforge.net/wiki/index.php/M2#Block_P">6.7 =
Block P</A><BR><A=20
=
href=3D"http://wowmapview.sourceforge.net/wiki/index.php/M2#Block_Q_-_Att=
achments">6.8=20
Block Q - Attachments</A><BR></P></DIV></TD></TR></TBODY></TABLE>
<DIV class=3Deditsection style=3D"FLOAT: right; MARGIN-LEFT: 5px">[<A =
title=3DM2=20
href=3D"http://wowmapview.sourceforge.net/wiki/index.php?title=3DM2&a=
ction=3Dedit&section=3D1">edit</A>]</DIV><A=20
name=3DM2_Files></A>
<H1>M2 Files </H1>
<P>M2 files (also called MDX) contain model objects. Each M2 file =
describes the=20
vertices, faces, materials, texture names, animations and properties of =
one=20
model. M2 files don't have a chunked format like most other WoW formats. =
</P>
<P>Models are used for doodads (decoration objects), players, monsters =
and=20
really everything in the game except for Terrain and WMOs. </P>
<DIV class=3Deditsection style=3D"FLOAT: right; MARGIN-LEFT: 5px">[<A =
title=3DM2=20
href=3D"http://wowmapview.sourceforge.net/wiki/index.php?title=3DM2&a=
ction=3Dedit&section=3D2">edit</A>]</DIV><A=20
name=3DOverview></A>
<H2>Overview </H2>
<UL>
<LI>Global texture list=20
<LI>Global vertex list=20
<UL>
<LI>Position=20
<LI>Blend weights=20
<LI>Blend indices=20
<LI>Normal=20
<LI>Texture coordinates </LI></UL>
<LI>Per LOD (There are four of these in each model?)=20
<UL>
<LI>Vertex indices (vertices used by this LOD. Index into global =
vertex=20
list)=20
<LI>Face indices (three per triangle, these index into Vertex =
indices above)=20
<LI>Vertex properties (one per vertex index, usage unknown)=20
<LI>Submeshes (one per material, usually)=20
<LI>Texture units (refer to a submesh, an index into the global =
texture=20
list, and a texture unit number to bind to) </LI></UL>
<LI>Global bounding volume (used for collisions?)=20
<LI>Animations, global sequences=20
<LI>Skeleton=20
<LI>Additional rendering information: colors, transparency, texture=20
animations, blending modes etc.=20
<LI>Effects: ribbons, particles=20
<LI>Lights=20
<LI>Cameras </LI></UL>
<DIV class=3Deditsection style=3D"FLOAT: right; MARGIN-LEFT: 5px">[<A =
title=3DM2=20
href=3D"http://wowmapview.sourceforge.net/wiki/index.php?title=3DM2&a=
ction=3Dedit&section=3D3">edit</A>]</DIV><A=20
name=3DHeader></A>
<H2>Header </H2>
<P>The header has mostly the layout of number-offset pairs, containing =
the=20
number of a particular record in the file, and the offset. These appear =
at fixed=20
places in the header. Record sizes are not specified in the file. </P>
<P>The unknown blocks have (mostly arbitrary) alphabetic names until we =
figure=20
out what they are. </P>
<P><BR></P>
<TABLE class=3Dfileformat>
<TBODY>
<TR>
<TH>Offset </TH>
<TH>Type </TH>
<TH>Description </TH></TR>
<TR>
<TD>0x000 </TD>
<TD>char[4] </TD>
<TD>"MD20" </TD></TR>
<TR>
<TD>0x004 </TD>
<TD>uint8[4] </TD>
<TD>Version (always 00 01 00 00) </TD></TR>
<TR>
<TD>0x008 </TD>
<TD>uint32 </TD>
<TD>model name length </TD></TR>
<TR>
<TD>0x00C </TD>
<TD>uint32 </TD>
<TD>model name offset </TD></TR>
<TR>
<TD>0x010 </TD>
<TD>uint32 </TD>
<TD>Model type? always 0, 1 or 3 (mostly 0) </TD></TR>
<TR>
<TD>0x014 </TD>
<TD>uint32 </TD>
<TD><B>nGlobalSequences</B> - number of global sequences </TD></TR>
<TR>
<TD>0x018 </TD>
<TD>uint32 </TD>
<TD><B>ofsGlobalSequences</B> - offset to global sequences =
</TD></TR>
<TR>
<TD>0x01C </TD>
<TD>uint32 </TD>
<TD><B>nAnimations</B> - number of animation sequences </TD></TR>
<TR>
<TD>0x020 </TD>
<TD>uint32 </TD>
<TD><B>ofsAnimations</B> - offset to animation sequences </TD></TR>
<TR>
<TD>0x024 </TD>
<TD>uint32 </TD>
<TD><B>nC</B> </TD></TR>
<TR>
<TD>0x028 </TD>
<TD>uint32 </TD>
<TD><B>ofsC</B> </TD></TR>
<TR>
<TD>0x02C </TD>
<TD>uint32 </TD>
<TD><B>nD</B> - always 201 or 203 depending on WoW client version =
</TD></TR>
<TR>
<TD>0x030 </TD>
<TD>uint32 </TD>
<TD><B>ofsD</B> </TD></TR>
<TR>
<TD>0x034 </TD>
<TD>uint32 </TD>
<TD><B>nBones</B> - number of bones </TD></TR>
<TR>
<TD>0x038 </TD>
<TD>uint32 </TD>
<TD><B>ofsBones</B> - offset to bones </TD></TR>
<TR>
<TD>0x03C </TD>
<TD>uint32 </TD>
<TD><B>nF</B> - bone lookup table </TD></TR>
<TR>
<TD>0x040 </TD>
<TD>uint32 </TD>
<TD><B>ofsF</B> </TD></TR>
<TR>
<TD>0x044 </TD>
<TD>uint32 </TD>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -