1<html>
2<head>
3<title>Display Mesh</title>
4<link rel="stylesheet" href="../css/mainpage.css" type="text/css">
5<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
6</head>
7
8<body>
9
10<h1>Display Mesh</h1>
11
12<h2>Overview</h2>
13<p>
14This page describes the elements used to bind defined model shapes and materials and define the display. <EM>Shapes</EM> as described in <a href="page_overview_shape.html">Defining Model Shapes and Vertex Attribute Data</a> are used as the unit for model shapes. The element for materials is described in <a href="page_overview_material.html">Defining Materials</a>.
15</p>
16<p>
17The &lt;Mesh&gt; element is used to define the binding between a single shape and material and their display. Referencing between the shape and material is defined in the child of this element. The &lt;SeparateShapeReference&gt; element is use for referencing a shape. This reference is defined in the following form: Nth shape (&lt;SeparateDataShapeCtr&gt;) in the list of shapes (&lt;Shapes&gt;) already defined. The second shape is referenced in the example below. The &lt;MaterialReference&gt; element is use for referencing a material. This reference references materials (&lt;Materials&gt;) by material name. The material names &quot;MatePlane&quot; is referenced in the example below.
18</p>
19
20<table>
21<tr><td>
22<pre>
23&lt;Mesh&gt;<br>
24  &lt;SeparateShapeReference&gt;Shapes[2]&lt;/SeparateShapeReference&gt;<br>
25  &lt;MaterialReference&gt;Materials[&quot;MatePlane&quot;]&lt;/MaterialReference&gt;<br>
26&lt;/Mesh&gt;<br>
27</pre>
28</td></tr>
29</table>
30
31<p>
32Materials referenced here are enumerated in the same format in the child hierarchy of the &lt;Materials&gt; element used to define the list of materials to be referenced by the model.
33</p>
34
35<h3>XML Hierarchical Structure</h3>
36<p>
37The &lt;Meshes&gt; element appears inside the &lt;SkeletalModel&gt; element only once. It indicates the start of the definition of the &lt;Mesh&gt; element. If a scene includes more than one shape, multiple &lt;Mesh&gt; elements can be defined. In addition, materials referenced inside &lt;Meshes&gt; are enumerated inside the &lt;Materials&gt; element.
38</p>
39
40<table>
41<tr><td>
42<pre>
43&lt;NintendoWareIntermediateFile&gt;<br>
44 &lt;GraphicsContentCtr&gt;<br>
45  &lt;Models&gt;<br>
46   &lt;SkeletalModel&gt;<br>
47     &lt;Meshes&gt;<br>
48       &lt;Mesh&gt;<br>
49         &lt;SeparateShapeReference&gt;<br>
50         &lt;MaterialReference&gt;<br>
51          :
52     &lt;Materials&gt;<br>
53       &lt;MaterialReference&gt;<br>
54        :
55</pre>
56</td></tr>
57</table>
58
59<h3>Visibility Control</h3>
60<p>
61You can set visibility at the shape level. If the IsVisible attribute of the &lt;Mesh&gt; element is true, the shape is displayed. If false, the shape is not displayed.
62</p>
63
64<h3>Render Priority</h3>
65<p>
66You can set the render priority among shapes. Specify in integer value for the RenderPriority attribute of the &lt;Mesh&gt; element.
67</p>
68