I'm trying to bake a transparent png image with Cycles. It drives me crazy trying to work out how to do this. Can anyone guide me how to accomplish it, or is it possible at all?
As far as I know it's not possible to bake images with transparency in Cycles, but it's possible to figure out some workarounds, depending on what you want to achieve.
To bake a transparent shadow texture:
Set up your scene. I'll just use a simple tree in my example. Place a plane under your objects and scale it big enough to catch all the shadows.
Create a new image in the
UV/Image Editorand unwrap the plane.
Create a simple diffuse material for the plane. Add an
Image Texturenode to the material and select the new image you just created.
Samplesto a nice number (depending on your scene) and set
Bake the image. You should have something like this:
Use nodesand delete the default nodes. Then set up the nodes like this:
Viewer Nodefrom the drop down list.
Save the image as an
*.tga- whatever you need).
Your baked transparent shadow texture is ready.