How to Bake a Diffuse Texture in Blender
Baking a diffuse texture in Blender transfers color, base materials, and lighting information from procedural shaders or complex material setups into a single 2D image map. This process is essential for optimizing 3D assets for game engines like Unity and Unreal Engine, as well as improving viewport performance. This guide provides a clear, step-by-step walkthrough to successfully bake a diffuse texture using Blender's Cycles render engine.
Step 1: Unwrap the 3D Model
Before baking, your 3D mesh must have a clean UV map so Blender knows how to project the 2D texture onto the 3D surface.
- Select your object and press Tab to enter Edit Mode.
- Press A to select all vertices.
- Press U and select Unwrap (or Smart UV Project for quick automatic unwrapping).
- Verify the layout by opening the UV Editor workspace. Ensure no UV faces are overlapping.
Step 2: Create a Target Image Texture
You need an empty image file inside Blender to store the baked diffuse data.
- Switch to the Shader Editor workspace with your object selected.
- Press Shift + A and select Texture > Image Texture.
- Click New on the node.
- Name your texture (e.g., "Diffuse_Bake"), set the desired resolution (such as 2048 x 2048), and click OK.
- Important: Keep this new Image Texture node selected (highlighted with a white border), but do not connect its outputs to any other nodes.
Step 3: Switch the Render Engine to Cycles
Blender only supports texture baking in the Cycles engine.
- Go to the Properties Panel on the right side of the screen.
- Select the Render Properties tab (camera icon).
- Change the Render Engine from EEVEE to Cycles.
Step 4: Configure the Bake Settings
Set up the render parameters specifically for a diffuse map.
- Scroll down to the Bake section in the Render Properties tab.
- Change the Bake Type to Diffuse.
- Under the Influence section, choose what
information to bake:
- Base Color only: Uncheck Direct and Indirect lighting options. This leaves only Color checked, producing a clean, flat texture free of shadows and highlights (ideal for game engines).
- Full Lighting: Keep Direct and Indirect checked if you want light and shadow information permanently painted onto the surface.
- Set the Margin (under Output settings) to 16px to prevent visible seams along the UV edges.
Step 5: Execute the Bake
- Ensure your object is selected in the 3D Viewport.
- Ensure the empty target Image Texture node is selected in the Shader Editor.
- In the Render Properties tab under the Bake section, click the Bake button.
- Wait for the progress bar at the bottom of the screen to finish.
Step 6: Save the Baked Image
Blender does not automatically save baked images to your hard drive. If you close Blender without saving, the baked data will be lost.
- Open the Image Editor window.
- Select your baked texture from the image dropdown menu at the top.
- Click Image in the top menu bar and select Save As....
- Choose your desired file format (e.g., PNG or JPEG) and save the file to your computer.