0

I have set up in the compositor window the nodes to for my object to have emission applied to it. When it renders the animation (using Cycles),the emission is not included. I have googled and not found a solution for this problem I'm facing.

enter image description here

blender breath
  • 3,737
  • 1
  • 10
  • 40
  • can u provide blend file? and tbh the render result looks like it has emission? – Chris Jan 31 '24 at 10:23
  • https://blender.stackexchange.com/questions/260675/glare-alpha-not-saved-to-png-file https://blender.stackexchange.com/questions/164895/rendering-with-a-luminous-outline-on-transparent-background/ https://blender.stackexchange.com/questions/222837/blender-does-not-set-the-alpha-channel-correctly https://blender.stackexchange.com/questions/177022/glare-effect-transperancy-problem/177030#177030 and more https://blender.stackexchange.com/search?tab=votes&q=png%20glare – Duarte Farrajota Ramos Jan 31 '24 at 10:49
  • I guess what you mean is when you save the render with transparency it seems to have no emission, because the render result itself has as @Chris already remarked. The reasons for this are all given in the various links provided here. Just as a simple solution: never render your images with the glow combined with the image. Set Mix in the Glare node to 1 so it only outputs the glow. In Blender you can add it over the original image and control the amount with the factor. For use in other softwares where you want to keep the transparency, save the image without glow and the glow separately. – Gordon Brinkmann Jan 31 '24 at 13:05
  • This is if you do not want to handle EXRs. Save the glow image with disabled alpha channel, i.e in the PNG options "RGB" instead of "RGBA" to have the glow on a black background. In software like Photoshop you can then add the glow to layers below. However, this does not work if you want to keep transparency on underlying layers because the black background replaces transparency. So in order to have a glow with transparent background, use the RGB channels as masks to fill empty layers with red, green and blue and add them together. A bit too complex for comments, but the question is closed. – Gordon Brinkmann Jan 31 '24 at 13:14

1 Answers1

1

The PNG won't keep the effects that exist over transparency. You need to find a trick, a basic one would be to render your image over a black background:

enter image description here

Then use these images in your image or video software in a layer that will be over your background in Add mode:

enter image description here

moonboots
  • 155,560
  • 7
  • 105
  • 171
  • Why not use a format that support transparent emission. Like EXR? – Leander Jan 31 '24 at 10:49
  • Here's the File:

    I see what you mean moonboots, but my file has animation with Boolean, which reveals each object which has emission. Like airport runway lights which animate on off.

    https://i0.wp.com/aerosavvy.com/wp-content/uploads/2016/10/Airport-Lighting-Featured-Image.jpg?fit=905%2C509&ssl=1

    – blender breath Jan 31 '24 at 10:51
  • Hi there Leander, EXR doesn't come with alpha background:

    https://www.youtube.com/watch?v=tmb5HRU1cUo

    – blender breath Jan 31 '24 at 10:56
  • I couldn't make EXR work either, have you been able? @Leander – moonboots Jan 31 '24 at 11:00
  • @blender breath so maybe you should mix the background directly in the Compositor? – moonboots Jan 31 '24 at 11:01
  • Just did a test. Both (PNG! and EXR) work just fine. Are you viewing the images incorrectly maybe? Does GIMP possibly just not import the images correctly. (I confirmed the correct channel data in nuke and blender independently.) – Leander Jan 31 '24 at 11:30
  • @Leander it works in Blender, what does it give if you export and try to open with Photoshop, Krita, Da Vinci or whatever app? And if it works, what are the saving options? – moonboots Jan 31 '24 at 11:57
  • Photoshop is mainly for image editing, photography or painting. So it will not show us only the RGB data, but combine it with the alpha. (Like premultiplication.) Choose "As alpha Channel" for the EXR when importing it into photoshop. Compositing Software (blender, nuke, natron, resolve) can show your r, g, b and a separately by default - I didn't change anything. – Leander Jan 31 '24 at 13:29
  • OK, thanks I'll note that, I can't test in DaVinci or Photoshop because I don't have them – moonboots Jan 31 '24 at 13:54
  • @lLander, can you also please test to see if it works with After effects? Can you do a screen recording so I can see your export settings from Blender, and how it works in another software, how the emission is imported. Thanks. – blender breath Feb 01 '24 at 04:24
  • @moonboots, unfortunately I need to export into another software as PNG alpha background. So Ill have to do a work around regarding the emission. Thank you. – blender breath Feb 01 '24 at 04:35
  • @blender breath So have you tried the kind of trick I show? – moonboots Feb 01 '24 at 10:31
  • Yes, thank you, it was the closest to getting a better result. I hope in the near future the developers could possibly find a solution for this issue, or maybe an add-on. – blender breath Feb 01 '24 at 11:31