0
$\begingroup$

I have a problem with transparent emissive objects in render, they are not visible in rendered output files.

Eevee or Cycles doesn't matter, I always get the same result.

What am I missing? Maybe there is a problem with the material.

enter image description here

$\endgroup$
4
  • $\begingroup$ @GordonBrinkmann let me give more practical answer for this problem $\endgroup$
    – Crantisz
    Commented Aug 25, 2022 at 11:12
  • $\begingroup$ @Crantisz Your answer won't be deleted if this question gets closed. There are practical answers here as well, I just didn't search for it now. I've answered this myself quite a while ago. If we won't animate people to search for answers, we can give up this whole duplicate thing and answer everything all over and over again... I mean, after all this "PNG not having proper transparent glow thing" didn't change between Blender versions... ;) $\endgroup$ Commented Aug 25, 2022 at 11:30
  • $\begingroup$ @GordonBrinkmann I mean, I don't quite like the answer that you are linking at. $\endgroup$
    – Crantisz
    Commented Aug 25, 2022 at 11:33
  • $\begingroup$ @Crantisz Yeah I'm sorry, there are better answers but I have no time at the moment to search for the best from the dozens that are online... but there are some ;) $\endgroup$ Commented Aug 25, 2022 at 12:06

1 Answer 1

3
$\begingroup$

Alpha channel is used differently in different types of software. In Blender, Premultiplied Alpha Method is used, the alpha channel indicates not the opacity of the layer, but how much light it blocks. Let me show the example:

enter image description here

Here you can see, that Alpha channel is 0, which means full transparent in straight Alpha, but in premultiplied it transparent but adds some color value, as color mix in add state.

Then you save this image in PNG, alpha will be converted from premultiplied to straight and these pixels becomes transparent. It is an actual headache for newcomers, these are just a couple of questions:

Glare Transparency Correct in Render, but lost in save to PNG
EXR color difference to PNG
Why are transparent colours desaturated when exported?
How do I get the Glare node to output transparent instead of Black background
Glow effect invisible on transparent background
Blender result different from png rendered

The problem is that you cannot convert Premultiplied Alpha to Straight Alpha without loosing color information. So the common solutions are:

  1. Save in the EXR format. The OpenEXR file format uses this alpha type.
  2. Use compositing nodes to manually add alpha values so that the result of compositing is more suitable for you.

Here is the setup that you can use for it:

enter image description here

More complicated setup to reduce darkness:

enter image description here

Color ramp here is completely up to you, controls how much opacity will be in glow areas.

enter image description here

Info from blender manual:

Straight Alpha Method where RGBA channels are stored as (R, G, B, A) channels, with the RGB channels unaffected by the alpha channel. This is the alpha type used by paint programs such as Photoshop or Gimp, and used in common file formats like PNG, BMP or Targa. So, image textures or output for the web are usually straight alpha.

Premultiplied Alpha Method where RGBA channels are stored as (R × A, G × A, B × A, A), with the alpha multiplied into the RGB channel.

This is the natural output of render engines, with the RGB channels representing the amount of light that comes toward the viewer, and alpha representing how much of the light from the background is blocked. The OpenEXR file format uses this alpha type. So, intermediate files for rendering and compositing are often stored as premultiplied alpha.

$\endgroup$
1
  • $\begingroup$ Thanx! I'll try. Looks like it's easier to render with black backgrond and just mix it with Screen blend mode in video editor. ))) But anyway it's very useful. I should it try for experience. I just didn't have to deal with it. $\endgroup$
    – RusDark
    Commented Aug 25, 2022 at 11:18

Not the answer you're looking for? Browse other questions tagged .