EEVEE-Next: Irradiance Bake: Add validity based dilation #110386

Merged
Clément Foucault merged 4 commits from fclem/blender:eevee-next-irradiance-bake-validity into main 2023-08-03 15:48:42 +02:00

Implement invalid sample points filling. Improves invalid regions
but introduce light leak.

Grid sample points are considered invalid if they have a ratio of
front-face ray hit under the given threshold. This is a post-processing
pass on the baked lighting that fills dark regions produced by
invalid sample location (e.g.: inside walls) with valid neighbor
samples data.

Two new parameters are added:

  • Dilation Threshold: Validity threshold under which grid samples are
    considered invalid. Invalid samples will gather valid lighting data
    from valid neighbors inside the dilation radius.
  • Dilation Radius: Radius of the dilation process. Expressed in grid
    sample distance.

The validity of each point is progressively refined just like the
lighting data during the baking process.

The dilation process is implemented as a post-processing pass during
the loading of the grid data into the irradiance atlas. This allows
live tweaking the dilation parameters.

Implement invalid sample points filling. Improves invalid regions but introduce light leak. Grid sample points are considered invalid if they have a ratio of front-face ray hit under the given threshold. This is a post-processing pass on the baked lighting that fills dark regions produced by invalid sample location (e.g.: inside walls) with valid neighbor samples data. Two new parameters are added: - Dilation Threshold: Validity threshold under which grid samples are considered invalid. Invalid samples will gather valid lighting data from valid neighbors inside the dilation radius. - Dilation Radius: Radius of the dilation process. Expressed in grid sample distance. The validity of each point is progressively refined just like the lighting data during the baking process. The dilation process is implemented as a post-processing pass during the loading of the grid data into the irradiance atlas. This allows live tweaking the dilation parameters.
Clément Foucault added 1 commit 2023-07-22 19:14:11 +02:00
buildbot/vexp-code-patch-coordinator Build done. Details
8efa72625c
EEVEE-Next: Irradiance Bake: Add validity based dilation
Implement invalid sample points filling. Improves invalid regions
but introduce light leak.

Grid sample points are considered invalid if they have a ratio of
front-face ray hit under the given threshold. This is a post-processing
pass on the baked lighting that fills dark regions produced by
invalid sample location (e.g.: inside walls) with valid neighbor
samples data.

Two new parameters are added:

- Dilation Threshold: Validity threshold under which grid samples are
considered invalid. Invalid samples will gather valid lighting data
from valid neighbors inside the dilation radius.
- Dilation Radius: Radius of the dilation process. Expressed in grid
sample distance.

The validity of each point is progressively refined just like the
lighting data during the baking process.

The dilation process is implemented as a post-processing pass during
the loading of the grid data into the irradiance atlas. This allows
live tweaking the dilation parameters.
Author
Member

@blender-bot build

@blender-bot build
Clément Foucault added this to the 4.0 milestone 2023-07-22 19:15:52 +02:00
Clément Foucault added this to the EEVEE & Viewport project 2023-07-22 19:15:55 +02:00
Clément Foucault requested review from Miguel Pozo 2023-07-22 19:16:18 +02:00
Clément Foucault added 1 commit 2023-07-23 13:56:07 +02:00
Member

I have not looked too much into the code, but I tested it and I get non-deterministic results:
https://drive.google.com/file/d/1cX0hhCE954cvzFb0YjsYhfBjtx88p-vH/view?usp=sharing

I have not looked too much into the code, but I tested it and I get non-deterministic results: https://drive.google.com/file/d/1cX0hhCE954cvzFb0YjsYhfBjtx88p-vH/view?usp=sharing
Clément Foucault added 2 commits 2023-08-01 19:52:28 +02:00
Member

Just confirming that the committed fix does, indeed, solve the issue on my end.

Just confirming that the committed fix does, indeed, solve the issue on my end.
Clément Foucault merged commit 8e33b20de9 into main 2023-08-03 15:48:42 +02:00
Clément Foucault deleted branch eevee-next-irradiance-bake-validity 2023-08-03 15:48:43 +02:00
Sign in to join this conversation.
No reviewers
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 Assignees
2 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#110386
No description provided.