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 <Mesh> 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 <SeparateShapeReference> element is use for referencing a shape. This reference is defined in the following form: Nth shape (<SeparateDataShapeCtr>) in the list of shapes (<Shapes>) already defined. The second shape is referenced in the example below. The <MaterialReference> element is use for referencing a material. This reference references materials (<Materials>) by material name. The material names "MatePlane" is referenced in the example below. 18</p> 19 20<table> 21<tr><td> 22<pre> 23<Mesh><br> 24 <SeparateShapeReference>Shapes[2]</SeparateShapeReference><br> 25 <MaterialReference>Materials["MatePlane"]</MaterialReference><br> 26</Mesh><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 <Materials> 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 <Meshes> element appears inside the <SkeletalModel> element only once. It indicates the start of the definition of the <Mesh> element. If a scene includes more than one shape, multiple <Mesh> elements can be defined. In addition, materials referenced inside <Meshes> are enumerated inside the <Materials> element. 38</p> 39 40<table> 41<tr><td> 42<pre> 43<NintendoWareIntermediateFile><br> 44 <GraphicsContentCtr><br> 45 <Models><br> 46 <SkeletalModel><br> 47 <Meshes><br> 48 <Mesh><br> 49 <SeparateShapeReference><br> 50 <MaterialReference><br> 51 : 52 <Materials><br> 53 <MaterialReference><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 <Mesh> 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 <Mesh> element. 67</p> 68