Mesh

Uses XML Tag mm:mesh and contains…

Tag Type Description
name string A name is required.
[center] float[3] Local center position. If not supplied, it will be calculated.
[minmax] float[6] Local min/max boundaries. If not supplied, it will be calculated.
[cullradius] float Radius for culling purposes. If not supplied, it will be calculated.
[position] float[3] World position. If not supplied, it will be located at the world’s origin.
[rotation] float[3] World rotation. If not supplied, it will be aligned to the world’s axes.
[scale] float[3] Local scale. Default is [1,1,1], if not supplied.
[surfaces] mm:surface[?] List of attached surfaces. If not supplied, mesh will be invisible.
[materials] mm:material[?] List of attached materials. Material count must be equal to or greater than the surface count.

In the example below, the material refers to an existing source and modifies its default textures.

Example:

<mm:mesh>
   <name>MyMesh</name>
   <minmax>-30.00,-30.02,0.00,30.00,30.00,7.14</minmax>
   <surfaces>
      <mm:surface>[...]</mm:surface>
   </surfaces>
   <materials>
      <mm:material src_proto=“Mana::Material/ExistingMaterial”>
         <textures>
            <mm:texture uri=“Mana::Textures:SubTexA.tga”/>
            <mm:texture uri=“Mana::Textures:SubTexB.tga”/>
         </textures>
      </mm:material>
   </materials>
</mm:mesh>