Eevee: Transparent material black parts #64962

Closed
opened 2019-05-21 23:12:20 +02:00 by Marco · 9 comments
Member

System Information
Operating system: Ubuntu 18.04.2
Graphics card: AMD RX 580

Blender Version
Broken: 2.80.71, e787700393, 2019-05-20

Short description of error
I have this mesh with some transparent parts, in Eevee with Alpha Hashed as Blend Mode i get these weird black parts in the distance.
Same result with Alpha Clip, for the Alpha Blend it gets all blown out.

Screenshot.jpg
Simplified blend
Clouds issue.blend

**System Information** Operating system: Ubuntu 18.04.2 Graphics card: AMD RX 580 **Blender Version** Broken: 2.80.71, e78770039397, 2019-05-20 **Short description of error** I have this mesh with some transparent parts, in Eevee with Alpha Hashed as Blend Mode i get these weird black parts in the distance. Same result with Alpha Clip, for the Alpha Blend it gets all blown out. ![Screenshot.jpg](https://archive.blender.org/developer/F7058965/Screenshot.jpg) Simplified blend [Clouds issue.blend](https://archive.blender.org/developer/F7063203/Clouds_issue.blend)
Author
Member

Added subscriber: @nacioss

Added subscriber: @nacioss
Marco changed title from Transparent material black parts to Eevee: Transparent material black parts 2019-05-22 00:16:30 +02:00
Clément Foucault was assigned by Marco 2019-05-22 00:16:30 +02:00

Added subscriber: @juang3d

Added subscriber: @juang3d

same problem here, black spots at the long distance

same problem here, black spots at the long distance

Added subscriber: @Leon95

Added subscriber: @Leon95

Clouds issue_minimal.blend
Simplified Version, 90% of Nodes Removed

[Clouds issue_minimal.blend](https://archive.blender.org/developer/F7061275/Clouds_issue_minimal.blend) Simplified Version, 90% of Nodes Removed

Removed subscriber: @Leon95

Removed subscriber: @Leon95

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'

TL,DR: Well this is a float precision issue. the view range is really high and using multiple mesh layers close to each other makes the rendering bogus.

Workarounds:

  • use other blend modes.
  • use more reasonable clipping values.
  • Make the planes much more distant from each others.

Technical explanation:

  • The alpha hash blend modes operate in 2 passes. One pass that only write depth when the alpha is above the noise threshold, and one pass to write the color.
  • The mix node does a premultiplication of the radiance of each incomming BRDF and unpremult before the output. This makes the totally transparent regions totally black (in radiance).
  • The issue when there is depth fighting is that the 2nd layer is writting this black radiance on top of the previous layer because the depth test is still true (because both layers shares the same depth).

This could be solved by bypassing the depth prepass for theses objects but then we loose the benefits of the alpha hashed technique. I plan to introduce such feature (exclude from depth prepass) but for 2.80 it is not possible.

TL,DR: Well this is a float precision issue. the view range is really high and using multiple mesh layers close to each other makes the rendering bogus. Workarounds: - use other blend modes. - use more reasonable clipping values. - Make the planes much more distant from each others. Technical explanation: - The alpha hash blend modes operate in 2 passes. One pass that only write depth when the alpha is above the noise threshold, and one pass to write the color. - The mix node does a premultiplication of the radiance of each incomming BRDF and unpremult before the output. This makes the totally transparent regions totally black (in radiance). - The issue when there is depth fighting is that the 2nd layer is writting this black radiance on top of the previous layer because the depth test is still true (because both layers shares the same depth). This could be solved by bypassing the depth prepass for theses objects but then we loose the benefits of the alpha hashed technique. I plan to introduce such feature (exclude from depth prepass) but for 2.80 it is not possible.
Author
Member

Thank you a lot for all the info Clement ;) you are doing an amazing job.

Thank you a lot for all the info Clement ;) you are doing an amazing job.
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
4 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#64962
No description provided.