Add Transparent BSDF Shader over Emission Shader Alpha export issue #103934

Closed
opened 2023-01-17 11:09:42 +01:00 by Jan-Erik · 9 comments

System Information
Operating system: Windows-10-10.0.19045-SP0 64 Bits
Graphics card: NVIDIA GeForce RTX 3090/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 522.30

Blender Version
Broken: version: 3.4.1, branch: blender-v3.4-release, commit date: 2022-12-19 17:00, hash: 55485cb379
Worked: (newest version of Blender that worked as expected)

Short description of error
When you render an image with semi transparent emission shader, the alpha information gets lost when you save the image. In the viewport it is displayds properly.
This worked for me in older versions of blender

grafik.png

transparent_test.png

grafik.png

xray_Bug.blend

Exact steps for others to reproduce the error
When you add a transparent shader over an emission shader with layer weight plugged in strength, the viewport and the final saved image differ.

**System Information** Operating system: Windows-10-10.0.19045-SP0 64 Bits Graphics card: NVIDIA GeForce RTX 3090/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 522.30 **Blender Version** Broken: version: 3.4.1, branch: blender-v3.4-release, commit date: 2022-12-19 17:00, hash: `55485cb379` Worked: (newest version of Blender that worked as expected) **Short description of error** When you render an image with semi transparent emission shader, the alpha information gets lost when you save the image. In the viewport it is displayds properly. This worked for me in older versions of blender ![grafik.png](https://archive.blender.org/developer/F14158725/grafik.png) ![transparent_test.png](https://archive.blender.org/developer/F14158728/transparent_test.png) ![grafik.png](https://archive.blender.org/developer/F14158733/grafik.png) [xray_Bug.blend](https://archive.blender.org/developer/F14158731/xray_Bug.blend) **Exact steps for others to reproduce the error** When you add a transparent shader over an emission shader with layer weight plugged in strength, the viewport and the final saved image differ.
Author

Added subscriber: @JanErik

Added subscriber: @JanErik

Closed as duplicate of #81199

Closed as duplicate of #81199
Author

Added subscriber: @richard-27

Added subscriber: @richard-27
Author

This comment was removed by @JanErik

*This comment was removed by @JanErik*
Richard Antalik was assigned by Jan-Erik 2023-01-18 10:39:34 +01:00
Richard Antalik was unassigned by Jan-Erik 2023-01-18 10:40:27 +01:00
Author

Added subscriber: @iss

Added subscriber: @iss
Author

This is not only bloom/emission related
grafik.png
grafik.png
grafik.png

This is not only bloom/emission related ![grafik.png](https://archive.blender.org/developer/F14171144/grafik.png) ![grafik.png](https://archive.blender.org/developer/F14171147/grafik.png) ![grafik.png](https://archive.blender.org/developer/F14171151/grafik.png)
Member

Added subscriber: @EAW

Added subscriber: @EAW
Member

Thank you for the report @JanErik.

This is occurring because you are using the PNG format, which doesn't support associated ('premultiplied') alpha. If you switch the rendered image to only show the alpha
channel, you will see that there is nothing where the sphere is. The PNG specification says that any pixels with zero alpha must have their color channels also set to zero when saving a PNG file

That is why this is a duplicate of #81199 (Some effects [bloom, smoke, fire, ..] still don't save in PNG with transparent background (occlusion vs. emission)) and #81390 (Blender 2.91.0 Alpha - Blender cannot export proper image when containing smooth gradient of Alpha).

Thank you for the report @JanErik. This is occurring because you are using the PNG format, which doesn't support associated ('premultiplied') alpha. If you switch the rendered image to only show the alpha channel, you will see that there is nothing where the sphere is. The PNG specification says that any pixels with zero alpha must have their color channels also set to zero when saving a PNG file That is why this is a duplicate of #81199 (Some effects [bloom, smoke, fire, ..] still don't save in PNG with transparent background (occlusion vs. emission)) and #81390 (Blender 2.91.0 Alpha - Blender cannot export proper image when containing smooth gradient of Alpha).
Author

Thank you @EAW, I was irritated bcause the bug report it was merged in, mentionend specifically (occlusion vs. emission).
But anyways I tried also Tiff, WebP and EXR, they also dont work. Is there any format, that supports this premuliplied alpha?

Thank you @EAW, I was irritated bcause the bug report it was merged in, mentionend specifically (occlusion vs. emission). But anyways I tried also Tiff, WebP and EXR, they also dont work. Is there any format, that supports this premuliplied alpha?
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
3 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#103934
No description provided.