Regression: Blender 3.5: Hair: Cycles render passes GlossDir, GlossInd, GlossCol, TransDir, TransInd, and TransCol #104586

Closed
opened 2023-02-10 19:07:39 +01:00 by David Black · 3 comments

System Information
Linux Mint 21.1 Cinnamon kernel 5.19.0-28
3400G

Blender Version
Broken:
From: blender-3.5.0-alpha+master.789e549dbae8-linux.x86_64-release.tar.xz
To: blender-3.5.0-alpha+main.7e0e07657c7e-linux.x86_64-release.tar.xz

Worked:
blender-3.5.0-alpha+master.27e2b32a0619-linux.x86_64-release.tar.xz
blender-3.4.1-linux-x64.tar.xz

Short description of error
Hair: Render passes producing blue glowing halos during compositing.

Hair - render passes issue.png

Production render compare.png

Exact steps for others to reproduce the error

  1. open 'Hair - render passes issue.blend' and press F12.
  2. close the render window.
  3. in the Compositing window compare render passes.

Notes:
First appeared in blender-3.5.0-alpha+master.789e549dbae8-linux.x86_64-release.tar.xz

Only passes shown seem affected, others appear okay.

**System Information** Linux Mint 21.1 Cinnamon kernel 5.19.0-28 3400G **Blender Version** Broken: From: blender-3.5.0-alpha+master.789e549dbae8-linux.x86_64-release.tar.xz To: blender-3.5.0-alpha+main.7e0e07657c7e-linux.x86_64-release.tar.xz Worked: blender-3.5.0-alpha+master.27e2b32a0619-linux.x86_64-release.tar.xz blender-3.4.1-linux-x64.tar.xz **Short description of error** Hair: Render passes producing blue glowing halos during compositing. ![Hair - render passes issue.png](/attachments/ce09d379-1886-441a-8f95-057dee133158) ![Production render compare.png](/attachments/aea8fd0b-b124-4ed8-8c69-35769a1c3130) **Exact steps for others to reproduce the error** 1. open 'Hair - render passes issue.blend' and press F12. 2. close the render window. 3. in the Compositing window compare render passes. Notes: First appeared in blender-3.5.0-alpha+master.789e549dbae8-linux.x86_64-release.tar.xz Only passes shown seem affected, others appear okay.
David Black added the
Priority
Normal
Status
Needs Triage
Type
Report
labels 2023-02-10 19:07:40 +01:00

@LukasStockner This seems to have been caused by 73000c792d

@LukasStockner This seems to have been caused by 73000c792d4
Member

Hm, this is a tricky one.

The problem here is that previously, the Principled Hair BSDF didn't write its color into the color passes at all, so there was no issue.
Since that commit, the albedo of the hair is used for the shader. However, apparently the computed albedo is not a very good indicator for very dark hairs - for the given example scene, there are hairs which have a slight reflection on them, but the predicted albedo is so low (0.0000001) that after the division the resulting value becomes way too high.

I guess one way of "fixing" this would be to clamp the albedo to a minimum of 0.01, for this scene that brings the direct/indirect passes into a reasonable range.

It's worth noting that I did find some issues in the current code for the albedo, but fixing them didn't address the underlying problem. I'll post those changes later as a PR.

Hm, this is a tricky one. The problem here is that previously, the Principled Hair BSDF didn't write its color into the color passes at all, so there was no issue. Since that commit, the albedo of the hair is used for the shader. However, apparently the computed albedo is not a very good indicator for very dark hairs - for the given example scene, there are hairs which have a slight reflection on them, but the predicted albedo is so low (0.0000001) that after the division the resulting value becomes way too high. I guess one way of "fixing" this would be to clamp the albedo to a minimum of 0.01, for this scene that brings the direct/indirect passes into a reasonable range. It's worth noting that I did find some issues in the current code for the albedo, but fixing them didn't address the underlying problem. I'll post those changes later as a PR.
Lukas Stockner self-assigned this 2023-02-12 04:31:07 +01:00
Blender Bot added
Status
Resolved
and removed
Status
Confirmed
labels 2023-02-13 22:49:14 +01:00
Author

Thank you Lukas,

Temporary fix works well. Plus today's BuildBot build dcc80748d3 also provides finer hair details compared with the last working version 27e2b32a06, is this due to new GlossCol and TransCol albedo information?

Production render compare 2.png

In closing, would also like to thank you for your great Blender developments, and interesting Principled v2 Blender conference talk.

Thank you Lukas, Temporary fix works well. Plus today's BuildBot build dcc80748d327 also provides finer hair details compared with the last working version 27e2b32a0619, is this due to new GlossCol and TransCol albedo information? ![Production render compare 2.png](/attachments/407aeea9-9099-4687-b392-1e286389e450) In closing, would also like to thank you for your great Blender developments, and interesting Principled v2 Blender conference talk.
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#104586
No description provided.