1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3<head>
4<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5<meta http-equiv="Content-Style-Type" content="text/css" />
6<link rel="stylesheet" href="css/manpage.css" type="text/css" />
7<title>Export Plug-In</title>
8</head>
9<body>
10<h1>Export Plug-In</h1>
11<p>This chapter describes the use and features of the Export plug-in.</p>
12<p>
13<a href="#function">Export Plug-In Features</a><br /> <a href="#usage">Method of Use</a><br /> <a href="#maxscript">Executing from MAXScript</a><br /> <a href="#error_warning">Errors and Warnings</a><br />
14</p>
15
16<h2><a name="function">Export Plug-In Features</a></h2>
17<p>The Export plug-in includes a feature for outputting intermediate files to a specified folder.</p>
18
19
20
21<h2><a name="usage">Using the Tool</a></h2>
22<p>To output data for particular nodes only (including lower nodes in the hierarchy), select the nodes you want to output. When outputting the entire scene, it is not necessary to select nodes.</p>
23
24<p>To display the Options window, run NW4C Export with Setting.</p>
25
26
27<p>
28To output the intermediate file, specify the appropriate options and click <strong>Export</strong> or <strong>Apply</strong>. Unlike <strong>Export</strong>, <strong>Apply</strong> does not close the Options window after output. The option settings that exist at the time of output are automatically recorded as the current options.
29</p>
30
31
32
33
34
35<h3><a name="options">Option Settings</a></h3>
36
37<h4><a name="options_output">Output Options</a></h4>
38<p>Options related to outputting intermediate files.</p>
39<center><img src="images/OutputOpt1.gif" />
40</center>
41<ul>
42<li><strong>Export Target</strong>
43  <p>Sets the output target.<br /> Specify <B>All</B> to export the entire scene, or <B>Selection</B> to export only the selected nodes and any lower nodes in the hierarchy.</p>
44  </li>
45<li><strong>File name</strong>
46  <p>Specify the name of intermediate file. (Omit the file extension.) <br /> Clicking the <B>Scene</B> button to the right sets the current scene name. Clicking the <B>Node</B> button sets the name of the selected node (the topmost node in the selected hierarchy).
47
48  </p>
49</li>
50<li><strong>File path</strong>
51  <p>Select this option when outputting an intermediate file to a particular folder. <br /> Texture files are output to the <CODE>Textures</CODE> folder located inside the folder specified by <B>File path</B>. <br />
52  </p>
53</li>
54
55<li><strong>Use Creative Studio</strong>
56  <p>Select this option when transferring intermediate file data to CreativeStudio. You cannot select both <B>File path</B> and <B>Use Creative Studio</B> at the same time. <br /> For details on using Creative Studio, see the <I>NintendoWare for CTR CreativeStudio </I>manual.
57  </p>
58</li>
59
60<li><strong>Merge cmdl</strong>
61  <p>
62  Turn this option on and specify the path of a CMDL file to merge that specified CMDL file.
63  </p>
64  <p>The following information gets merged:
65    <ul>
66      <li>The general material information</li>
67      <li>The mesh information (Visibility, Priority)</li>
68      <li>The model information (Visibility, User data, Animation member settings)</li>
69      <li>Dependent files (Textures, lookup tables, etc. These are copied to the Output Folder.)</li>
70    </ul>
71  </p>
72</li>
73
74</ul>
75
76<h4><a name="options_general">General Options</a></h4>
77<p>These are general options available for intermediate files.</p>
78<center><img src="images/GeneralOpt1.gif">
79</center>
80<ul>
81<li><strong>Magnify</strong>
82  <p>Specifies the magnification ratio by which the model's vertex coordinates and Translate value should be multiplied.</p>
83  </li>
84<li><strong>Use FigureMode and SkinPose</strong>
85  <p>The physique and default skin pose are determined based on the biped figure mode and bone skin pose. Sometimes turning this option on will correctly output data for which skinning cannot be correctly output otherwise.
86  </p>
87  <p>
88  When using this option, you must set bones used by the physique and skin and a skin pose for all associated parents. Even if biped and bone are combined, be absolutely sure to set a skin pose for bones.
89  </p>
90  </li>
91<li><strong>Start / End Frame</strong>
92  <p>Specifies the range of animation to output (that is, the start frame and end frame).</p>
93  <p>
94  Selecting <strong>All</strong> outputs the full range of animation in 3ds Max (Animation Start/End).<br /> Selecting <B>Range</B> allows the start frame and end frame to be entered as numeric values. <B>Note:</B> If the entered start frame is smaller than the Animation Start value in 3ds Max, this Animation Start value will be used as the starting frame. Similarly, if the entered end frame is larger than the Animation End value in 3ds Max, this Animation End value will be used as the ending frame.<br />
95  </p>
96  <p>If attributes are being animated, the start frame value will be output to the CMDL file.</p>
97  </li>
98</ul>
99
100<h4><a name="options_file_selection">Output File Selection</a></h4>
101<p>This option specifies the type of intermediate file to be output.</p>
102<center><img src="images/OutFileSel1.gif">
103</center>
104<p>The value of <CODE>HasSkinningMatrix</CODE> in the intermediate file will differ depending on whether the CMDL file and the CSKLA file are output at the same time, or only the CSKLA file is output.  This is because vertex processing is omitted when the CMDL file is not output in order to shorten the processing time. Nothing is affected by the differing values for <CODE>HasSkinningMatrix</CODE>.
105</p>
106<br />
107
108<br />
109
110
111<h4><a name="options_optimization">Optimization Options</a></h4>
112<p>This allows data optimization while outputting data from 3ds Max to intermediate files. Options for this optimization process are set here.</p>
113
114<center><img src="images/OptimizeOpt1.gif">
115</center><br />
116
117
118<ul>
119
120<li id="options_compress_node"><strong>Compress Node</strong>
121
122<p>Specifies the node compression mode to use for the entire model. The load due to both the matrix computations and the amount of memory used can be reduced by lowering the number of nodes. <br> What gets compressed are the nodes (bones) output to the intermediate file; the data in 3ds Max is not changed.<BR> Currently, node compression is supported for CMDL files only.<BR>
123
124<table class="list_table"><tbody>
125<tr><td>Mode</td><td>Description</td></tr>
126<tr>
127<td valign="top"><strong>None</strong></td>
128<td valign="top">Do not compress nodes. The hierarchical structure in 3ds Max is output as-is without any compression.</td>
129</tr>
130<tr>
131
132<td valign="top" nowrap="nowrap"><strong>Cull Useless Node</strong></td>
133<td valign="top">Deletes the nodes that are not required to display the model located at the end of the hierarchical structure and then exports. This is useful for models that use skinning.</td>
134</tr>
135<tr>
136<td valign="top" nowrap="nowrap"><strong>Cull Uninfluential Node</strong></td>
137<td valign="top">In addition to the processing performed when <B>Cull Useless Node</B> is specified, nodes whose matrices can be merged are merged and output. <br> Generally, the number of nodes are reduced even more than with <B>Cull Useless Node</B>, but the following limit is placed on the Scale value. <br> <B>An uneven Scale value (a scale value where X, Y, and Z are not the same) must not be set for nodes that have children.</B><br> A model may not be displayed correctly if compression is performed on a node that does not observe this limitation or on any children of such a node. All frames must respect the limitation described above when a scale value is being animated.</td>
138
139</tr>
140<tr>
141<td valign="top"><strong>Unite Compressible Node</strong></td>
142<td valign="top">Nodes for which the uncompressible flag has been set are gathered.<br> Do not select this mode when using skinning.</td>
143</tr>
144<tr>
145<td valign="top"><strong>Unite All Node</strong></td>
146<td valign="top">Gathers nodes and outputs all polygons using global coordinates. (Name of the root node is used for node name.) Do not select this mode when using skinning.</td>
147
148</tr>
149
150</tbody></table>
151<br>
152<table class="list_table"><tbody><tr><td>
153Nodes for which the compression disable flag has been set using the <a href="NW4C_SetNoCompressNode.html">NW4C Set No Compress Node plug-in</a> are not compressed, even if <B>Cull Useless Node</B> or <B>Cull Uninfluential Node</B> has been selected. <CODE>Unite Below Node</CODE> has been deprecated.
154</td></tr></tbody></table>
155
156<br />
157</li>
158
159<li id="options_compress_mat"><strong>Compress Material</strong>
160<p>Specifies that the material be compressed. <br> No compression is performed if <B>None</B> is specified. If <B>Compress Same Material</B> is specified, materials that have the same attribute are compressed and gathered for output. <br>
161<table class="list_table"><tbody><tr><td>Even if Compress Same Material has been specified, materials will not be compressed if Compress has been set to <strong>Don’t compress</strong> by the <a href="NW4C_SetMaterialAttr.html">NW4C Set Material Attribute plug-in (NW4C Set Material Attribute)</a>.</td></tr></tbody></table>
162</p>
163</li>
164
165<li><strong>Optimize Primitive</strong>
166<p>Optimize Primitive optimizes polygon primitives and then outputs. This reduces the drawing process load compared to when set to OFF.</p>
167</li>
168
169<li><strong>Disable SkeletalModel-Simplification</strong>
170<p>Automatic conversion from a skeletal model (skin model) to a model is not performed if set to ON.<BR> Use this option when you do not want to change to model format such as when using a skeletal animation.
171</p>
172<p>
173	<strong>Automatic conversion from a skeletal model (or skin model) to a model</strong><br>
174</p>
175<p>
176	The exporter converts skeletal models into models when the conditions are met.
177</p>
178<ul>
179	<li>Benefits
180        <p>Models have a simpler structure than skeletal models and can be handled more efficiently by the actual hardware.</p>
181	</li>
182	<li>Conversion conditions
183		<p>The transform information for all bones is an identity transform (Rotate and Translate are 0, Scale is 1).</p>
184		<p>It is applied to simple single bone items located at the origin or terrain models for which <B>Unite All Node</B> has been selected.</p>
185		<p></p>
186	</li>
187	<li>Notes
188		<p><strong>Skeleton information is destroyed, making it impossible to use skeletal animation and billboarding.</strong></p>
189	</li>
190</ul>
191</li>
192</ul>
193
194<h4><a name="options_quantization">Quantization Options</a></h4>
195<p>This option is for setting the degree of precision to use for vertex data when converting to binary data. <br /> If a fixed-point number is used, the amount of data is less than when a floating-point number is used, but precision is lowered.</p>
196<center><img src="images/QuantizeOpt1.gif">
197</center>
198
199<ul>
200<li><strong>Position</strong>
201  <p>Specifies the precision to use for vertex coordinates.</p>
202  <p>
203  Setting <B>Float</B> stores the position as a 32-bit floating-point number. <br /> Setting <B>Short</B> stores the position as a 16-bit integer number. <br /> Setting <B>Byte</B> stores the position as an 8-bit integer number. <br>
204  </p>
205  </li>
206
207<li><strong>Normal</strong>
208  <p>Specifies the precision to use for normal vector.</p>
209  <p>
210  Setting <B>Float</B> stores the position as a 32-bit floating-point number. <br /> Setting <B>Short</B> stores the position as a 16-bit integer number. <br /> Setting <B>Byte</B> stores the position as an 8-bit integer number. <br>
211  </p>
212  </li>
213
214<li><strong>Tex Coord</strong>
215  <p>Specifies the precision to use for texture coordinates.</p>
216  <p>
217  Setting <B>Float</B> stores the position as a 32-bit floating-point number. <br /> Setting <B>Short</B> stores the position as a 16-bit integer number. <br /> Setting <B>Byte</B> stores the position as an 8-bit integer number. <br>
218  </p>
219</li>
220
221</ul>
222
223<h4><a name="options_model">Model Options</a></h4>
224<p>These are model-related options.</p>
225<center><img src="images/ModelOpt1.gif">
226</center>
227<br />
228<ul>
229
230<li><strong>Mesh Visibility Mode</strong> Selects the method for optimizing visibility animation. <br />
231<table class="list_table"><tbody>
232<tr>
233    <td>Mode</td>
234    <td>Description</td></tr>
235<tr>
236    <td valign="top"><strong>Bind By Index</strong></td>
237    <td valign="top">Applies visibility animations based on numbers. The visibility animations may not be applied correctly if node compression has been conducted.</td>
238</tr>
239<tr>
240    <td nowrap="nowrap" valign="top"><strong>Bind By Name</strong></td>
241    <td valign="top">Applies visibility animations based on names.</td>
242</tr>
243</tbody></table>
244
245<table class="list_table"><tbody>
246<tr><td>If you need to maintain compatibility with older intermediate files, specify <strong>Bind By Index</strong>. If compatibility is not required, specify <strong>Bind By Name</strong>.</td></tr>
247</tbody></table>
248</li>
249
250<li><strong>Non-Uniform Scale</strong><br /><br />
251  <p>Enabling this option allows correct lighting of models whose XYZ scaling is non-uniform, but increases the drawing process load. Because the maximum number of matrix palettes goes down, the drawing process load ultimately increases when using skin models with many nodes that are being influenced.<BR> If disabled, the rendering process load goes down, but models whose XYZ scaling is non-uniform cannot be lighted correctly.
252</p>
253  </li>
254<li><strong>Max Reserved Uniform Registers</strong>
255  <p>This setting specifies the number of uniform registers used for vertex lighting and user uniform. The setting value ranges from 0 to 57 (0 to 54 if Non-Uniform Scale is ON).<BR>
256  <table class="list_table"><tbody><tr><td>Because the number of uniform registers is limited, they are shared by skinning, vertex lighting and user uniforms. The number of uniform registers that can be used for skinning is therefore determined based on the number of lights used for vertex lighting and the number of user uniforms.<BR> The larger the value specified, the lower the number of uniform registers available for skinning and the higher the load associated with drawing skin models.<BR> <br>The specific value to set is given by <strong>Number of vertex lights × 6 + Number of user uniforms</strong>. <strong>Vertex lights are not included in the case of hemispherical lighting.</strong><br>
257
258  Check with the lead project programmer for the number of vertex lights and user uniforms.<br> Set to 0 when not using vertex lighting and user uniforms.</td></tr></tbody></table>
259  </p></li>
260
261
262</ul>
263
264<h4><a name="options_anim">Animation Options</a></h4>
265<p>These are animation-related options.</p>
266<center><img src="images/AnimOpt1.gif">
267</center>
268<ul>
269<li><strong>Frame Precision</strong>
270  <p>Specifies frame precision when animation curve data is automatically created from baked data. <br /> If <B>1.0</B> is set, data is baked at the integer frame level. <br /> If <strong>0.5</strong> is set, data is baked at the 0.5 fractional frame level. <br /> If <strong>0.2</strong> is set, data is baked at the 0.2 fractional frame level. <br /> If <strong>0.1</strong> is set, data is baked at the 0.1 fractional frame level. <br /> Increasing precision can more accurately reproduce animations that vary discontinuously at a fractional frame timing, but the amount of time required for output increases.
271</p>
272  </li>
273<li><strong>Loop</strong>
274  <p>If this option is selected, data for loop playback is output. <br /> If this option is cleared, data for one-time playback is output. <br /> Animation curve data created using this option varies when animation curve data is created automatically from baked data.
275</li>
276<li><strong>Frame Format</strong>
277  <p>
278  If <strong>Key Frame</strong> is selected, skeletal animations are stored in key format.<br> If <strong>Full Frame</strong> is selected, skeletal animations are stored in frame format.<br> The playback process load is lower with frame format than key format, but the amount of data is greater than usual.
279  </p>
280</li>
281<li><strong>Scale Quantize Quality</strong><br> <strong>Rotate Quantize Quality</strong><br> <strong>Translate Quantize Quality</strong><br>
282	<p>For skeletal animation, the quantization precision can be set to one of 10 levels, ranging from 0 to 9.<br>
283		<ul>
284			<li>When 0 is specified, the animation precision is lowest but the amount of data is small.</li>
285			<li>When 9 is specified, no quantization is conducted so precision is the highest, but the amount of data is large.</li>
286		</ul>
287	</p>
288	<p>The quantization setting only influences the content of the binary file.<br> The animation curve data output to the intermediate file is not affected.<br> You thus need to be remember that <B>the result cannot be evaluated until it is checked on the actual hardware viewer</B>.<br>
289	</p>
290</li>
291	<p><strong>Acceptable Tolerance Values for Scale / Translate</strong></p>
292	 <table class="table">
293      <thead>
294        <tr>
295          <th>Compression Quality</th>
296          <th>Acceptable Tolerance Values</th>
297          <th>Comments</th>
298        </tr>
299      </thead>
300      <tbody class="center">
301        <tr>
302          <td>0</td>
303          <td>∞</td>
304          <td>Always quantize to minimum volume format.</td>
305        </tr>
306        <tr>
307          <td>1</td>
308          <td>0.40</td>
309          <td>--</td>
310        </tr>
311        <tr>
312          <td>2</td>
313          <td>0.30</td>
314          <td>--</td>
315        </tr>
316        <tr>
317          <td>3</td>
318          <td>0.20</td>
319          <td>--</td>
320        </tr>
321        <tr>
322          <td>4</td>
323          <td>0.10</td>
324          <td>Recommended value for start of adjustment</td>
325        </tr>
326        <tr>
327          <td>5</td>
328          <td>0.06</td>
329          <td>--</td>
330        </tr>
331        <tr>
332          <td>6</td>
333          <td>0.03</td>
334          <td>--</td>
335        </tr>
336        <tr>
337          <td>7</td>
338          <td>0.01</td>
339          <td>--</td>
340        </tr>
341        <tr>
342          <td>8</td>
343          <td>0.005</td>
344          <td>--</td>
345        </tr>
346        <tr>
347          <td>9</td>
348          <td>0</td>
349          <td>Never quantize.</td>
350        </tr>
351      </tbody>
352    </table>
353    <ul>
354	<p>
355	The acceptable tolerance value is set the same for the NW4R exporter.
356	</p>
357	<p>
358	Acceptable tolerance for Scale/Translate is determined in proportion to the maximum amplitude of the curve (the difference between the maximum and minimum values).</br> In other words, the greater the variation in values for an animation, the easier it is to tolerate large errors in actual values.
359	</p>  
360    </ul>
361    <p><strong>Acceptable Tolerance Values for Rotate</strong></p>
362    <table class="table">
363      <thead>
364        <tr>
365          <th>Compression Quality</th>
366          <th>Acceptable Tolerance Values</th>
367          <th>NW4R conversion</th>
368          <th>Comments</th>
369        </tr>
370      </thead>
371      <tbody class="center">
372        <tr>
373          <td>0</td>
374          <td>∞</td>
375          <td>∞</td>
376          <td>Always quantize to minimum volume format.</td>
377        </tr>
378        <tr>
379          <td>1</td>
380          <td>0.50</td>
381          <td>0.025</td>
382          <td>--</td>
383        </tr>
384        <tr>
385          <td>2</td>
386          <td>0.40</td>
387          <td>0.020</td>
388          <td>--</td>
389        </tr>
390        <tr>
391          <td>3</td>
392          <td>0.30</td>
393          <td>0.015</td>
394          <td>--</td>
395        </tr>
396        <tr>
397          <td>4</td>
398          <td>0.20</td>
399          <td>0.010</td>
400          <td>Recommended value for start of adjustment</td>
401        </tr>
402        <tr>
403          <td>5</td>
404          <td>0.10</td>
405          <td>0.005</td>
406          <td>--</td>
407        </tr>
408        <tr>
409          <td>6</td>
410          <td>0.05</td>
411          <td>0.0025</td>
412          <td>--</td>
413        </tr>
414        <tr>
415          <td>7</td>
416          <td>0.01</td>
417          <td>0.0005</td>
418          <td>--</td>
419        </tr>
420        <tr>
421          <td>8</td>
422          <td>0.005</td>
423          <td>0.00025</td>
424          <td>--</td>
425        </tr>
426        <tr>
427          <td>9</td>
428          <td>0</td>
429          <td>0</td>
430          <td>Never quantize.</td>
431        </tr>
432      </tbody>
433    </table>
434    <ul>
435		<p>
436			For Rotate, the acceptable tolerance is determined not in terms of proportion, but by actual values. </br> It takes the value specified by the NW4R exporter. This is done so the setting is the same as for NW4R conversion,
437		</p>
438    </ul>
439    <p><strong><font color=#ff0000>Note: The settings values shown in the table may change in the future.</font></strong></p>
440
441</ul>
442
443<h4><a name="options_tolerance">Tolerance Options</a></h4>
444<p>This option specifies the allowable range of errors when animation curve data is optimized.</p>
445<center><img src="images/ToleranceOpt1.gif">
446</center>
447<br />
448<p>If the maximum difference between the start frame value and the value used for every other frame remains below the allowable value specified here, the animation is assumed to be fixed and output is made using only the value for the start frame.</p>
449<p>When animation curve data is created automatically from baked data, a key for each frame (in the units specified by <B>Frame Precision</B>) is created and the key for the <B>below tolerance</B> value specified here is deleted by the <B>maximum differential value when performing Hermite interpolation</B>. The smaller the allowable value for differentials, the greater the animation precision; however, as the number of keys grows larger, the amount of animation curve data also increases.</p>
450<ul>
451<li><B>Node Translate</B>, <B>Node Rotate</B>, <B>Node Scale</B>
452  <p>This is the allowable value for errors related to the Translate, Rotate, and Scale values used for character animation. <br /> <B>Node Rotate</B> is specified in units of degree. <br /> <B>Node Translate</B> is the allowable value for errors related to the <B>value prior to multiplying by Magnify</B>.</p>
453  </li>
454</ul>
455<ul>
456<li><B>Texture Translate</B>, <B>Texture Rotate</B>, <B>Texture Scale</B>
457  <p>This is the allowable value for errors related to the <B>Translate</B>, <B>Rotate</B>, and <B>Scale</B> values used for texture and SRT animation. <br /> <B>Texture Rotate</B> is specified in degrees.<br />
458  </li>
459</ul>
460<ul>
461  <li><strong>Color</strong>
462  <p>This is the allowable value for errors in each color value and alpha value of a color or scene animation. <br /> This value is the allowable value for errors for color values between 0 and 1 in 3ds Max <strong>after they have been multiplied by 255</strong>.
463  </li>
464</ul>
465
466<h3><a name="manage_options">Managing Option Settings</a></h3>
467<p>To input or output the option settings as a C3ES (CTR 3D Export Settings) file, use the <B>NW4C Settings</B> menu item in the Options window.</p>
468<center><img src="images/LoadSaveSettings.gif">
469</center>
470<br />
471
472<h4><a name="scene_settings">Saving Option Settings for a Scene</a></h4>
473<p>
474    If <B>Save / Load Scene Settings</B> is selected (the default), the option settings used the last time an intermediate file was output will be saved as scene data when a scene is saved. When the scene is opened, the option settings that were saved in the scene data are loaded. The current option settings remain if option settings were not saved with the scene data. Furthermore, an option setting is loaded when a scene for which option settings have been saved is imported.
475</p>
476<p>
477    If <strong>Save / Load Scene Settings</strong> is cleared, no option settings are saved with the scene. Furthermore, option settings are not loaded when scene data is opened.<br />
478</p>
479<p>
480    Regardless of whether <strong>Save/Load Scene Settings</strong> is on or off, option settings at the time an intermediate file was last output are saved as a default settings file.<br /> In addition, this default settings file is loaded at time of next startup.<BR> The default settings file is saved under the name nw4cmax.c3es in the plug-in settings folder C:\Documents and Settings\[user_name]\Local Settings\Application Data\Autodesk\3dsmax\[max_version]\jpn\plugcfg.
481</p>
482<p>
483    To delete the option settings saved in the scene data, click <B>Reset Scene Settings</B>.
484</p>
485<p>
486    To delete the option settings that were saved in the scene data, click <B>Delete Scene Settings</B>. However, this only works if you clear <B>Save / Load Scene Settings</B> and then save the scene data. If you do not save the scene data, the option settings are retained.
487</p>
488
489<h4><a name="c3es_file">Loading/Saving Option Settings Using C3ES Files</a></h4>
490<p>
491To output option settings to a C3ES file, click <B>Save Settings to r3es File</B>. Option settings will be output when an output file name is specified on the file selection window. If the extension of the output file is other than .c3es, .c3es will be added automatically.
492</p>
493<p>
494Click <B>Load Settings from c3es File</B> to enter option settings from a C3ES file. Option settings will be input when an input file name is specified on the file selection window.
495</p>
496<br />
497
498
499
500
501
502<h2><a name="error_warning">Errors and Warnings</a></h2>
503
504<h3><a name="erroroutput">Error Verification</a></h3>
505<p>If an error or warning occurs during export, it will be output to the listener window.</p>
506<p>Some errors are also displayed in a message box.</p>
507<br />
508
509<h3><a name="errors">Error Types and Handling Errors</a></h3>
510<p>The error list as currently implemented is presented below in alphabetical order.</p>
511<p>When an error is detected, the Export process halts.</p>
512<br />
513
514<ul>
515<li><strong>CreativeStudio cannot be found</strong>
516<p>CreativeStudio has not been correctly installed.<br> CreativeStudio must be installed in the folder <CODE>tools\CreativeStudio</CODE>, located beneath the folder defined by the environment variable <CODE>NW4C_ROOT</CODE>. If the environment variable <strong>NW4C_ROOT</strong> is not defined correctly, correct the definition and restart 3ds Max.</p>
517</li>
518<li><strong>Can't open file</strong>
519<p>This error occurs when the file does not exist, cannot be opened, or cannot be overwritten.</p>
520</li>
521
522<li><strong>Failed to start CreativeStudio</strong>
523<p>CreativeStudio has failed to start. Be sure to check CreativeStudio error output.</p>
524</li>
525
526
527<li><strong>Influence object is not outputted</strong>
528<p>Nodes affected by skinning are not output. This error arises when Export Target is set as selection and nodes affected by skinning are not selected, or when no envelope has been assigned to a vertex even though a skinning modifier and Physique modifier are being applied.
529</p>
530</li>
531
532
533<li><strong>Path of cmdl file to merge is wrong</strong>
534<p>This error occurs if the path for the CMDL file to be merged is left blank or if the filename contains illegal characters.</p>
535</li>
536<li><strong>No effective node</strong>
537<p>There is no active node to be output.</p>
538</li>
539
540<li><strong>No output file</strong>
541<p>This error occurs when the output specifications for the intermediate file are all cleared, or when only the output specifications for texture data are selected but there is no texture to output.</p>
542</li>
543
544<li><strong>Output File Name is wrong</strong>
545<p>This error occurs if the Export option <CODE>Output File Name</CODE> is left blank or if the filename contains illegal characters.</p>
546</li>
547
548<li><strong>Output Folder is wrong</strong>
549<p>This error occurs if the Export option <B>Output Folder</B> is left blank or if the filename contains illegal characters.</p>
550</li>
551
552<li><strong>Same user attribute exists</strong>
553<p>More than one vertex color exists for the user vertex attribute of the given number. For example, this error would occur if there were vertex colors with the names <I>nw4cUser0</I> and <I>nw4cUser0_b</I> for the same single object. Either delete the unnecessary vertex colors or change their names.</p>
554</li>
555
556<li><strong>Texture size is wrong</strong>
557<p>A texture has a size whose height and width cannot be handled by CTR. Height and width must both be set to a power of two equal to or greater than 8 and equal to or less than 1024.</p>
558</li>
559
560
561<li><strong>Polygon bone size is over</strong>
562<p>The number of bones used by a polygon exceeds the maximum number of bones that can be referenced by a primitive.<BR> If an error occurs, adjust the <a href="export.html#options_model">Max Reserved Uniform Registers option</a> to decrease the number of uniform registers being reserved.
563</p></li>
564
565<li><strong>Max Reserved Uniform Registers is wrong</strong>
566<p>An out-of-bounds value has been specified for the <a href="export.html#options_model">Max Reserved Uniform Registers option</a>.<br> The setting value must range from 0 to 57 (from 0 to 54 when the <a href="export.html#options_model">Non-Uniform Scale option</a> is ON.
567</p></li>
568
569</ul>
570<br />
571
572<h3><a name="warnings">Warning Types and Handling Warnings</a></h3>
573<p>The Warning List, as it is currently implemented, is presented below in alphabetical order.</p>
574<p>The Export process will continue, even if a warning is detected.</p>
575<br />
576
577<ul>
578
579<li><strong>Custom Animation Range was trimmed</strong>
580<p>The specified output range exceeds the playback range of 3ds Max. The output range is changed to fit within the playback range of 3ds Max.</p>
581</li>
582
583<li><strong>Node has no material</strong>
584<p>No material has been set for a node being output. A dummy material is output.</p>
585</li>
586
587<li><strong>Texture file doesn't exist.</strong>
588<p>The allocated texture does not exist. If a path is included in the file name for the texture allocated for a material, the image saved in the path is accessed during output. This error occurs when no image exists on the path. Furthermore, if the texture file name does not include a path, images in the directory where the current max file exists are accessed.</p>
589</li>
590
591<li><strong>The number of composite textures is over 3</strong>
592<p>This error is issued if more than three textures are set for a material. Make sure the number of textures used by a material is three or less.</p>
593</li>
594
595<li><strong>Map channel does not exist</strong>
596<p>
597The channel <B>n</B> map is set in the objects for which a map channel <B>n</B> does not exist.<br /> Because normal output cannot occur in this state, output is performed by forcibly pasting the UV information for map channel 1.
598</p>
599</li>
600
601<li><strong>Material name is changed</strong>
602<p>A material name output to the intermediate file was changed because two or more materials had the same name.
603</li>
604
605<li><strong>Node name is changed</strong><br />
606<p>This warning occurs when two or more nodes have the same name, when illegal characters are included in a node name, or when the node name to be output to the intermediate file is changed.</p>
607</li>
608
609<li><strong>Texture name is changed</strong>
610<p>The texture name contains illegal characters. Illegal characters are converted to an underscore (<CODE>_</CODE>) and output as such.</p>
611</li>
612
613<li><strong>There are multiple texture files with the same name</strong>
614<p>There are two or more texture files with the same filename as the export target, but in different folders or with a different extension. Make sure that there is only one CTEX file to be output.</p>
615</li>
616
617<li><strong>Texture type is not supported</strong>
618<p>The only texture maps that can be used are mipmaps, normal maps and composite maps.</p>
619</li>
620
621<li><strong>Zero normal exists</strong>
622<p>A normal vector that has length 0 exists. Lighting effects will not be carried out normally. Fix this using some means like the <CODE>Edit normal</CODE> modifier or a smoothing group.</p>
623</li>
624
625
626</ul>
627
628<p><br /><br /><br /></p>
629<hr><p>CONFIDENTIAL</p></body>
630</html>