Sub topic 18
Alternative: baking with the Multiresolution modifier
This chapter assumes you have finished the Selected to Active normal and AO bakes from the earlier chapters. You should be comfortable with the Cycles Bake panel, a Non-Color target image, and tangent-space normals.
What the Multires workflow is
The Selected to Active workflow needs two separate objects: a high-poly mesh and a low-poly mesh. The Multiresolution (Multires) modifier removes that requirement. It stores several subdivision levels of one mesh inside a single object. Level 0 is the base mesh, the one you would ship. Higher levels hold the sculpted detail.
The baker compares a low level of the mesh with the highest level and writes the difference into an image. No second object, cage or ray distance is involved, because both surfaces are levels of the same mesh.
When to choose it
Multires fits when you sculpt directly on the game mesh instead of importing a separate sculpt. It is also useful for small props, where setting up a second object and a cage costs more than the bake.
It is a poor fit when the high-poly comes from another source, such as hard-surface boolean work, a decimated scan or another application. It also struggles when the low-poly topology differs a lot from the high-poly shape, because Multires can only add detail on top of the base mesh.
| Aspect | Selected to Active | Multires bake |
|---|---|---|
| Number of objects | Two (high and low) | One |
| High-poly source | Any mesh | Sculpted subdivision levels of the base mesh |
| Cage and ray distance | Required for good results | Not used |
| Typical ray-miss artifacts | Yes | Rare |
| Bake types | Normal, AO, and many others | Normals and Displacement only |
| AO map | Direct bake | Not available |
| Flexibility | High | Limited |
The last two rows matter for this tutorial. Multires bakes normals, so use it for the normal map. For ambient occlusion you still need the Selected to Active method, or a separate AO bake on a mesh set up for it.
The workflow
1. Unwrap before you subdivide
Unwrap the base mesh first. Subdivision keeps the UV layout, but adding Multires levels to a mesh that has no UVs, or changing its UVs afterward, gives bad bakes. Check seams, texel density and island padding as you did for the low-poly in the UV chapter.
2. Add levels and sculpt
Add a Multiresolution modifier and press Subdivide until the top level holds the detail you need. Four or five levels is common for a prop. Each press quadruples the face count, so watch memory.
Use Catmull-Clark Subdivide for a smooth result. The Simple option subdivides without smoothing, so the shape stays exactly as it was. Use Simple when the base should keep its sharp silhouette. Linear is similar, but it only keeps the corners fixed.
Sculpt at the top level. The Multires modifier has three level settings, and they matter for baking:
- Levels Viewport: the level shown in the viewport.
- Sculpt: the level you edit in Sculpt Mode.
- Render: the level used for final renders.
3. Pick the low level to bake onto
The bake targets the level set in Levels Viewport and reads detail from the highest level of the modifier. Set Levels Viewport to 0 to bake onto the original base mesh. If you want to bake onto a smoother intermediate level, set it to 1 or 2, but then the exported mesh must match that level. If you export the base mesh, always bake at level 0.
4. Prepare the target image
Multires baking uses the same image setup as before. Create a new image at your chosen resolution, set its color space to Non-Color, and put it in an Image Texture node in the object's material. Make that node active by clicking it. Without an active image node, the bake has nowhere to write.
5. Bake from Multires
In the Render Properties, switch the engine to Cycles. In the Bake panel, enable Bake from Multires. Set the Bake Type to Normals and set Margin. Then press Bake. The object must be selected and active.
Multires normal baking produces a tangent-space map, so there is no Normal Space choice here, unlike the Cycles Bake panel in the main workflow. Samples and Selected to Active settings do not apply either.
Displacement option
The other bake type is Displacement. It stores height differences. You can use it for a displacement or height map, but the Normals type is the one this tutorial needs. The Low Resolution Mesh option changes how Displacement is calculated and does not affect a normal bake.
Scripting the bake
This script assumes Asset_low already has a sculpted Multires modifier called "Multires" and a material. It creates the image, sets the level and runs the bake.
import bpy
obj = bpy.data.objects["Asset_low"]
scene = bpy.context.scene
scene.render.engine = 'CYCLES'
mod = obj.modifiers["Multires"]
if mod.total_levels == 0:
raise RuntimeError("Multires has no subdivision levels to bake from")
mod.levels = 0
img = bpy.data.images.new("Asset_multires_normal", 2048, 2048)
img.colorspace_settings.name = 'Non-Color'
mat = obj.active_material
mat.use_nodes = True
nodes = mat.node_tree.nodes
tex = nodes.new('ShaderNodeTexImage')
tex.image = img
nodes.active = tex
scene.render.use_bake_multires = True
scene.render.bake_type = 'NORMALS'
scene.render.bake_margin = 16
bpy.ops.object.select_all(action='DESELECT')
obj.select_set(True)
bpy.context.view_layer.objects.active = obj
bpy.ops.object.bake_image()
img.filepath_raw = "//Asset_multires_normal.png"
img.file_format = 'PNG'
img.save()Run it from the Scripting workspace in Object Mode. The result goes into a Normal Map node exactly as in the Applying the Baked Maps chapter.
Gotchas and failure modes
- Wrong level. If the result looks flat, check that Levels Viewport is below the top level. Baking with both at the top level compares the surface with itself and produces a blank normal map.
- Edited base mesh. If you move base vertices after sculpting, the detail moves with them. Moving the base mesh also changes the bake. Use Apply Base only when you intend to push the base mesh onto the sculpted shape.
- UV changes. Re-unwrapping after subdividing makes the bake unreliable. Fix UVs first.
- Memory. Level 6 of a mesh with thousands of faces can exhaust RAM. Bake with fewer levels or split the object.
- Shading mismatch. The same tangent-space rules apply. Export with the engine's normal convention (OpenGL or DirectX) and keep the same smooth or flat shading you baked with.
- Missing AO. Do not look for an Ambient Occlusion option in the Multires bake type list. It is not there. Bake AO with the Selected to Active method from the earlier chapter.
Choosing between the two
Use Multires when one sculpted object is all you have and normals are all you need. Use Selected to Active when the high-poly comes from elsewhere, when you want AO or other passes, or when you need control over cage and ray distance.
Exercise
You sculpted detail onto a prop using a Multires modifier with 5 levels. You set Levels Viewport to 5, assigned a Non-Color image and baked normals with Bake from Multires. The resulting normal map is flat. What went wrong, and what should you change? Also, can you use the same method to bake the AO map?
Show answer
Levels Viewport was set to the top level, so the baker compared the highest level with itself and found no difference. Set Levels Viewport to 0 (the level you will export) and bake again. The Multires bake only offers Normals and Displacement, so you cannot bake AO this way. Bake AO with the Selected to Active method instead.
Exercise
Why does a Multires bake not need a cage or max ray distance?
Show answer
Both surfaces are levels of the same mesh and share the same UV layout. The baker can compare corresponding points on the low and high levels directly, so it does not cast rays from one object toward another.