Surface

Uses XML Tag mm:surface and contains…

Tag Type Description
name string A name is required.
faces base64 | integer[3][?] Formatted triangle data.
vertexdata mm:vertexdatafull[1+] List of attached vertex data. Must have at least one.

Example:

<mm:surface>
   <name>surf1</name>
   <faces encode=“b64iv3″>AAAAAAEA[...]</faces>
   <vertexdata>
      <mm:vertexdatafull>[...]</mm:vertexdatafull>
      <mm:vertexdatafull>[...]</mm:vertexdatafull>
   </vertexdata>
</mm:surface>

Vertex data full uses XML Tag mm:vertexdatafull and contains…

Tag Type Description
nverts integer Vertex count is required.
verts base64 | float[3][?] Formatted vertex coordinates.
norms base64 | float[3][?] Formatted vertex normals.
tangs base64 | float[3][?] Formatted vertex tangents.
uv1s base64 | float[3][?] Formatted vertex map channel 1 coordinates.
uv2s base64 | float[3][?] Formatted vertex map channel 2 coordinates.
colors base64 | float[4][?] Formatted vertex colors.

Example:

<mm:vertexdatafull>
   <nverts>4</nverts>
   <verts encode=“b64f”>AADwQQAA[...]</verts>
   <norms encode=“b64f”>AAAAAAAA[...]</norms>
   <tangs encode=“b64f”>/OeqNAAA[...]</tangs>
   <uv1s encode=“b64f”>AINEO3Ln[...]</uv1s>
   <uv2s encode=“b64f”>AAIDOkLf[...]</uv2s>
   <colors encode=“b64f”>gYAAP4GA[...]</colors>
</mm:vertexdatafull>