1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<html xmlns="http://www.w3.org/1999/xhtml" > 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">How to Use the Plug-in</a><br /> <a href="#error_warning">Errors and Warnings</a><br /> <a href="batch_export.html" target="main">Batch Export</a><br /> <a href="batch_export.html#export_batch_custum">Independent Batch Export Using Max Script</a><br /> 14</p> 15 16<h2><span id="function">Export Plug-In Features</span></h2> 17 18<p>The Export plug-in has the following features:</p> 19<ul> 20<li>Output intermediate files to specified folders</li> 21<li>Feature for transferring data to 3DEditor (Creative Studio)</li> 22<li>Output one or multiple scenes at once to intermediate files (<a href="batch_export.html">Batch Export</a>)</li> 23</ul> 24 25 26 27<h2><span id="usage">Using the Tool</span></h2> 28<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> 29 30<p>To display the Options window, run NW4C Export with Setting.</p> 31 32 33<p> 34To 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. 35 36</p> 37 38 39 40 41 42<h3><span id="options">Option Settings</span></h3> 43 44<h4><span id="options_output">Output Options</span></h4> 45<p>Options related to outputting intermediate files.</p> 46<center><img src="images/OutputOpt1.gif" alt="OutputOpt1"/> 47</center> 48<ul> 49<li><strong>Export Target</strong> 50 <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> 51 </li> 52<li><strong>File name</strong> 53 <p> 54 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). Characters that cannot be used in file names are double-byte characters, half-space kana characters, equals signs (=), and semicolons (;). <br /> 55 </p> 56</li> 57<li><strong>Output 3D Intermediate Files</strong> 58 <p>Select this option when outputting an intermediate file to a particular folder. <br /> Specify the folder to which the intermediate file should be output using the option <B>File Path</B>. <br /> Characters that cannot be used in file names are double-byte characters, half-space kana characters, equals signs (=), and semicolons (;). <br /> Texture files are output to the <CODE>Textures</CODE> folder located inside the folder specified by <B>File path</B>. <br /> 59 </p> 60</li> 61<li><strong>Use Creative Studio</strong> 62 <p>Select this option when transferring intermediate file data to CreativeStudio. It is not possible to select <B>Output 3D Intermediate Files</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. 63 </p> 64</li> 65<li><strong>Use 3DEditor</strong> 66 <p>Select this option when transferring intermediate file data to 3DEditor. It is not possible to select <B>Output 3D Intermediate Files</B> and <B>3DEditor</B> at the same time. <br /> For details about using 3DEditor, see NintendoWare for CTR 3DEditor Manual. 67 </p> 68</li> 69<li><strong>Merge cmdl</strong> 70 <p> 71 Turn this option on and specify the path of a CMDL file to merge that specified CMDL file. Characters that cannot be used in file names are double-byte characters, half-space kana characters, equals signs (=), and semicolons (;). <br /> 72 </p> 73 <p>The following information gets merged:</p> 74 <ul> 75 <li>The general material information</li> 76 <li>The mesh information (Visibility, Priority)</li> 77 <li>The model information (Visibility, User data, Animation member settings)</li> 78 <li>Dependent files (Textures, lookup tables, etc. These are copied to the Output Folder.)</li> 79 </ul> 80</li> 81 82<li><strong>Copy Related Files</strong> 83 <p>If turned ON, files dependent on the cmdl file specified for <B>Merge cmdl File</B> are copied during merging. 84 <table class="list_table"><tbody> 85 <tr> 86 <td>Copy Related Files Setting</td> 87 <td>Description</td> 88 </tr> 89 <tr> 90 <td valign="top"><strong>ON</strong></td> 91 <td valign="top"> 92 This setting is best used when using a programming style where each instance of model data is managed separately. <BR> <br /> All files dependent on merge source files are copied below the output folder. This also facilitates passing data back and forth with other people with ease, because all required data is included in the output folder. 93 </td> 94 </tr> 95 <tr> 96 <td valign="top"><strong>OFF</strong></td> 97 <td valign="top"> 98 This setting best suits a programming style where various ctex and clts files are being shared with multiple instances of model data.<BR> <br /> Files referenced by merge source files are not moved, but used as-is. You can merge output data while preserving the location of shared textures and shared lookup tables defined for each project. 99 </td> 100 </tr> 101 </tbody></table> 102 </p> 103</li> 104 105</ul> 106 107<h4><span id="options_general">General Options</span></h4> 108<p>These are general options available for intermediate files.</p> 109<center><img src="images/GeneralOpt1.gif" alt="GeneralOpt1" /> 110</center> 111<ul> 112<li><strong>Magnify</strong> 113 <p>Specifies the magnification ratio by which the model's vertex coordinates and Translate value should be multiplied.</p> 114 </li> 115<li><strong>Use FigureMode and SkinPose</strong> 116 <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. 117 </p> 118 <p> 119 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. 120 </p> 121 </li> 122<li><strong>Start / End Frame</strong> 123 <p>Specifies the range of animation to output (that is, the start frame and end frame).</p> 124 <p> 125 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 /> 126 </p> 127 <p>If attributes are being animated, the start frame value will be output to the CMDL file.</p> 128 <p>Be sure to specify the same mode for the end frame of a loop animation as for the start frame.</p> 129 </li> 130</ul> 131 132<h4><span id="options_file_selection">Output File Selection</span></h4> 133<p>This option specifies the type of intermediate file to be output.</p> 134<center><img src="images/OutFileSel1.gif" alt="OutFileSel1" /> 135</center> 136<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>. 137</p> 138<br /> 139 140<br /> 141 142 143<h4><span id="options_optimization">Optimization Options</span></h4> 144<p>You can optimize data using CreativeStudio when outputting intermediate files from 3ds Max. Options for this optimization process are set here.</p> 145 146<center><img src="images/OptimizeOpt1.gif" alt="OptimizeOpt1" /> 147</center><br /> 148 149<iframe id="CommonCompressNode" src="../../common/CommonCompressNode.html" frameborder="0" scrolling="auto" width="100%" height="1500"></iframe> 150 151 152 153 154<h4><span id="options_quantization">Quantization Options</span></h4> 155<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> 156<center><img src="images/QuantizeOpt1.gif" alt="QuantizeOpt1" /> 157</center> 158 159<iframe id="CommonQuantization" src="../../common/CommonQuantization.html" frameborder="0" scrolling="auto" width="100%" height="400px"></iframe> 160 161 162 163<h4><span id="options_model">Model Options</span></h4> 164<p>These are model-related options.</p> 165<center><img src="images/ModelOpt1.gif" alt="ModelOpt1" /> 166</center> 167<br /> 168 169 170 171<iframe id="CommonModelOption1" src="../../common/CommonModelOption1.html" frameborder="0" scrolling="auto" width="100%" height="800"></iframe> 172 173 <table class="table"> 174 <tbody> 175 <tr> 176 <td colspan="2"><strong>Example of valid data: Node configuration on Max3ds</strong></td> 177 </tr> 178 <tr> 179 <td> <img src="images/rigidskin_preview.gif" border="0" alt="rigidskin_preview" height="200" /> </td> 180 181 <td> <img src="images/rigidskin_structure.gif" border="0" alt="rigidskin_structure" /> </td> 182 </tr> 183 </tbody> 184 </table> 185 186<iframe id="CommonModelOption2" src="../../common/CommonModelOption2.html" frameborder="0" scrolling="auto" width="100%" height="550"></iframe> 187 188 189 190<h4><span id="options_anim">Animation Options</span></h4> 191<p>These are animation-related options.</p> 192<center><img src="images/AnimOpt1.gif" alt="AnimOpt1" /> 193</center> 194 195<iframe id="CommonAnimationOption" src="../../common/CommonAnimationOption.html" frameborder="0" scrolling="auto" width="100%" height="1400px"></iframe> 196 197 198<h4><span id="options_tolerance">Tolerance Options</span></h4> 199<p>This option specifies the allowable range of errors when animation curve data is optimized.</p> 200<center><img src="images/ToleranceOpt1.gif" alt="ToleranceOpt1"/> 201</center> 202<br /> <iframe id="CommonTolerance" src="../../common/CommonTolerance.html" frameborder="0" scrolling="auto" width="100%" height="400"></iframe> 203 204<h4><span id="manage_options">Managing Option Settings</span></h4> 205<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> 206<center><img src="images/LoadSaveSettings.gif" alt="LoadSaveSettings" /> 207</center> 208<br /> 209 210<h4><span id="scene_settings">Saving Option Settings for a Scene</span></h4> 211<p> 212 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. 213</p> 214<p> 215 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 /> 216</p> 217<p> 218 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. 219</p> 220<p> 221 To delete the option settings saved in the scene data, click <B>Reset Scene Settings</B>. 222</p> 223<p> 224 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. 225</p> 226 227<h4><span id="c3es_file">Loading/Saving Option Settings Using C3ES Files</span></h4> 228<p> 229To 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. 230</p> 231<p> 232Click <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. 233</p> 234<br /> 235 236 237 238 239 240<h2><span id="error_warning">Errors and Warnings</span></h2> 241 242<h3><span id="erroroutput">Error Verification</span></h3> 243<p>If an error or warning occurs during export, it will be output to the listener window.</p> 244<p>Some errors are also displayed in a message box.</p> 245<br /> 246 247<h3><span id="errors">Error Types and Handling Errors</span></h3> 248<p>The error list as currently implemented is presented below in alphabetical order.</p> 249<p>When an error is detected, the Export process halts.</p> 250<br /> 251 252<ul> 253<li><strong>Can't open file</strong> 254<p>This error occurs when the file does not exist, cannot be opened, or cannot be overwritten.</p> 255</li> 256 257<li><strong>CreativeStudio cannot be found</strong> 258<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> 259</li> 260 261<li><strong>Failed to start CreativeStudio</strong> 262<p>CreativeStudio has failed to start. Be sure to check CreativeStudio error output.</p> 263</li> 264 265<li><strong>3DEditor cannot be found</strong> 266<p>3D editor has not been correctly installed.<br /> 3DEditor must be installed in the folder <CODE>3DEditor</CODE>, located beneath the folder defined by the environment variable <CODE>NW4R_ROOT</CODE>. If the environment variable <strong>NW4C_ROOT</strong> is not defined correctly, correct the definition and restart 3ds Max.</p> 267</li> 268 269<li><strong>Failed to start 3DEditor</strong> 270<p>Failed to start the 3D editor. Check for error output from 3DEditor.</p> 271</li> 272 273 274<li><strong>Influence object is not outputted</strong> 275<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. 276</p> 277 278</li> 279 280<li><strong>Path of cmdl file to merge is wrong</strong> 281<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> 282</li> 283<li><strong>No effective node</strong> 284<p>There is no active node to be output.</p> 285</li> 286 287<li><strong>No output file</strong> 288<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> 289</li> 290 291<li><strong>Output File Name is wrong</strong> 292<p>This error occurs if the Export option Output File Name is left blank or if the filename contains illegal characters.</p> 293</li> 294 295<li><strong>Output Folder is wrong</strong> 296<p>This error occurs if the Export option Output Folder Name is left blank or if the filename contains illegal characters.</p> 297</li> 298 299<li><strong>Same user attribute exists</strong> 300<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> 301</li> 302 303<li><strong>Texture size is wrong</strong> 304<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> 305</li> 306 307 308<li><strong>The number of vertices exceeds the limitation</strong> 309<p>The number of mesh vertices excess the limit (65535). If this error occurs, divide up the pertinent mesh to get the appropriate size.</p></li> 310 311 312 313<li><strong>Polygon bone size is over</strong> 314<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. 315</p></li> 316 317<li><strong>Max Reserved Uniform Registers is wrong</strong> 318<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. 319</p></li> 320 321</ul> 322<br /> 323 324 325 326<h3><span id="warnings">Warning Types and Handling Warnings</span></h3> 327<p>The Warning List, as it is currently implemented, is presented below in alphabetical order.</p> 328<p>The Export process will continue, even if a warning is detected.</p> 329<br /> 330 331<ul> 332 333<li><strong>Custom Animation Range was trimmed</strong> 334<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> 335</li> 336 337<li><strong>Node has no material</strong> 338<p>No material has been set for a node being output. A dummy material is output.</p> 339</li> 340 341<li><strong>Texture file doesn't exist.</strong> 342<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> 343</li> 344 345<li><strong>The number of composite textures is over 3</strong> 346<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> 347</li> 348 349<li><strong>Can't get UV data for generating the tangent</strong> 350<p>This error occurs when UV data used to calculate the tangent used by an anisotropic reflection shader cannot be found.</p> 351</li> 352 353<li><strong>Map channel does not exist</strong> 354<p> 355The 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. 356</p> 357</li> 358 359 360 361<li><strong>Material name is changed</strong> 362<p>A material name output to the intermediate file was changed because two or more materials had the same name.</p> 363</li> 364 365<li><strong>Node name is changed</strong><br /> 366<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> 367</li> 368 369<li><strong>Texture name is changed</strong> 370<p>The texture name contains illegal characters. Illegal characters are converted to an underscore (<CODE>_</CODE>) and output as such.</p> 371</li> 372 373<li><strong>There are multiple texture files with the same name</strong> 374<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> 375</li> 376 377<li><strong>Texture type is not supported</strong> 378<p>The only texture maps that can be used are mipmaps, normal maps and composite maps.</p> 379</li> 380 381<li><strong>Zero normal exists</strong> 382<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> 383</li> 384 385 386<li><strong>Inherits of node link info is off</strong> 387<p>One of "Hierarchy," "Link Information," or "Inheritance" for the node is OFF. Objects will not display correctly if this is not selected.</p> 388</li> 389 390 391<li><strong>Billboard Type is ignored if 'Convert To Model' option is ON</strong> 392<p>Billboard settings are not output when the <B>Convert to Model</B> option is turned ON.</p> 393</li> 394 395 396</ul> 397 398<hr><p>CONFIDENTIAL</p></body> 399</html>