EEVEE Film transparent not working #79568

Closed
opened 2020-08-05 20:30:48 +02:00 by Everton Schneider · 25 comments

System Information
Operating system: Linux-5.4.0-42-generic-x86_64-with-debian-bullseye-sid 64 Bits
Graphics card: GeForce RTX 2080 SUPER/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 440.100

Blender Version
Broken: version: 2.91.0 Alpha, branch: master, commit date: 2020-08-05 18:06, hash: 854f73b4a2
Worked: b1bfcf9f6bc2^
Caused by da741013a1

Short description of error
The render setting film-transparent option gives a black opaque background color as a result. It should be alpha in the backgound.

Exact steps for others to reproduce the error
Default file just enable transparent option under film with EEVEE and hit F12. You should see the default cube with the alpha background but you get a black opaque BG color instead.

Screenshot from 2020-08-05 15-26-14.png

**System Information** Operating system: Linux-5.4.0-42-generic-x86_64-with-debian-bullseye-sid 64 Bits Graphics card: GeForce RTX 2080 SUPER/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 440.100 **Blender Version** Broken: version: 2.91.0 Alpha, branch: master, commit date: 2020-08-05 18:06, hash: `854f73b4a2` Worked: b1bfcf9f6bc2^ Caused by da741013a1 **Short description of error** The render setting film-transparent option gives a black opaque background color as a result. It should be alpha in the backgound. **Exact steps for others to reproduce the error** Default file just enable transparent option under film with EEVEE and hit F12. You should see the default cube with the alpha background but you get a black opaque BG color instead. ![Screenshot from 2020-08-05 15-26-14.png](https://archive.blender.org/developer/F8749475/Screenshot_from_2020-08-05_15-26-14.png)

Added subscriber: @EvertonSchneider

Added subscriber: @EvertonSchneider

#79826 was marked as duplicate of this issue

#79826 was marked as duplicate of this issue

#79792 was marked as duplicate of this issue

#79792 was marked as duplicate of this issue

#79605 was marked as duplicate of this issue

#79605 was marked as duplicate of this issue

#79681 was marked as duplicate of this issue

#79681 was marked as duplicate of this issue
Member

Added subscriber: @EAW

Added subscriber: @EAW
Member

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'
Member

I can confirm using version: 2.91.0 Alpha, branch: master, commit date: 2020-08-05 13:59, hash: 2ca006f6c1, type: Release

IIRC, it has been like this for a few days, and I haven't gotten around to reporting it myself.

Operating system: Windows-10-10.0.18362-SP0 64 Bits
Graphics card: GeForce GTX 470/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 391.35

Edit: My debug build from 2 days ago also shows this issue. 2.91.0 Alpha, branch: master, commit date: 2020-08-03 01:44, hash: b5dcf74636

I can confirm using version: 2.91.0 Alpha, branch: master, commit date: 2020-08-05 13:59, hash: 2ca006f6c179, type: Release IIRC, it has been like this for a few days, and I haven't gotten around to reporting it myself. Operating system: Windows-10-10.0.18362-SP0 64 Bits Graphics card: GeForce GTX 470/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 391.35 Edit: My debug build from 2 days ago also shows this issue. 2.91.0 Alpha, branch: master, commit date: 2020-08-03 01:44, hash: b5dcf74636

Added subscribers: @fclem, @rjg

Added subscribers: @fclem, @rjg

I think this is for you @fclem the first commit that compiles and appears to have this problem is b1bfcf9f6b

I think this is for you @fclem the first commit that compiles and appears to have this problem is b1bfcf9f6b

Added subscriber: @MarceloGomez

Added subscriber: @MarceloGomez
Contributor

Added subscriber: @AndresStephens

Added subscriber: @AndresStephens
Contributor

Can reproduce, and can confirm also.

Can reproduce, and can confirm also.

Added subscriber: @Fureloka-4

Added subscriber: @Fureloka-4

Added subscriber: @Luke.Coop

Added subscriber: @Luke.Coop
Member

Added subscribers: @SteffenD, @lichtwerk

Added subscribers: @SteffenD, @lichtwerk
Member

Added subscribers: @ronsn, @Jeroen-Bakker, @antoniov

Added subscribers: @ronsn, @Jeroen-Bakker, @antoniov
Member

Testing some code, seems like when drawing the world background doesn't take into account the alpha

diff --git a/source/blender/draw/engines/eevee/shaders/surface_frag.glsl b/source/blender/draw/engines/eevee/shaders/surface_frag.glsl
index e746acfdfa3..099b8039d95 100644
--- a/source/blender/draw/engines/eevee/shaders/surface_frag.glsl
+++ b/source/blender/draw/engines/eevee/shaders/surface_frag.glsl
@@ -47,7 +47,7 @@ void main()
   outRadiance = vec4(cl.radiance, alpha * holdout);
   outTransmittance = vec4(cl.transmittance, transmit) * holdout;
 #else
-  outRadiance = vec4(cl.radiance, holdout);
+  outRadiance = vec4(cl.radiance, alpha * holdout);
   ssrNormals = cl.ssr_normal;
   ssrData = cl.ssr_data;
 #  ifdef USE_SSS

Seems to fix it. Still there are issues with holdout rendering. it seems to be different as it doesn't create complete black holdouts.

Testing some code, seems like when drawing the world background doesn't take into account the alpha ``` diff --git a/source/blender/draw/engines/eevee/shaders/surface_frag.glsl b/source/blender/draw/engines/eevee/shaders/surface_frag.glsl index e746acfdfa3..099b8039d95 100644 --- a/source/blender/draw/engines/eevee/shaders/surface_frag.glsl +++ b/source/blender/draw/engines/eevee/shaders/surface_frag.glsl @@ -47,7 +47,7 @@ void main() outRadiance = vec4(cl.radiance, alpha * holdout); outTransmittance = vec4(cl.transmittance, transmit) * holdout; #else - outRadiance = vec4(cl.radiance, holdout); + outRadiance = vec4(cl.radiance, alpha * holdout); ssrNormals = cl.ssr_normal; ssrData = cl.ssr_data; # ifdef USE_SSS ``` Seems to fix it. Still there are issues with holdout rendering. it seems to be different as it doesn't create complete black holdouts.

Added subscriber: @PierreSchiller

Added subscriber: @PierreSchiller

Render from Viewport is working. But it is not working with passes or nodes in the compositor either.

Render from Viewport is working. But it is not working with passes or nodes in the compositor either.

Added subscribers: @amannin, @MarcinTwarowski

Added subscribers: @amannin, @MarcinTwarowski

Added subscriber: @Zohaib

Added subscriber: @Zohaib

This issue was referenced by 6a6cb83eb3

This issue was referenced by 6a6cb83eb306d2b774ad2f029dc7beadc43bf28b

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Clément Foucault self-assigned this 2020-08-18 12:27:51 +02:00

Thank you all involved!

Thank you all involved!
Thomas Dinges added this to the 2.91 milestone 2023-02-08 16:20:49 +01:00
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
12 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#79568
No description provided.