Incorrect Fresnel layer weight shading on backfacing geometry #81108

Open
opened 2020-09-23 23:08:59 +02:00 by slowburn · 8 comments

System Information
Operating system: Windows-10-10.0.18362-SP0 64 Bits
Graphics card: Radeon (TM) RX 470 Graphics ATI Technologies Inc. 4.5.13587 Core Profile Context 20.4.2 26.20.15029.27017

Blender Version
Broken: version: 2.91.0 Alpha, branch: master, commit date: 2020-09-20 18:23, hash: e14894aad2

Short description of error
Fresnel layer weight creates a sharp boundary instead of a smooth falloff when viewed on backfacing geometry.
In this example there are 2 hemispheres with the same material, but the left one has inverted face normals.
fresnel bug.jpg

fresnel bug.blend

**System Information** Operating system: Windows-10-10.0.18362-SP0 64 Bits Graphics card: Radeon (TM) RX 470 Graphics ATI Technologies Inc. 4.5.13587 Core Profile Context 20.4.2 26.20.15029.27017 **Blender Version** Broken: version: 2.91.0 Alpha, branch: master, commit date: 2020-09-20 18:23, hash: `e14894aad2` **Short description of error** Fresnel layer weight creates a sharp boundary instead of a smooth falloff when viewed on backfacing geometry. In this example there are 2 hemispheres with the same material, but the left one has inverted face normals. ![fresnel bug.jpg](https://archive.blender.org/developer/F8912952/fresnel_bug.jpg) [fresnel bug.blend](https://archive.blender.org/developer/F8912959/fresnel_bug.blend)
Author

Added subscriber: @slowburn

Added subscriber: @slowburn
Member

Added subscriber: @Alaska

Added subscriber: @Alaska
Member

I believe this is a known issue or intended behavior. @brecht acknowledged it here: https://devtalk.blender.org/t/diffuse-translucency-way-too-difficult-to-set-up-in-cycles/807/8

From what I can tell the Fresnel node is taking into consideration effects like Total internal reflection. Whether or not the Fresnel node is is just Fresnel or takes into account total internal reflections is based on the surface normals.

I will leave the marking of this task to someone else as I'm not sure what the approach to this one is.

I believe this is a known issue or intended behavior. @brecht acknowledged it here: https://devtalk.blender.org/t/diffuse-translucency-way-too-difficult-to-set-up-in-cycles/807/8 From what I can tell the Fresnel node is taking into consideration effects like `Total internal reflection`. Whether or not the Fresnel node is is just Fresnel or takes into account `total internal reflections` is based on the surface normals. I will leave the marking of this task to someone else as I'm not sure what the approach to this one is.
Member

Added subscriber: @brecht

Added subscriber: @brecht
Author

So it's for simulating natural effects, like Snell's window . Pretty cool, I didn't think of that.
And the "proper" workaround for back faces is to use Fresnel node and plug 1/[ior] into the IOR slot? I guess it could work, but there's almost no chance that new users could figure out how to use Fresnel falloff correctly without a full explanation. I've already seen it used wrong in a couple tutorials.

So it's for simulating natural effects, like [Snell's window ](https://en.wikipedia.org/wiki/Snell%27s_window). Pretty cool, I didn't think of that. And the "proper" workaround for back faces is to use Fresnel node and plug 1/[ior] into the IOR slot? I guess it could work, but there's almost no chance that new users could figure out how to use Fresnel falloff correctly without a full explanation. I've already seen it used wrong in a couple tutorials.
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

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

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

From what I can tell, there should be some way to make this behave better / easier to set up.
It does not sound like a bug though, more like a TODO.
Not sure if this is covered already by https://wiki.blender.org/wiki/Source/Render/Cycles/Roadmap / D2354, will confirm though and let the Cycles module handle this.

From what I can tell, there should be some way to make this behave better / easier to set up. It does not sound like a bug though, more like a TODO. Not sure if this is covered already by https://wiki.blender.org/wiki/Source/Render/Cycles/Roadmap / [D2354](https://archive.blender.org/developer/D2354), will confirm though and let the Cycles module handle this.
Philipp Oeser removed the
Interest
Render & Cycles
label 2023-02-09 14:02:01 +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
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#81108
No description provided.