1<html>
2<head>
3<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
4<meta http-equiv="Content-Style-Type" content="text/css">
5<link rel="stylesheet" href="css/manpage.css" type="text/css">
6<title>TGA Format Plug-in</title>
7</head>
8<body>
9
10<h2 id="tga_format">TGA Format Plug-in</h2>
11<p>The TGA plug-in saves and loads Targa (TGA) files appended with additional information used for NintendoWare. The additional information includes format, number of mipmap levels, texture data, and it is reflected in the intermediate file when it is output from the 3DCG tool.</p>
12<p>
13<a href="#tga_save">Saving</a><br> <a href="#tga_load">Loading</a><br> <a href="#tga_notes">Notes</a><br>
14</p>
15
16<h3 id="tga_save">Saving</h3>
17<p>To save a TGA file that includes additional information for NintendoWare, select <B>Save as...</B> on the <B>File</B> menu and set the file format to <CODE>NW4C_Tga</CODE>. Clicking the <B>Save</B> button displays a dialog box.</p>
18<p><img src="images/TgaOpt1.gif" border="0"></p>
19<p>2D is displayed if a 2D texture is set for <strong>Type</strong> and a <strong>Cube Map</strong> is displayed if <a href="cube_map.html">cube map</a> is set.<br> The amount of texel data saved under the selected format is displayed in <strong>Data Size</strong>. <br> The last format used when saving with <CODE>NW4C_Tga</CODE> is displayed for <strong>Last Format</strong>. <br> To save, set the desired options and click <B>OK</B>.</p>
20
21<h4 id="opts_tex_fmt">Format Options</h4>
22<p>Specifies the current texture format.<br> The format appropriate for the given file type is selected by default. <br> However, once a file has been saved using <CODE>NW4C_Tga</CODE>, the format last used for saving will be selected if it is possible to save in that format. <br> In addition, if a color depth filter is applied, the format specified when the filter was applied will be selected. If an ETC filter is being applied, ETC1 or ETC1_A4 is selected.<BR> The conditions under which each format can be selected are given below:</p>
23<table class="arguments">
24  <tbody>
25<tr>
26<td nowrap>Format Name</td>
27<td>Conditions Allowing Selection</td>
28</tr>
29<tr>
30      <td valign="top">L4<br>L8<br>LA4<br>LA8</td>
31      <td valign="top">Always selectable if the image mode is grayscale. <br> These can be selected the image mode is other than grayscale and the color used by the image is all R=G=B.</td>
32    </tr>
33<tr>
34      <td valign="top">A4<br>A8<br>HILO8<br>RGB565<br>RGB5_A1<br>RGBA4<br>RGBA8</td>
35      <td valign="top">Always selectable.</td>
36    </tr>
37<tr>
38      <td valign="top">RGB8</td>
39      <td valign="top">Selectable as long as it is not a mipmap.</td>
40    </tr>
41<tr>
42      <td valign="top">ETC1</td>
43      <td valign="top">Selectable if the height and width are 16 or higher and an ETC filter is not being applied with alpha present. (In the case of a mipmap image, this is determined using the width and height of the smallest size level.)</td>
44    </tr>
45<tr>
46      <td valign="top">ETC1_A4</td>
47      <td valign="top">Selected if an ETC filter is not being applied in a state without alpha.</td>
48    </tr>
49  </tbody>
50</table>
51
52<h4 id="opts_mipmap">MipMap Options</h4>
53<p>Select <strong>No MipMap</strong> if not using mipmaps.<br> Select <strong>Generate MipMap</strong> and specify the number of levels, to automatically generate mipmap data and output it as additional information. If the number of levels is set to <strong>All</strong>, a mimpap up to the largest level for the image size is created. If the format is ETC1, a number of levels less than 16 cannot be selected for the width and height. Images are fixed using bilinear compression.<br> If a mipmap image is created using the <a href="NW4C_CreateMipMap.html">Create Mipmap Plug-in</a>, the <strong>Use MipMap</strong> option is automatically selected. (No MipMap and Generate MipMap cannot be selected.)<br> As long as the image has not been manually adjusted after applying the <a href="NW4C_ETC.html">ETC filter</a>, this option cannot be changed. <br> If the For LayoutEditor option is ON, Generate MipMap cannot be selected.</p>
54
55<h4 id="opts_etc">ETC Encoding Option</h4>
56<p>Specifies the compression method if the format is ETC1 or ETC1_A4.<BR> As long as the image has not been manually adjusted after applying the ETC filter, this option cannot be changed. <br> <strong>Fast</strong>, <strong>Medium</strong>, and <strong>Slow</strong> indicate the calculation speed for compression. The slower the calculation speed, the better the image quality.<BR> Methods that include <strong>Perceptual</strong> compress so the error is smallest for the green (G) component, which is the most easily detectable component by the human eye. We recommend a method that include Perceptual when dealing with normal map textures.<br> Regardless of the compression method selected, the amount of data after compression is the same.</p>
57
58<h4 id="opts_layout">For LayoutEditor Option</h4>
59<p>Set this option to ON when saving TGA files for NW4C LayoutEditor.<br> If the width and height of the image are not powers of two equal to or greater than eight, turning this option ON, extends the pixel color at the right and left, and data for setting a size that is a power of two equal to or greater than eight is output as additional data.<BR> The proportion of overall texture data in the expanded area (padding area) and the amount of texture data in the padding area are displayed below the option.</p>
60<p>This option cannot be turned ON if the width and height of the image both have a size that is a power of two equal to or greater than eight, or if the image is a mipmap, or if no manual adjustments have been made to the image after applying an ETC filter.<BR> This option cannot be turned OFF if the image width or height is not a power of two equal to or greater than eight and it is not the size of a cube map.</p>
61<p>An error results when exporting intermediate files, if a TGA file for NW4C LayoutEditor is being used by the 3D CG tool.<BR> TGA files saved with this option OFF can be used with NW4C LayoutEditor. However, cube maps cannot be used.</p>
62
63<h4 id="opts_user_data">User Data Option</h4>
64<p>(Currently, unavailable.)<BR>Inputs text string user data. User data can be used freely by any game. User data is not output if nothing is input.</p>
65
66<h4 id="opts_preview">Preview Features</h4>
67<p>Setting <strong>Preview</strong> on the dialog box to ON will display the preview image. The preview image can be used to check how a texture saved under current options will appear when displayed on the Revolution console. However, the image's picture quality in Photoshop will not change even if it is saved. <br> The RGB display and alpha display can be changed using the <strong>RGB</strong> and <strong>Alpha</strong> checkboxes. If both RGB and Alpha are ON, the display appears redder the closer alpha is to 0.<BR> To zoom in or out on the preview image, click the [<B>+</B>] or [<B>-</B>] buttons or use the mouse wheel.</p>
68
69<h3 id="tga_load">Loading</h3>
70<p>To load a TGA file that includes additional information for NintendoWare, select <B>Open</B> on the <B>File</B> menu, select a file, and click <B>Open</B>. <br> It is also possible to load TGA files by dragging and dropping them on the Photoshop window.</p>
71
72<h3 id="tga_notes">Notes</h3>
73
74<h4 id="image_mode">Image Mode</h4>
75<p>Files that have an image mode other than grayscale, index color, or RGB color, and files that use 16 bits per channel cannot be saved using NW4C_Tga.</p>
76
77<h4 id="image_size">Image Size</h4>
78<p>Both the height and width of the texture image must be a power of two equal to or greater than 8 and equal to or less than 1024.<BR> However, if the texture is used by NW4C LayoutEditor, it can be saved even under a different size if the <a href="#opts_layout">For LayoutEditor option</a> is set to ON. When creating a mipmap image with Photoshop, be sure to refer to the description of the <a href="NW4C_CreateMipMap.html">Create Mipmap Plug-in</a>. When using cube maps, refer to <a href="cube_map.html">Creating Cube Maps</a>.</p>
79
80<h4 id="etc1_size">Size of ETC1 Format Image</h4>
81<p>
82When using the ETC1 format, the smaller of the vertical or horizontal dimensions must be 16 dots or greater. <BR> If the image is a mipmap, the size of each mipmap level must meet this restriction.<BR> The ETC1 format can be selected even if this restriction is not met, but a warning will be issued when the OK button is pressed and processing will not be executed.
83</p>
84
85<h4 id="alpha_channel">Alpha Channel</h4>
86<p>If there are two or more alpha channels, only the alpha channel at the top of the list in the channel window is saved. Note that the next time data is loaded, data for the other alpha channels will be lost.</p>
87<p>If the image mode is grayscale and the format is A8, the gray channel is saved as alpha if there is a background and no alpha channel.</p>
88<p>The alpha of tranparent parts is saved as 0, if the image mode is index color, there is a transparent color in the color table, and there is no alpha channel.</p>
89<p>In Photoshop, the brightness of alpha channel varies depending on the <a href="#color_settings">Color Setting</a>. However, when  <CODE>NW4C_Tga</CODE> is used, an 8-bit K value is saved as the alpha <strong>regardless of the color setting</strong>. (This value is 255 if K = 0%, 128 if K = 50%, and 0 if K = 100%. In Photoshop, K values are maintained as 8-bit values.)</p>
90
91<h4 id="layer">Layers</h4>
92<p>Layer information cannot be saved using NW4C_Tga. If an image that has more than one layer is saved as TW4C_Tga, all layers will be combined the next time it is loaded. </p>
93<p>For images with no background and for which only layers exist, the transparency of pixels when all layers are combined is saved as alpha if there is no alpha channel.</p>
94
95<h4 id="overwrite">Save and Overwrite</h4>
96<p>If a file is saved using <CODE>NW4C_Tga</CODE> and is later overwritten by selecting <B>Save</B> on the <B>File</B> menu, it will be saved in the same format as used at last save. If the same save format can be used, no dialog box is displayed. <br> If you want a dialog box to appear, select <B>Save as...</B> on the <B>File</B> menu. <br> The dialog box will be displayed even if Save was selected when it has become impossible to save in the same format as used at last save due to a change in the size of the image. Note that a format suitable for the file is selected at this time.</p>
97
98<h4 id="image_quality">Keeping Image Quality</h4>
99<p>The picture quality available under Photoshop is maintained when data is saved in any format. For example, the color depth of the alpha channel is not forced to 4 bits, but rather maintained at 8 bits, even if an image file is saved in RGBA4 format.<BR> If you want the same picture quality displayed under Photoshop as is displayed on the Wii console, use the Color Depth Filter Plug-in and the ETC Filter Plug-in.</p>
100
101<h4 id="color_settings">Color Settings</h4>
102<p>Although the brightness of grayscale and alpha channel in Photoshop varies, for some <a href="#color_settings">Color Settings</a> in Photoshop an 8-bit K value is saved as the intensity (alpha), <strong>regardless of the color setting</strong> used with <CODE>NW4C_Tga</CODE>. (This value is 255 if K = 0%, 128 if K = 50%, and 0 if K = 100%. In Photoshop, K values are maintained as 8-bit values.) Color settings are not saved in TGA files saved with <CODE>NW4C_Tga</CODE>.<br> If the color setting is set as given below, the brightness of grayscale and alpha channel in Photoshop is almost directly proportional to the K value.</p>
103<p>
104(Show advanced options)<br> RGB: sRGB IEC61966-2.1<br> Gray: sGray<br> Dithering: OFF</p>
105
106<p><br><br></p>
107<hr><p>CONFIDENTIAL</p></body>
108</html>