Multi-Tile UV Bake Tool
When installing the tool be sure to run 3dsMax as Administrator. On restricted machines you may get a few runtime errors, be sure to run as administrator if that is the case. If the problem persists please contact firstname.lastname@example.org
1. With 3dsMax open, drag & drop the mzp package into your viewport, or execute the script directly from the “Maxscript/Run Script” option. Make sure your have Administrator permissions; the tool needs to alter the default RTT script.
2. After the installation, run 3dsMax and customize your UI as you would with any other script. The Tool is located under “Multi-Tile UV Bake Tools”
Alternatively, use the Main Menu Item.
General Tool Info
This tool automates the manual and time consuming process of baking multiple tiles in 3dsMax. It takes the required bake information from the RTT Dialogue, UV Channels available and automatically offsets and renders the required tiles.
This manual is a work in progress and subject to change. Tutorials and in-depth information regarding the tool and rendering in general will be provided at a later stage.
- The bake tool does not force you to select from a pre-made list of render elements or render engines. Work as you always did; after creating your scene simply add the appropriate render elements and projection settings using the Render To Texture Dialog. All Render Engines and file formats are supported, provided that they are supported by the default 3dsMax Render To Texture process.
- When adding render elements, besides the type, the only crucial element is the file format used. Given that the bake tool not only overrides the exported texture name, but also allows you to override Texture/Padding Size and the UV Channel to use, you can save time by keeping the unaltered default values and instead use the tool to efficiently apply the required values to the baked objects. We strongly recommend that you simply input the name/format of the file and use the bake tool to define the remaining attributes.
- We recommend backing up your scene before using the bake tool, the “Create a Working Copy” option is currently disabled. The Tile texture output will overwrite any existing files/folders.
- Objects that don’t contain render elements should not be included in the bake, this may result in runtime errors on some Max versions.
- After the bake process, UV’s will be transferred and depending on the options used the Modifier Stack could be collapsed, always backup you scene or models.
- It’s a good rule of thumb to check for isolated or overlapping Vertices/Edges and reset transforms after completing a model. In the long run this will save you quite a lot of time from random crashes due to incorrect/corrupted transforms.
- The bake tool will only process Editable Polys.
Direct all your suggestions, requests and support inquiries, directly to email@example.com.
Info and Bake
- This area displays information regarding the number of objects and tiles to bake.
- The Bake button initiates the Render To Texture Procedure and, at the moment, it cannot be canceled.
- UV Tile Type: MARI UDIM (limited to 10 horizontal tiles), Mudbox (Index 1) and Zbrush (Index 0), xX_yY no tile limitations.
- UV Channel: The channel containing the UV’s to be used in the bake process. By Default it gets its value from the RTT dialog; Channel overrides the value in all selected objects.
- Disabling the RTT FB Window will not automatically disable Vray’s, or similar FB’s. When rendering production tiles, always disable custom FB windows in order to reduce memory usage during the process.
- Standard Tile Check: When Toggled, this fast check function will assume that all UV tiles have been properly set manually. When unchecked, the function will check the entire UV collection, cluster by cluster, in order to determine the tiles to render; this option is slower when compared to the previous ones.
The tiles will be renamed automatically: Render Element Name + Object Name + Tile Coordinates + File Format; special characters will be removed from the original object name. For organization sake, we recommend keeping the options below toggled.
- Baked Maps: Output Folder for the baked maps, any existing files will be overwritten.
- Bake Element Folder: Creates a sub-folder for each render element type.
- Object Name Folder: Creates a folder for each baked object.
- Texture Padding: RTT Default or override all selected objects.
- Texture Size: RTT Default or override all selected objects.
Misc Batch Options (Experimental)
This post-bake option will copy the UV’s used in the baking process into another UV channel. e.g. Use channel 2 for the bake and copy the resulting UV’s into channel 1, making the object ready to be exported to another package.
- Transfer UV Channel: From – The channel used in the bake process, To – destination channel.
- Clear Source Channel: Removes the channel used in the bake; this will avoid having unnecessary channels in your exported model.
- Collapse Modifier Stack: Clears the modifier stack, the transfer process adds UV Channel Modifiers.
The Auto Tiles option will automatically Unwrap, Pack and set the amount of tiles required for the selected pixel density.
- UV Channel: The channel containing the UV’s to be used in the bake process; by Default it gets its value from the RTT dialog; UV Channel overrides the value.
- Target Pixel Density: Per-Meter or Kilometer, relative to the approximate surface area in relation to the Render Texture Size set above.
- Pack Only: No automatic flatten, it assumes pre-made UV’s.
- Pack with UV Packer: Requires the UV Packer plugin by 3d-io.
- Rotate, Rescale and Fill holes with Clusters, overrides the equivalent Unwrap UVW parameters for all baked objects
- No Reduction: Debug only, it prevents UV’s from being reduced if the object surface area is insufficient to occupy more than one tile, in relation to pixel density and output texture size.
General Rendering Technical Considerations
- The following applies to Single and Multi-Tile Bakes, with or without using the bake tool: When using GI engines in the Render To Texture process, such as Vray or FinalRender, avoid using camera based lighting calculations like lightcache or simple irradiance maps.
- As you’ve probably noticed, a Standard Render and a Render To Texture Render will often show slightly different results. This is mainly caused by the misuse of certain camera based GI techniques. Since such techniques require, in simplistic terms, “a point of origin and destination in 3d space” in order to properly calculate the GI, sort of speak; given the computing method the Render To Texture Engine uses, the use of Brute Force or Properly Pre-Cached Irradiance is recommended.
The topic above, although not directly related to the tool itself, will be discussed at a later stage via tutorial videos.
Method 1 – Manual UV Tiles
1. Manually setup your UV Tiles using a new/empty UV channel; this will be your UV Channel used in the bake.
2. Using the Render To Texture Dialog add your render elements and projection options, if any.
3. In the Bake Tool Dialog, select your bake UV Channel; the channel created in step 1.
4. Select the Tile Type.
5. This step introduces some optional settings.
5.1. Set the output folder and check the Object Folder & Element Sub-Folder Options if necessary.
5.2. Set the Texture and Padding override size, if required.
6. Select the objects to bake, Hit the Bake Button, sit back and enjoy the automated process.
Method 2 – Automatic UV Tiles (Experimental)
1. Using the Render To Texture Dialog add your render elements and projection options if any.
3. In the Bake Tool Dialog, select your bake UV Channel; any empty channel available.
4. Toggle the Auto Tiles in the pre-bake options.
5. Set the desired pixel density per square meter or kilometer.
6. Adjust the bake UV Channel if required, the value in this section is linked to the UV Channel value in the Bake Options above.
7. Setup the UV Flatten and Packing options or use the default settings. The options displayed in this section correspond to the standard options provided by the Unwrap Modifier.
8. Select the objects to Bake, Hit the Bake and enjoy the automated process.
Mixed Method – Automatic Tiles Without Flattening the UV’s
Pre-Bake options can be mixed with the manual mode. e.g. Manually setup your UV’s and toggle the Pack Only option. Instead of flattening the UV’s, the tool will simply pack them accordingly to the target Pixel Density, without altering your original UV groups.
The automated Post-Bake option for UV transfer can and should be used with both methods.