You can create ambient occlusion and custom maps using the Lighting/Shading > Transfer Maps tool if you have the Mayatomr.mll plug-in loaded. For more information regarding this tool, see Lighting Shading > Transfer Maps. This section lists all the mental ray specific attributes and functionalities.
If you enable the Mayatomr.mll plug-in (from Window > Settings/Preferences > Plug-in Manager), the Ambient and Custom map types are available:
Your settings (for example, the map sections that you have created and checked) are saved with each session of Maya.
Only available when the Mayatomr.mll plug-in is loaded. When ambient light is used, the objects in your scene may appear to be too bright and geometric detail may become lost. Ambient occlusion solves this problem by subtracting ambient light and adding shadowing. At each sample point, a number of probe rays are emitted around the normal vector that determine how much light is blocked by other geometry in your scene.
When on, an ambient occlusion map is generated. Enter the path and filename to which you want to save the map.
The Transfer Map tool evaluates the ambient occlusion on the high resolution object and bakes it to a map for the low resolution object.
Sets the file format for the ambient occlusion map you want to create. See File formats.
When you select a file format from the drop-down list, Maya automatically appends the appropriate file extension to the filename of the ambient occlusion map. For example, if you select gif from the drop-down list, .gif is automatically appended to the filename.
Similarly, if you enter path/mapname.gif as your filename, the file format option is automatically set to gif.
Select for multiple objects to bake in the default light map mode. This baking method is single threaded and uses one thread per object. This method can give better performance for baking multiple objects.
Select for single object to use lens shader baking. The shape of the lens changes to be the same as that of your geometry. This baking method is multi-threaded and uses multiple threads for each object. This method can give better performance for baking a single complex piece of geometry.
If you plan to create several maps with the same width and height, you can reuse your settings by entering them in the mental ray Common Output section of the Transfer Maps window.
If you uncheck this option, the Map width and Map height attributes appear within the Ambient occlusion Map section of the window. For more information regarding these attributes, see mental ray Common Output.
Only available when the Mayatomr.mll plug-in is loaded. Evaluates your custom shader on the high resolution object and bakes that to a map for the low resolution object. By using this map, you can include geometric detail in your scene without increasing its rendering time. Example custom shaders that you can use include a normal map (map normals to a texture), a bump map (bent normals map), mental ray materials, or shading and lighting maps.
When on, a custom map is generated using the custom shader specified. Enter the path and filename to which you want to save the map.
Sets the file format for the custom map you want to create. See File formats.
When you select a file format from the drop-down list, Maya automatically appends the appropriate file extension to the filename of the custom map. For example, if you select gif from the drop-down list, .gif is automatically appended to the filename.
Similarly, if you enter path/mapname.gif as your filename, the file format option is automatically set to gif.
Select for multiple objects to bake in the default light map mode. This baking method is single threaded and uses one thread per object. This method can give better performance for baking multiple objects.
Select for single object to use lens shader baking. The shape of the lens changes to be the same as that of your geometry. This baking method is multi-threaded and uses multiple threads for each object. This method can give better performance for baking a single complex piece of geometry.
This option is on by default. When turned on, the Orthogonal Reflection option causes all reflection rays to be orthogonal to the surface being baked. They are no longer true reflection rays; instead, they point parallel to the surface normal vectors, but the resulting baked texture or vertex colors are meaningful when viewed later from any direction. This option should be turned on if the textures or vertex colors generated are to be used as textures in a game engine.
Turn this option off if you are baking in order to accelerate software rendering and the reflections are only viewed from the baked position. However, in this case, the textures or vertex colors generated are not for use as textures in a game engine.
If you plan to create several maps with the same width and height, you can reuse your settings by entering them in the mental ray Common Output section of the Transfer Maps window.
If you uncheck this option, the Map width and Map height attributes appear within the Custom Map section of the window. For more information regarding these attributes, see mental ray Common Output.
Turn this on to bake the alpha channel (equivalent to the Bake Transparency option under Edit > Convert to File Texture (Maya Software) > in the Hypershade menu bar) and then select an Alpha Mode.
Determines the final gather precompute quality. When rendering from the camera, mental ray precomputes a final gather pass before actually rendering the scene. This precomputation pass is disabled by default for baking.
When this attribute is set to higher than zero, mental ray computes a number of final gather points before it bakes the lightmap. When this attribute is set to one, the resulting lightmap should be of approximately the same quality as a lightmap rendered from the camera. When this attribute is set higher than one, then the quality of the lightmap is improved as a denser map of final gather points is precomputed.
Do not use this option to tune final gather quality for baking. Final gather quality affects the number of points calculated at the precomputation phase of the final gather algorithm. By increasing the final gather quality, you are only creating more points during precomputation and possibly reducing the amount of interpolation or extrapolation required during rendering. Increasing the final gather quality does not affect the accuracy of the light calculated for each point or the filtering that is used on the data.
Instead, adjust the Scale in the Render Settings Window. This attribute controls the accuracy of the light calculated for each final gather point. Adjust also the View (Radii in Pixel Size). This attribute controls how data is interpolated/extrapolated between final gather points.
Determines the reflectivity of an object when precomputing final gather points for light mapping. This simplifies the simulation of reflective objects whose texture maps include contributions from objects that surround them. For example, if the Final Gather Reflect value is set to 0.25, every fourth final gather point is precomputed on the object hit by the reflection ray.
If the selected UV space contains boundaries, these boundaries may appear as black stripes in renderings that use the baked textures. This occurs when the texture is sampled so close to a boundary that the filter picks up values (generally black) from outside the desired space.
This setting artificially extends the boundaries by a small amount to alleviate this problem. It is measured in texels (pixels of texture). Typically, the filter is only a few texels in diameter and can only reach as far as its radius into these boundary spaces, so a value of 1 or 2 is usually enough.
Except where otherwise noted, this work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License