How to Bake Overlapping Transparent Foliage onto a Blender Plane Without Black Rectangles
To flatten overlapping leaf cards into one transparent foliage plane, capture the arrangement with an orthographic camera, render against a transparent background, save a PNG with RGBA, and connect both its color and alpha in the replacement material. This preserves the visible leaves behind transparent areas of the cards in front.
This workflow is for a Blender artist making one flat foliage card from several overlapping textured planes. It uses a camera render as the texture capture, rather than the Bake button. The instructions reference Blender 4.5 LTS and use Cycles throughout, so the source capture and final check use the same transparency system.
Why do black rectangles appear around the leaves?
A leaf image contains two separate kinds of information: RGB describes its color, while alpha describes its opacity. Connecting only color leaves the rectangular mesh visible. Black RGB pixels outside the leaf then appear as black rectangles instead of disappearing. Blender’s Image Texture node supplies separate Color and Alpha outputs; the material must use the opacity information as well. Image Texture Node — Blender Manual
The same symptom can arise at different stages. Use this sequence to locate it before changing settings:
| Where the rectangle first appears | What to inspect first |
|---|---|
| Around an individual source leaf | Source image alpha and material connections |
| Only where many cards overlap | Cycles transparency bounce limit |
| Across the entire saved image | PNG saving options and whether alpha was retained |
| Only on the replacement plane | Replacement material’s alpha connection |
| As a narrow dark outline | Image alpha interpretation and edge pixels |
For an illustrative arrangement, imagine three original fern cards: a broad front frond, a smaller frond behind it, and a narrow side frond. Through a gap in the front frond, the smaller one should remain visible. That gap is the most useful test location: it checks whether the capture preserves the layered arrangement rather than merely its outer silhouette.
Should you use texture baking or an orthographic render?
Blender’s Selected to Active baking projects shading from selected source objects onto an active target mesh using rays. It requires a target UV map and an active Image Texture node containing the destination image. Its documented bake passes include Diffuse, Emit, and Combined. These are shading passes; selecting one does not establish a complete RGBA foliage-flattening workflow. Render Baking — Blender Manual
For this task, an orthographic capture is the practical choice because the desired output is the arrangement as seen from one direction. Orthographic projection keeps an object’s apparent size independent of its distance from the camera. Small depth offsets between cards therefore establish overlap without introducing perspective scaling. Cameras — Blender Manual
Choose the appearance before capturing. Use an unlit material when the texture should retain the source leaf colors without scene lighting. Keep the existing shaded materials when the texture should include the current lighting and shadows. The latter produces a picture of that lighting, which will remain embedded when the texture is reused.
A single replacement plane also fixes the overlap to the capture direction. It cannot preserve the original arrangement’s changing depth relationships when viewed from widely different angles. Keep the source geometry if those changing views matter.
How should you prepare the overlapping source cards?
Make a working copy of the foliage arrangement before changing its materials. Place the cards approximately in the XY plane, with the intended front facing positive Z. Give overlapping cards small, deliberate Z offsets instead of leaving their surfaces exactly coincident. In the fern example, the broad front frond should sit closer to the camera than the smaller rear frond.
For a predictable unlit capture, give each source material this node setup:
- Load its leaf image in an
Image Texturenode. - Connect
Colorto anEmissionnode’sColor; setStrengthto1. - Add a
Transparent BSDFand leave its color pure white. - Connect the Transparent BSDF to the first shader input of a
Mix Shader. - Connect Emission to the second shader input.
- Connect the image’s
Alphaoutput to the Mix Shader’sFac. - Connect the Mix Shader output to
Material Output→Surface.
This ordering matters. At factor zero, Mix Shader uses its first shader; at factor one, it uses the second. Transparent image pixels therefore become transparent surfaces, while opaque leaf pixels use emission. Pure white is required for a completely transparent Transparent BSDF. Mix Shader — Blender Manual, Transparent BSDF — Blender Manual
Emission strength 1 provides a shadeless source color, making it useful for this unlit capture. It does not require scene lights to illuminate the leaf. Check one card in isolation, then restore the whole arrangement: the rear frond should show through the front frond’s transparent gaps. Emission — Blender Manual
How do you frame the foliage without distortion?
Set the render engine to Cycles. Add a camera above the arrangement, looking straight down the negative Z axis. For the XY setup described here, a camera at positive Z with rotation 0, 0, 0 looks toward the cards. Set its camera type to Orthographic, then adjust Orthographic Scale while viewing through the camera until the entire arrangement fits. The scale controls the projected size in the image. Cameras — Blender Manual
Use a square output such as 2048 × 2048 for a square replacement plane. This is an illustrative starting resolution, not a required value. Leave a small transparent border around the longest leaf tips. Disable camera depth of field for a crisp texture capture, and exclude any floor, backdrop, or replacement plane from the render.
For an unlit color texture, use Standard as the view transform, neutral exposure, and no additional artistic grading. Blender documents Standard as applying the display conversion without an additional tone-mapping transform. This avoids embedding an unnecessary photographic look into the reusable color texture. Color Management — Blender Manual
How do you preserve transparency through all the overlaps?
Enable Render Properties → Film → Transparent. This makes the world background transparent; the leaf materials still need their own transparency connections. A transparent world cannot remove an opaque rectangle belonging to a source card. Film — Blender Manual
Next, inspect Render Properties → Light Paths → Max Bounces → Transparent. Cycles controls transparency bounces separately from other bounces. If a camera ray crosses many transparent card surfaces before reaching a visible leaf or the background, this setting is relevant. Increasing Transmission is a different adjustment. Light Paths — Blender Manual
Use a small diagnostic render before the full capture. If isolated cards look correct but a dense overlap becomes dark, raise Transparent above the number of card surfaces along that view and render again. For example, with roughly twelve overlapping surfaces, 16 is a reasonable trial value. This is a troubleshooting example, not a universal setting. Compare the same gap before and after changing it.
Render the image. Empty space should show the transparency checkerboard, while the rear leaves remain visible through front-card gaps. If a full rectangle remains, return to that source card’s material before exporting.
How do you save the image and apply it to one plane?
In the rendered image window, choose Image → Save As. Select PNG and explicitly select RGBA. PNG supports alpha, but the RGB saving option omits it. Save the image, then reopen the saved file to verify the actual deliverable rather than relying only on the Render Result. Supported Graphics Formats — Blender Manual
Create a replacement plane with the same proportions as the captured image. Map its four UV corners to the four corners of the full image square. Load the saved PNG in an Image Texture node and recreate the transparent/emission material described above, using this new image for both color and alpha. An unconnected Image Texture vector input uses the active UV map. Image Texture Node — Blender Manual
For a conventional color PNG, check that its color space is sRGB and its alpha interpretation is Straight. Blender describes straight alpha as separate color and opacity channels, commonly used by PNG. None ignores alpha and makes the image opaque. Do not switch the entire color image to Non-Color merely because it also contains alpha. Image Settings — Blender Manual
Hide the original cards from the verification render. Otherwise, the source arrangement can conceal missing details or an incorrectly configured replacement material.
What checks confirm the replacement actually works?
Inspect the replacement against a light background and then a dark one. Use temporary background geometry behind it for these checks, separate from the original transparent capture. A checkerboard preview alone can make a narrow fringe difficult to judge.
Check three locations at close range:
- Outer silhouette: Leaf tips end cleanly, with no rectangular boundary.
- Internal gap: The smaller rear frond captured through the broad front frond remains visible.
- Overlap edge: The front frond retains its intended position over the rear one, without a dark rectangular patch.
If the whole plane is opaque, inspect the saved alpha and replacement shader. If only thin edges are dark, inspect straight versus premultiplied interpretation first. Blender distinguishes these representations because premultiplied RGB already includes alpha multiplication. If the interpretation is correct, inspect the source image’s edge colors rather than changing unrelated render settings. Image Settings — Blender Manual
Finally, view the replacement at its intended display size. A useful foliage card preserves the recognizable leaf shapes, internal openings, and chosen overlap at that size. Once those checks pass, the saved RGBA texture and its correctly connected material provide the complete flattened result; retain the original cards for future changes to the arrangement.
Sources
- Render Baking — Blender 4.5 LTS Manual
- Cameras — Blender 4.5 LTS Manual
- Image Texture Node — Blender 4.5 LTS Manual
- Mix Shader — Blender 4.5 LTS Manual
- Transparent BSDF — Blender 4.5 LTS Manual
- Emission — Blender 4.5 LTS Manual
- Color Management — Blender 4.5 LTS Manual
- Film — Blender 4.5 LTS Manual
- Light Paths — Blender 4.5 LTS Manual
- Supported Graphics Formats — Blender 4.5 LTS Manual
- Image Settings — Blender 4.5 LTS Manual