Sheen doesn't render on perpendicular faces in orthographic view. #115206
Labels
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
5 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#115206
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Operating system: Windows-10-10.0.19045-SP0 64 Bits
Graphics card: NVIDIA GeForce RTX 4090/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 546.01
Blender Version
Broken: version: 4.0.1, branch: blender-v4.0-release, commit date: 2023-11-16 16:40, hash:
d0dd92834a08
Short description of error
Sheen (in principle and sheen BSDF) renders as black, when the face is perpendicular to the camera or view.
Cycles render. Ortographic view (or camera). Shade flat object.
Exact steps for others to reproduce the error
Render Engine Cycles
Device GPU compute
Assign a Sheen BSDF shader (or sheen weight in Principle BSDF) to the default cube.
Go to top orthographic view in render mode.
The cube has to be shade flat.
When remesh modifier is used, perpendicular faces are black even in shade smooth mode.
When Subdivision Surface modifier is used in Simple mode, there are also some black faces.
If CPU is used as a device the problem is less prominent. The faces are not black. Just a bit darker than the others.
I reproduced a similar effect; it seems undesired. Steps:
System Information
Operating system: Windows-10-10.0.23590-SP0 64 Bits
Graphics card: NVIDIA GeForce RTX 4090/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 550.09
Blender Version
Broken: version: 4.0.1, branch: blender-v4.0-release, commit date: 2023-11-16 16:40, hash:
d0dd92834a08
Broken: version: 4.1.0 Alpha, branch: main, commit date: 2023-11-18 21:46, hash:
9eba3902c904
Hi, thanks for the report. Can confirm. Recent refactor and new layer structure have caused the bug.
Behavior changed between
fca8df9415b1 - 264c3e7bd7a6
@LukasStockner, can you check?
A quick comment for @brecht and/or @LukasStockner or anyone else if they want to look into this.
The issue is caused by
make_orthonormals_tangent()
as called bybsdf_sheen_setup()
in/intern/cycles/kernel/closure/bsdf_sheen.h
.What's happening is two parallel vectors are being passed to
make_orthonormals_tangent()
(these vectors arebsdf->N
andsd->wi
).make_orthonormals_tangent()
then does some math (normalize(cross(bsdf->N, sd->wi))
) which produces NaNs which cause issues later one. This is because the cross product of identical vectors are 0, and a normalized 0 vector is NaN.Swapping
normalize
out forsafe_normalize
fixes a assert caused by the NaNs and fixes the black rendering issue, but now there's discontinuities in some areas since the vector is0, 0, 0
in one region and0.7, 0.7, 0.0
right beside it. Just for reference, this discontinuity can be seen in the test scenes on the two cubes that partially render correctly.I'm not sure what the desired result would be for this case (
bsdf->N == sd->wi
) so I don't know how to fix it. But hopefully the informaiton helps.