Page MenuHome

Use min importance in volumes
ClosedPublic

Authored by Alaska (Alaska) on Nov 22 2022, 9:23 AM.

Details

Summary

Use both the max and min importance for deciding which branch
of the light tree to traverse down when in volumetric materials.

Here are some comparisons:

Current soc-2022-many-lights-samplingThis patchNot using the light tree
4 samples per pixel
1024 samples per pixel

Diff Detail

Repository
rB Blender
Branch
min_importance_volumes (branched from master)
Build Status
Buildable 24805
Build 24805: arc lint + arc unit

Event Timeline

Alaska (Alaska) requested review of this revision.Nov 22 2022, 9:23 AM
Alaska (Alaska) created this revision.

Here's the .blend file used for testing

  • Merge branch 'soc-2022-many-lights-sampling'
intern/cycles/kernel/light/tree.h
145

When in_volume_segment, we use the shortest distance from a point to the ray, so using max_distance does not make sense; instead, we want to add \theta_a and \theta_b in the future (see Eq 4. in the original paper). But when in_volume, we have a shading point and could compute the importance the same way as we are not in a volume, except that cos_incidence_angle = 1.0f. So please keep this block with if (in_volume_segment) { for now, otherwise it looks fine.

  • Don't use min importance for 'in_volume_segment'
  • Remove unwanted changes
Alaska (Alaska) marked an inline comment as done.Nov 23 2022, 11:08 PM
This revision is now accepted and ready to land.Nov 24 2022, 11:25 AM