How to Preserve Compositor Glare Outside an Object’s Alpha in a Blender PNG
To keep Blender’s compositor glare visible beyond an object in a transparent PNG, give the halo its own nonzero alpha and preserve the corresponding RGB brightness. Saving as RGBA is necessary, but it cannot make glow visible where the exported alpha remains zero.
For a reusable transparent graphic, you can build an expanded alpha from the image’s color channels. This produces a translucent approximation of the glare. If you need the exact additive appearance over a particular background, finish the composite against that background before exporting.
Why can glare appear in Blender but disappear from the PNG?
Glare spreads bright image content beyond the original object silhouette. Blender’s Glare node provides an Image output containing the image plus glare and a separate Glare output containing only the effect. Neither output should be assumed to provide the opacity mask your destination needs. Blender Manual: Glare Node
The underlying issue is how color and transparency work together. PNG stores straight, or unassociated, color: RGB values are separate from alpha. During ordinary compositing, a fully transparent pixel contributes no foreground color, even if its stored RGB contains a bright halo. PNG Specification: Alpha Representation
Imagine an original scene containing a small orange desk ornament with an illuminated ring. The ornament has an opaque body, while the surrounding frame is transparent. Glare adds orange light around the ring. If the saved alpha still describes only the ornament, an ordinary PNG viewer hides the surrounding light.
The useful diagnostic is therefore to inspect both RGB and alpha. A visible halo in an RGB preview establishes that color exists; a soft halo in the alpha channel establishes that an ordinary transparent overlay can display it.
Which result should you export?
| Intended use | Recommended approach | What to expect |
|---|---|---|
| One transparent PNG placed over different backgrounds | Build an expanded alpha using the workflow below | A visible translucent halo whose appearance changes with the background |
| A finished image with a known background | Composite the object and glare over that background in Blender | The background-specific appearance you approved |
| Further compositing with independent glow adjustments | Keep the object and glare separate, preferably in OpenEXR | Control over the object’s opacity and the glare’s additive contribution |
Blender recommends OpenEXR for images intended for compositing or grading, and PNG for on-screen output. Its format documentation also distinguishes floating-point OpenEXR from PNG’s 8-bit or 16-bit channels. Blender Manual: Supported Graphics Formats
A single transparent PNG cannot reproduce an unchanged additive glow over every possible background using ordinary alpha blending. Alpha blending reduces the background contribution as foreground opacity increases. Additive compositing adds light without that reduction. This difference follows from the PNG compositing equation; it is a limitation of the chosen representation, rather than a missing export checkbox. PNG Specification: Alpha Channel Processing
How should you prepare the transparent render?
The following node names and sockets refer to Blender 4.5 LTS. Use the compositor’s node search to find nodes if menu locations differ in your version.
Enable Render Properties → Film → Transparent, then render your object. This makes the rendered background transparent for later compositing. Leave enough space around the object for the intended halo; the export should include the glow’s full spread. Blender Manual: Film
In the compositor, connect Render Layers: Image to a Glare node. Choose Fog Glow for a soft halo, then adjust Threshold, Strength, and Size while viewing the result. Use High quality for the final evaluation. Threshold controls which bright regions contribute, while Size controls the spread. Blender Manual: Glare Node
Keep the original Render Layers: Alpha available as a separate connection. It preserves the opacity of dark object surfaces that would disappear if you derived transparency solely from brightness.
For the desk ornament, the intended result is an opaque body, an illuminated ring, and a gradually fading orange halo outside the body. Avoid judging the halo solely against a checkerboard; check a solid dark background as well.
How do you build an alpha that includes the halo?
The following is a derived node recipe, rather than a built-in Blender glare preset. It uses the maximum RGB channel as a practical opacity estimate and combines it with the original object alpha.
Call the RGB channels from Glare: Image R, G, and B, and call the original render alpha A_object. Build the new alpha as A = clamp(max(A_object, R, G, B), 0, 1). The maximum keeps an opaque dark body opaque while allowing colored glare to introduce opacity outside it.
- Connect
Glare: ImagetoSeparate Color, set toRGB. - Add a
Mathnode set toMaximum; connectRedandGreen. - Add another
Maximum; compare the previous result withBlue. - Add a third
Maximum; compare that result withRender Layers: Alpha. - Enable
Clampon this final Math node. Its output is the expanded alphaA.
Blender’s Separate Color node exposes individual color channels. The Math node’s Maximum operation selects the larger input, and its Clamp option limits the output to zero through one. Blender Manual: Separate Color Node, Blender Manual: Math Node
Preview A as a grayscale image. The object body should remain solid white where it was opaque, and the surrounding halo should fade through gray to black. If the preview shows only the original silhouette, trace the connections back to the glare image’s RGB channels.
This recipe assumes nonnegative RGB values. It is designed for an ordinary object-and-glow graphic; images containing negative values from other processing need a deliberate color treatment before applying it.
How do you preserve brightness while changing alpha?
Do not simply multiply the existing image by the expanded mask. That would attenuate an already faint halo. Instead, explicitly calculate straight RGB for the new alpha, then return the image to Blender’s expected premultiplied form.
Blender uses premultiplied alpha for render layers and compositor images. Its documentation advises converting straight-alpha data back to premultiplied before the Composite output. Blender Manual: Alpha Convert Node
Continue the node setup as follows:
- Create a
Math: Maximumnode comparingAwith0.000001. Call this denominatorD. - Add three
Math: Dividenodes: calculateR / D,G / D, andB / D. Leave their output clamping disabled. - Add
Combine Color, set toRGB. Connect the three divided channels to its matching color inputs and connectAto itsAlphainput. - Connect that image to
Alpha Convert, set toTo Premultiplied. - Connect the converted result to
Composite, and optionally toViewerfor inspection.
The Combine Color node assembles RGB and alpha into one image. Here, its RGB inputs deliberately contain straight color; the following conversion associates those colors with alpha for Blender’s output pipeline. Blender Manual: Combine Color Node
The small denominator floor prevents division by zero. It slightly attenuates values where the constructed alpha is below 0.000001; it is a numerical guard, not a recommended artistic cutoff.
As an illustrative calculation, take a halo pixel outside the ornament with linear RGB (0.12, 0.04, 0.01) and original alpha 0. The new alpha is 0.12. Dividing produces straight RGB (1, 0.3333, 0.0833). Premultiplying restores approximately (0.12, 0.04, 0.01), preserving the original color contribution over black. These arithmetic values were checked with a small deterministic calculation; they are not measurements from a rendered scene.
For nonnegative channels no greater than one, this construction keeps straight RGB within zero through one. HDR highlights above one still require display rendering, and their final PNG appearance depends on color management. Treat the exported appearance as something to inspect, rather than assuming that scene-linear arithmetic guarantees an identical display result.
How should you save and check the PNG?
Set the actual export to PNG and RGBA. If you save manually from the Image Editor, check those settings in that save operation. When saving a display-ready render, use Save As Render to apply the render’s view and display transforms. PNG supports both 8-bit and 16-bit output; higher precision can help with subtle gradients, but cannot repair an incorrect alpha. Blender Manual: Supported Graphics Formats
Reopen the saved file as a new image. This checks the exported PNG instead of relying on the compositor preview. Evaluate it in the application where you intend to use it, over these three backgrounds:
- Black: Does the halo extend beyond the ornament and fade smoothly?
- Mid-gray: Is there a dark fringe or an unexpectedly dense patch around the object?
- White: Does the colored halo remain acceptable, even though it looks less luminous?
For an additional Blender check, load the exported PNG and place it over a solid background with Alpha Over, using Factor set to 1. Its first Image input is the background and its second is the foreground. Leave Convert Premultiplied disabled for normally loaded compositor images. Blender Manual: Alpha Over Node
The illustrative halo pixel above produces red 0.56 over a linear gray background of 0.5: 0.12 + (1 − 0.12) × 0.5. Pure addition would produce 0.62. That difference explains why a successful transparent PNG can retain its halo while looking different from the original additive composite.
What should you change if the result still looks wrong?
| Visible problem | Next check or decision |
|---|---|
| Halo disappears exactly at the object silhouette | Inspect the exported alpha; confirm the expanded mask reaches the final output |
| Object’s dark surfaces become transparent | Confirm the mask includes the original render alpha |
| Halo becomes much dimmer during mask construction | Check for an extra mask multiplication or a second premultiplication |
| Entire frame becomes opaque | Check that Combine Color: Alpha receives the constructed mask rather than its default value |
| Glow ends abruptly at the image boundary | Increase framing space or reduce the glare spread |
| Halo looks acceptable on black but muddy on a light background | Reassess whether a translucent PNG suits the intended placement |
| Preview and saved brightness differ | Check the saved image’s color-management settings and inspect it in the destination application |
If the destination background is already known, finish the composite in Blender and export that finished image. If the background must remain changeable and additive glare matters, retain separate object and glare elements for a compositor that supports that workflow. For a single reusable PNG, approve the expanded-alpha result against the actual backgrounds it will encounter: the finished asset should retain the object’s opacity, carry a smooth halo beyond its silhouette, and blend acceptably after reopening.
Sources
- Glare Node — Blender 4.5 LTS Manual
- Portable Network Graphics (PNG) Specification (Third Edition)
- Supported Graphics Formats — Blender 4.5 LTS Manual
- Film — Blender 4.5 LTS Manual
- Separate Color Node — Blender 4.5 LTS Manual
- Math Node — Blender 4.5 LTS Manual
- Alpha Convert Node — Blender 4.5 LTS Manual
- Combine Color Node — Blender 4.5 LTS Manual
- Alpha Over Node — Blender 4.5 LTS Manual