Path guiding in volumes do not fully support equiangular sampling #102250

Closed
opened 2022-11-03 14:40:56 +01:00 by Sebastian Herholz · 8 comments

At the moment, path guiding in volumes only initialize a guiding distribution when
the distance sampling decisions for direct and indirect are the same (i.e., no equiangular sampling is performed).

This can lead to a wrong pdf for NEE.

A way to fix this is to have two VolumeSamplingDistriubtions which can be initialized:

  • one for indirect scattering
  • one for direct scattering if equiangular is used.
At the moment, path guiding in volumes only initialize a guiding distribution when the distance sampling decisions for direct and indirect are the same (i.e., no equiangular sampling is performed). This can lead to a wrong pdf for NEE. A way to fix this is to have two `VolumeSamplingDistriubtions` which can be initialized: - one for indirect scattering - one for direct scattering if equiangular is used.
Author
Member

Added subscriber: @sherholz

Added subscriber: @sherholz
Sebastian Herholz self-assigned this 2022-11-03 14:43:20 +01:00
Author
Member

Added subscriber: @brecht

Added subscriber: @brecht

Yes, I think you need two distributions. Either stored in the same pointer but re-initialized between direct and indirect light sampling, or separately, whatever is most convenient.

Yes, I think you need two distributions. Either stored in the same pointer but re-initialized between direct and indirect light sampling, or separately, whatever is most convenient.
Member

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

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

I generated a DIFF to fix this issue.

One shortcoming of the solution is that we now have to query two VolumeSamplingDistriubtions, which can cause an unnecessary overhead if the user enables equiangular or mis distance sampling for direct light and the volume has a boundary that blocks the shadow rays (e.g., rough dielectric).

I generated a DIFF to fix this issue. One shortcoming of the solution is that we now have to query two `VolumeSamplingDistriubtions`, which can cause an unnecessary overhead if the user enables `equiangular` or `mis` distance sampling for direct light and the volume has a boundary that blocks the shadow rays (e.g., rough dielectric).

That's a general problem, in such cases we ideally shouldn't even be doing direct light sampling either. But there may be a light inside the volume and it's difficult/expensive in general to determine that in advance. Not something I expect to be solved here.

That's a general problem, in such cases we ideally shouldn't even be doing direct light sampling either. But there may be a light inside the volume and it's difficult/expensive in general to determine that in advance. Not something I expect to be solved here.

This issue was referenced by 008cc625aa

This issue was referenced by 008cc625aaf798b76155eb9880d6f0ae16ff36c5

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser Project (Legacy)
Interest
Asset System
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#102250
No description provided.