20

I followed the guide here: How do I bake a texture using Cycles bake

I unwrapped my UV, created a new image, created an Image Texture node and selected my new image with that, and hit bake. I then receive the error in the title. Here is a screenshot of my view: enter image description here

I'm definitely doing something wrong, hopefully one of you can point out what that is.

Douglas Gaskell
  • 721
  • 1
  • 8
  • 19

2 Answers2

14

For baking in cycles each material slot requires image texture in the node setup, and it looks like even if the material slot is empty. To fix the error, remove the empty material slot from the object.

Denis
  • 13,059
  • 7
  • 60
  • 81
  • Do you think this should be reported as a bug? – Ray Mairlot May 18 '15 at 22:20
  • @RayMairlot That's quite rare for experienced user to have something like that. I dont think that will be considered as a bug because logically that's how it supposed to work. – Denis May 18 '15 at 22:36
  • 7
    I'm not a fan of the above comment. You shouldn't have had to hack your way through this issue and it's unclear messaging multiple times to be able to avoid it. Bake should either be more intelligent, or at least be a lot more clear with the error messaging. – Tyguy7 Aug 01 '19 at 23:10
  • 1
    I have the same issue, but I'm new to blender and have no idea where an empty material slot is? More help is definitely desired for newbies! – CromeX Mar 31 '21 at 21:24
  • O geez that is dumb.. have to have the node with an image texture selected.. Maybe update the error comment – CromeX Mar 31 '21 at 21:27
  • What is a material slot? How do I know if it's empty and how do I delete it? – Mitchell van Zuylen Nov 02 '21 at 02:12
7

For Blender beginners like me, here is a much clearer and more detailed guide:

  • Go to 'Shading' view
  • For each material used by your mesh:
    • Inside the side-pane, select the material
    • Inside the Node Editor window, create a new Image Texture node (Add > Texture > Image Texture). You literally don't have to connect this to any other nodes. Yeah I know, this is a very strange process.
    • In that Image Texture node, select or create a new image where the bake output will go.
      • If you're using multiple materials, you can re-use the same image inside their Image Texture node.
  • Make sure you have your mesh selected
  • Hit 'bake' and voila
Shasaur
  • 83
  • 1
  • 4
  • 2
    This is *way* more helpful than the accepted answer. It's truly unfortunate it has so few votes. – Matthew Sep 01 '22 at 05:08
  • 1
    @Matthew is right. It still feels akward doing it as a fix, but at least it is working. And the instructions are cear on this answer. Upvoted. Thank you! – C4d Apr 05 '23 at 12:00