Defining Textures

Overview

This page describes the elements used to define textures. Textures are referenced either from the material definition in the .cmdl file, or from the texture pattern animation definition in the .cmata file. The <ImageTextureCtr> and <CubeTextureCtr> elements are defined inside the <Textures> element.

Image Texture

Defines a texture comprising a single pixel image.

XML Hierarchy

<NintendoWareIntermediateFile>
<GraphicsContentCtr>
<Textures>
<ImageTextureCtr>
<Images>
<PixelBasedImageCtr>

The size and format of the image are defined in the <ImageTextureCtr> attribute. A Base64-encoded pixel image is defined in <PixelBasedImageCtr>.

Cube Texture

Defines a texture comprising a set of 6 pixel images assigned to the +X, -X, +Y, -Y, +Z, and -Z directions.

<NintendoWareIntermediateFile>
<GraphicsContentCtr>
<Textures>
<CubeTextureCtr>
<NegativeXImages>
<NegativeXImageCtr>
<NegativeYImages>
<NegativeYImagesCtr>
<NegativeZImages>
<NegativeZImagesCtr>
<PositiveXImages>
<PositiveXImagesCtr>
<PositiveYImages>
<PositiveYImagesCtr>
<PositiveZImages>
<PositiveZImagesCtr>

The size and format of the images are defined in the <CubeTextureCtr> attribute. Base64-encoded pixel images are defined between <NegativeXImageCtr> and <PositiveZImages>.


CONFIDENTIAL