I'm very new to blender. I'm trying to work on my 3d art for a game I'm making in Unity. I've linked my blend file so maybe y'all can figure out something basic I've stuffed up. My problem is with the workflow. I've modelled a cylinder, UV unwrapped it. Created a texture in texture painting and painted a stencil on it. I've made a different object and have a few materials but anytime I try to bake the cylinder it becomes black and any other bake returns the UVs all blacked out. All help is welcomed, I've been stuck on this for a week now.


Blend File

  • $\begingroup$ When you go to image editor, Image > Save as... You can save your texture. Is this what you need? Because there's no other object (well except the small valve handle), so I guess you don't want to bake from one object to another, and you also don't want to bake things like shadows into a texture, right? $\endgroup$ Sep 18 at 10:19
  • $\begingroup$ There should be two objects? The cylinder and the valve handle? I'm not too sure what you mean though? I also want to bake the brass texture and handle texture as it looks real bad in unity when I export just the texture for the white cylinder part $\endgroup$
    – Sam Law
    Sep 18 at 10:55
  • $\begingroup$ I'm sorry, but I'm also at a loss at what you mean. Maybe someone else will come to the rescue, otherwise maybe you could phrase your question as: I have A, and I do B, in order to get C, but I get D instead. Now, I realize it's hard to actually show D, but you can probably reproduce the problem for simpler geometry, where you can "manually" create what you expect (the D) and show how the process (B) you apply fails (creates C instead). $\endgroup$ Sep 18 at 10:58

A week is long enough to suffer and this hopefully will cover me for my good deed of the day.

You need to do two things before baking,

  1. Add some lamps to illuminate your object.
  2. Add a new Image Texture in the node editor for each of your two textures. This new image will be the image that they will both bake to.

Lighting :

  1. First change the Preview Mode to Render.
  2. Add a Point Light to your scene and position it a little above and in front of the object.
  3. Open the lamp tab.
  4. Increase the Power value until the front of the object is appropriately illuminated.
  5. Copy ( Shift + D ) the Lamp and position it somewhere behind and to the side of the object. Make a second copy and position to the other side of the object. (See the screenshot below). Play with the Power values of these new lights as needed.

enter image description here

Adding an Image to bake to :

  1. In object mode Select the object.
  2. Open the materials tab.
  3. Select the first material (White paint).
  4. In the Node editor Add a new Image texture.

9b. Click on the New field and we will give it the name Bake. Notice that this new "Bake" image node is highlighted in white, indicating that it is selected.

enter image description here

Repeat the above for the second material (Brass)..... Add a new Image texture then click on the little image icon and select the same "bake" image from the list.(see screen_shot below).

The same image "Bake" because both materials will be baked to this one image. Notice that this image texture node is also highlighted again indicating that it is selected.

To bake both materials to the same image ("Bake") it is very imported that in each of the two material node setups that the "Bake" image node is selected and only that node in each material. Having this image node selected is telling Blender which image to bake to when we hit that Bake button in the next step. enter image description here

Baking :

Open up the Bake sub-menu and enable Direct and Indirect lighting. Now hit the bake button. If all is well the new bake image will appear in the UV editor window. From here you can save the new image texture.

As you probably know already it is the number of Render Samples in the Sampling menu that will effect the quality of the bake. It is not often that the first bake is the one you will be happy with and you may find that you have to go back and play with the lights etc and then try more bakes. If you have a slow machine it is often a good idea to reduce the number of Render Samples to something like 32 or 64 for these test bakes then when happy increase the value to 128 or more for the final Bake. enter image description here

Just some observations:

To get a shiny brass texture you will have to play with the Metalic, Specular, and Roughness values in the Pricipal BSDF shader. Also for the finish on the cylinder.

Your cylinder object has like 100 (200 even) times to much geometry than the object actually needs. The Geometry is so dense it is hard to say if you have used used smooth shading or not ! before your next project check out some tutorials on creating game assets. :)

Perhaps consider joining the "Wheel" object to the Cylinder object and find space in the UV map for the Wheels's UV's.

You have quite alot of unused space on your UV map so consider scaling up the Brass material UV's so that this material occupies a larger area in the UV space. A larger area equals more pixels for the material, equals higher resolution.

  • $\begingroup$ Thank you, thank you, thank you. I've never seen an explanation like this and it makes so much sense now. I've got it baked (diffuse with the color option) and in my game project. Thank you so much I will keep this explanation with me forever! $\endgroup$
    – Sam Law
    Sep 19 at 3:33

Not the answer you're looking for? Browse other questions tagged or ask your own question.