Compositing - Mix Node #95568

Closed
opened 2022-02-07 01:15:21 +01:00 by Rui Martins · 15 comments

System Information
Operating system: Windows-10-10.0.19043-SP0 64 Bits
Graphics card: NVIDIA GeForce GTX 960M/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 471.68

Blender Version
Broken: version: 3.0.1, branch: master, commit date: 2022-01-25 17:19, hash: dc2d180181
Worked: (newest version of Blender that worked as expected)

Short description of error
[Please fill out a short description of the error here]
Mix node (Compositing) displays the image correctly (Viewer Node) however whenever if it is connect to a File Output node it only saves the image that is connected to the first socket of the Mix node.

Exact steps for others to reproduce the error
[Please describe the exact steps needed to reproduce the issue]
[Based on the default startup or an attached .blend file (as simple as possible)]
I was on the compositing tab doing some post-processing work. I had an alpha and two different images that I would like to mix. I added a mix node to the node setup and connected each image (Alpha, Image 1, Image 2) to the corresponding inputs. I used the Viewer Node to have an idea on what I was doing. Everything was fine however when I connected a File Output node and rendered the animation again only the image on the first input was being saved into the folder that I selected (the alpha was applied as well). Inside Blender everything was still great and working accordingly.

I tryed to open the same blend file in another computer and the same happened.

**System Information** Operating system: Windows-10-10.0.19043-SP0 64 Bits Graphics card: NVIDIA GeForce GTX 960M/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 471.68 **Blender Version** Broken: version: 3.0.1, branch: master, commit date: 2022-01-25 17:19, hash: `dc2d180181` Worked: (newest version of Blender that worked as expected) **Short description of error** [Please fill out a short description of the error here] Mix node (Compositing) displays the image correctly (Viewer Node) however whenever if it is connect to a File Output node it only saves the image that is connected to the first socket of the Mix node. **Exact steps for others to reproduce the error** [Please describe the exact steps needed to reproduce the issue] [Based on the default startup or an attached .blend file (as simple as possible)] I was on the compositing tab doing some post-processing work. I had an alpha and two different images that I would like to mix. I added a mix node to the node setup and connected each image (Alpha, Image 1, Image 2) to the corresponding inputs. I used the Viewer Node to have an idea on what I was doing. Everything was fine however when I connected a File Output node and rendered the animation again only the image on the first input was being saved into the folder that I selected (the alpha was applied as well). Inside Blender everything was still great and working accordingly. I tryed to open the same blend file in another computer and the same happened.
Author

Added subscriber: @Rui_Martins

Added subscriber: @Rui_Martins
Member

Added subscriber: @EAW

Added subscriber: @EAW
Member

Changed status from 'Needs Triage' to: 'Needs User Info'

Changed status from 'Needs Triage' to: 'Needs User Info'
Member

Please upload an example Blend file.

Please upload an example Blend file.
Member

Added subscriber: @PratikPB2123

Added subscriber: @PratikPB2123
Author

I will have to upload the file that I was working with since I could not find a way to reproduce the bug on a new empty file.d_bosstv_Day.001.blend

I will have to upload the file that I was working with since I could not find a way to reproduce the bug on a new empty file.[d_bosstv_Day.001.blend](https://archive.blender.org/developer/F12852922/d_bosstv_Day.001.blend)
Member

Changed status from 'Needs User Info' to: 'Needs Triage'

Changed status from 'Needs User Info' to: 'Needs Triage'

Added subscriber: @mano-wii

Added subscriber: @mano-wii

I investigated the huge file (which could be simplified) and I was able to detect the problem.
It's the same problem as #81199 (Some effects [bloom, smoke, fire, ..] still don't save in PNG with transparent background (occlusion vs. emission)).
In the file, the environment works as an emission with alpha 0%.
PNG does not support emission, so anything with alpha 0% is pre-multiplied and discarded.
Try to work with image formats other than PNG.

I investigated the huge file (which could be simplified) and I was able to detect the problem. It's the same problem as #81199 (Some effects [bloom, smoke, fire, ..] still don't save in PNG with transparent background (occlusion vs. emission)). In the file, the environment works as an emission with alpha 0%. PNG does not support emission, so anything with alpha 0% is pre-multiplied and discarded. Try to work with image formats other than PNG.

Closed as duplicate of #81199

Closed as duplicate of #81199
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

Changed status from 'Duplicate' to: 'Archived'

Changed status from 'Duplicate' to: 'Archived'
Member

Not sure I understand correctly:

  • the renderlayer has alpha, this carries on in the nodetree, you can check by enabling Use Alpha on the viewer.
    {F12855346 size=full}
  • why not use the Alpha Over node?
    {F12855373 size=full}

There are of course other methods to handle the alpha (e.g. Set Alpha on the renderlayer, ...)

This does not look like a bug to me, will archive.
(but of course feel free to comment again if this is a misunderstanding or if issues persist).

Not sure I understand correctly: - the renderlayer has alpha, this carries on in the nodetree, you can check by enabling `Use Alpha` on the viewer. {[F12855346](https://archive.blender.org/developer/F12855346/image.png) size=full} - why not use the Alpha Over node? {[F12855373](https://archive.blender.org/developer/F12855373/image.png) size=full} There are of course other methods to handle the alpha (e.g. `Set Alpha` on the renderlayer, ...) This does not look like a bug to me, will archive. (but of course feel free to comment again if this is a misunderstanding or if issues persist).
Member

In #95568#1304075, @mano-wii wrote:
I investigated the huge file (which could be simplified) and I was able to detect the problem.
It's the same problem as #81199 (Some effects [bloom, smoke, fire, ..] still don't save in PNG with transparent background (occlusion vs. emission)).
In the file, the environment works as an emission with alpha 0%.
PNG does not support emission, so anything with alpha 0% is pre-multiplied and discarded.
Try to work with image formats other than PNG.

Well yep, that on top is also true

> In #95568#1304075, @mano-wii wrote: > I investigated the huge file (which could be simplified) and I was able to detect the problem. > It's the same problem as #81199 (Some effects [bloom, smoke, fire, ..] still don't save in PNG with transparent background (occlusion vs. emission)). > In the file, the environment works as an emission with alpha 0%. > PNG does not support emission, so anything with alpha 0% is pre-multiplied and discarded. > Try to work with image formats other than PNG. Well yep, that on top is also true
Author

Alright. Thank you very much. I will use other methods

Alright. Thank you very much. I will use other methods
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
5 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#95568
No description provided.