2
$\begingroup$

So I tried a few different answers that I found here, and I feel that this is possibly a duplicate question, but everything I have tried from the other solutions hasn't worked.

Basically I am trying to bake a material to a texture that will be used in Unity, but every test gives me a black background image.

In the image below, the top image texture is the mask (black and white, white being the leaves), and the bottom image texture is the colour.

Blender

$\endgroup$
2
$\begingroup$

It is currently not possible to bake directly to an alpha channel as you mention.

https://blender.stackexchange.com/a/41904/28015

There are workarounds, though, like you could bake only an emission shader of the masking (in this case you already have the mask so there's no need for that), then make it the alpha channel in the compositor.

enter image description here

Here is the blend:

Just bake the texture, update the compositor, and finally, go the the viewer node in the uv editor.

$\endgroup$
1
$\begingroup$

What you should do is, creat a new texture in the uv/image editor and change the color from black to transparent by sliding the alpha value. Then in your baking menu disselect clear. This now should give you your leaf with a transparent background once you've baked it.

Slide this value to 0

$\endgroup$
  • $\begingroup$ I gave that a try, and I still get a black background. I've uploaded my blend file and added it to my post if that helps. Thanks $\endgroup$ – JacketPotatoeFan Sep 6 '16 at 10:15
  • $\begingroup$ I did some testing around: first of my method doesn't work on your blend in Cycles but it does work in Blender Internal (Blender Render). Why this won't work is out of my range. It might be that you accidentally did something that is hindering it from doing. $\endgroup$ – Nils Eisen Sep 6 '16 at 10:28
0
$\begingroup$

I don't know if this can help you, but what works for me is this. I did 2 bake textures, 1 the regular bake texture, and the other is just a glossy bake type, only the color and that created a B&W image that then you can use as a mask in photoshop... enter image description here

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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