Material setting "show_transparent_back" (Show Backface) gives weird results #86661

Open
opened 2021-03-17 13:02:28 +01:00 by Karja Krähwald · 11 comments

System Information
Operating system: Windows-7-6.1.7601-SP1 64 Bits
Graphics card: GeForce GTX 980/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 461.40

Blender Version
Broken: version: 2.92.0, branch: master, commit date: 2021-02-24 16:25, hash: 02948a2cab

Short description of error
ShowTransparentBackBug.jpg
My materials are messed up by having blend mode set to "Alpha Blend" and "Show Backface" set true.
(The checkbox for "Show Backface" pops up if a materials blend mode is set to Alpha Blend")

Is this normal behaviour?
The intend here was to see every side of the cube with a bit of transparency.

Exact steps for others to reproduce the error
ShowTransparentBackBug.blend

  1. Add a Cube (subdivide a few times) and give it a material
  2. Go to material settings and set the materials...
  • Blend mode to "Alpha Blend"
  • Backface Culling to False
  • Show Backface to True
**System Information** Operating system: Windows-7-6.1.7601-SP1 64 Bits Graphics card: GeForce GTX 980/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 461.40 **Blender Version** Broken: version: 2.92.0, branch: master, commit date: 2021-02-24 16:25, hash: `02948a2cab` **Short description of error** ![ShowTransparentBackBug.jpg](https://archive.blender.org/developer/F9896290/ShowTransparentBackBug.jpg) My materials are messed up by having blend mode set to "Alpha Blend" and "Show Backface" set true. (The checkbox for "Show Backface" pops up if a materials blend mode is set to Alpha Blend") Is this normal behaviour? The intend here was to see every side of the cube with a bit of transparency. **Exact steps for others to reproduce the error** [ShowTransparentBackBug.blend](https://archive.blender.org/developer/F9896292/ShowTransparentBackBug.blend) 1. Add a Cube (subdivide a few times) and give it a material 2. Go to material settings and set the materials... - Blend mode to "Alpha Blend" - Backface Culling to False - Show Backface to True

Added subscriber: @karja

Added subscriber: @karja

#95669 was marked as duplicate of this issue

#95669 was marked as duplicate of this issue

#91206 was marked as duplicate of this issue

#91206 was marked as duplicate of this issue

#88320 was marked as duplicate of this issue

#88320 was marked as duplicate of this issue
Member

Added subscribers: @fclem, @lichtwerk

Added subscribers: @fclem, @lichtwerk
Member

Changed status from 'Needs Triage' to: 'Needs Developer To Reproduce'

Changed status from 'Needs Triage' to: 'Needs Developer To Reproduce'
Member

This is related to the sorting problem.
https://docs.blender.org/manual/en/dev/render/eevee/materials/settings.html#sorting-problem

To be honest, I dont really get it though.
With a default cube, sorting is kind of intact, a simple plane also works, but as soon as any modeling/subdividing takes place, overlapping geometry inside the same object (sorting based on objects is OK) will give these sorting problems.
And there is really no way to correct this (tried Mesh > Sort Elements in different flavours based on distance, but that does not really help either).
So the chance of getting something looking good with Alpha Blend and Show Backface is next to zero in my experience.

Then the documentation on Show Backface is also confusing:

If enabled, all transparent fragments will be rendered. If disabled, only the front-most surface fragments will be rendered. Disable this option to ensure correct appearance of transparency from any point of view. Then using Alpha Blending this option should be disabled because with Alpha Blending, the order in which triangles are sorted is important.

I am refering to

Then using Alpha Blending this option should be disabled because with Alpha Blending, the order in which triangles are sorted is important.

  • should it be "When using Alpha Blending..." (instead of "Then using Alpha Blending...")?
  • if it is advised to disable this when using Alpha Blending, why are we only showing the option when using Alpha Blending?
    if mat.blend_method not in {'OPAQUE', 'CLIP', 'HASHED'}:
        layout.prop(mat, "show_transparent_back")

@fclem: could you share your wisdom?

This is related to the sorting problem. https://docs.blender.org/manual/en/dev/render/eevee/materials/settings.html#sorting-problem To be honest, I dont really get it though. With a default cube, sorting is kind of intact, a simple plane also works, but as soon as any modeling/subdividing takes place, overlapping geometry inside the same object (sorting based on objects is OK) will give these sorting problems. And there is really no way to correct this (tried Mesh > Sort Elements in different flavours based on distance, but that does not really help either). So the chance of getting something looking good with `Alpha Blend` and `Show Backface` is next to zero in my experience. Then the documentation on `Show Backface` is also confusing: > If enabled, all transparent fragments will be rendered. If disabled, only the front-most surface fragments will be rendered. Disable this option to ensure correct appearance of transparency from any point of view. Then using Alpha Blending this option should be disabled because with Alpha Blending, the order in which triangles are sorted is important. I am refering to > Then using Alpha Blending this option should be disabled because with Alpha Blending, the order in which triangles are sorted is important. - should it be "When using Alpha Blending..." (instead of "Then using Alpha Blending...")? - if it is advised to disable this when using `Alpha Blending`, why are we only showing the option when using `Alpha Blending`? ``` if mat.blend_method not in {'OPAQUE', 'CLIP', 'HASHED'}: layout.prop(mat, "show_transparent_back") ``` @fclem: could you share your wisdom?

should it be "When using Alpha Blending..." (instead of "Then using Alpha Blending...")?

Yes.

if it is advised to disable this when using Alpha Blending, why are we only showing the option when using Alpha Blending

Because we used to have other blend mode (additive and multiply) which does not care about fragment ordering.

>should it be "When using Alpha Blending..." (instead of "Then using Alpha Blending...")? Yes. >if it is advised to disable this when using Alpha Blending, why are we only showing the option when using Alpha Blending Because we used to have other blend mode (additive and multiply) which does not care about fragment ordering.
Member

Added subscriber: @lionheart001

Added subscriber: @lionheart001
Member

Added subscriber: @mrlooi

Added subscriber: @mrlooi
Member

Added subscribers: @DavidKozma, @lone_noel

Added subscribers: @DavidKozma, @lone_noel
Philipp Oeser removed the
Interest
EEVEE & Viewport
label 2023-02-09 15:13:56 +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
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#86661
No description provided.