a k a path guiding
play

(a.k.a. path guiding) Jaroslav Kivnek Charles University, Prague - PowerPoint PPT Presentation

Zero variance-based sampling schemes (a.k.a. path guiding) Jaroslav Kivnek Charles University, Prague Render Legion/Chaos Group Path guiding The idea MC METHODS FOR VOLUMETRIC LIGHT TRANSPORT ZERO VARIANCE-BASED SAMPLING SCHEKEMS


  1. Zero variance-based sampling schemes (a.k.a. path guiding) Jaroslav Křivánek Charles University, Prague – Render Legion/Chaos Group

  2. Path guiding – The idea MC METHODS FOR VOLUMETRIC LIGHT TRANSPORT – ZERO VARIANCE-BASED SAMPLING SCHEKEMS (A.K.A. PATH GUIDING)

  3. Zero-variance path sampling in volumes • A theoretical framework for path guiding • Set of local sampling rules yielding globally optimal path sampling MC METHODS FOR VOLUMETRIC LIGHT TRANSPORT – ZERO VARIANCE-BASED SAMPLING SCHEKEMS (A.K.A. PATH GUIDING)

  4. Zero-variance path sampling in volumes • Theoretical construct – ZV cannot be achieved in practice • Requires knowing the radiance solution everywhere • But it provides a guideline for variance reduction • Even approximate radiance solution yields low variance • Obtaining the approximate solution • MC samples – Machine/statistical learning • [Vorba et al. 2014, 2016] – direction sampling, path termination and splitting (surfaces) • [Herholz et al., conditional accept] – all decisions (volumes) • Analytic solution • [K řivánek and d’Eon 2014] – subsurface scattering MC METHODS FOR VOLUMETRIC LIGHT TRANSPORT – ZERO VARIANCE-BASED SAMPLING SCHEKEMS (A.K.A. PATH GUIDING)

  5. VOLUME PATH GUIDING

  6. Surfac face e path h guidin ding g – Online learning of parametric mixture models [Vorba et al. 2014]

  7. Volume path guiding • All events importance sampled • Product sampling for collision distance MC METHODS FOR VOLUMETRIC LIGHT TRANSPORT – ZERO VARIANCE-BASED SAMPLING SCHEKEMS (A.K.A. PATH GUIDING)

  8. Reference ​

  9. 30 min in Standard sampling

  10. 30 min in New volu lume path gu guiding

  11. Standard sampling Dis ist. + dir ir. gu guiding RR + split litting SPP: : 15 1580 SPP: : 1 1288 SPP: : 1 1660 relM lMSE: 1 1.354 relM lMSE: 6.4 .458 relM lMSE: 0 0.401 MC METHODS FOR VOLUMETRIC LIGHT TRANSPORT – ZERO VARIANCE-BASED SAMPLING SCHEKEMS (A.K.A. PATH GUIDING)

  12. Reference

  13. 45 min in Standard sampling

  14. 45 min in New volu lumetric path gu guiding

  15. Standard sampling Dis ist. + dir ir. gu guiding RR + split litting SPP: : 79 796 SPP: : 3 392 SPP: : 1 1068 relM lMSE: 0.7 .747 relM lMSE: 1.7 .725 relM lMSE: 0.1 .123 MC METHODS FOR VOLUMETRIC LIGHT TRANSPORT – ZERO VARIANCE-BASED SAMPLING SCHEKEMS (A.K.A. PATH GUIDING)

  16. ZV-BASED SUBSURFACE SCATTERING with Eugene d’Eon

  17. image courtesy Eugene d ’ Eon

  18. Classical random walk • Tends to get lost in the medium MC METHODS FOR VOLUMETRIC LIGHT TRANSPORT – ZERO VARIANCE-BASED SAMPLING SCHEKEMS (A.K.A. PATH GUIDING)

  19. Goal • Guide paths toward the boundary MC METHODS FOR VOLUMETRIC LIGHT TRANSPORT – ZERO VARIANCE-BASED SAMPLING SCHEKEMS (A.K.A. PATH GUIDING)

  20. MC METHODS FOR VOLUMETRIC LIGHT TRANSPORT – ZERO VARIANCE-BASED SAMPLING SCHEKEMS (A.K.A. PATH GUIDING)

  21. Previous work in neutron transport • Reactor shield design • One in a billion particles makes it through transmitted incident radiation radiation concrete slab (reactor shield) MC METHODS FOR VOLUMETRIC LIGHT TRANSPORT – ZERO VARIANCE-BASED SAMPLING SCHEKEMS (A.K.A. PATH GUIDING)

  22. Previous work in neutron transport • Path stretching [Clark ’66, Ponti ‘71, Spanier ‘71] transmitted incident radiation radiation MC METHODS FOR VOLUMETRIC LIGHT TRANSPORT – ZERO VARIANCE-BASED SAMPLING SCHEKEMS (A.K.A. PATH GUIDING)

  23. Zero-variance random walk theory • [Dwivedi ‘81] • Optimal path stretching • Idea: If you approximate the solution , you can use this to guide sampling • Specific application of the zero variance-based sampling MC METHODS FOR VOLUMETRIC LIGHT TRANSPORT – ZERO VARIANCE-BASED SAMPLING SCHEKEMS (A.K.A. PATH GUIDING)

  24. Setup • (Unidirectional) path tracing MC METHODS FOR VOLUMETRIC LIGHT TRANSPORT – ZERO VARIANCE-BASED SAMPLING SCHEKEMS (A.K.A. PATH GUIDING)

  25. Assumptions • Flat, semi-infinite medium • Uniform, white-sky illumination x  MC METHODS FOR VOLUMETRIC LIGHT TRANSPORT – ZERO VARIANCE-BASED SAMPLING SCHEKEMS (A.K.A. PATH GUIDING)

  26. Analytical radiance solution • Case’s singular eigenfunctions [Case 1960, McCormick and Kuscer 1973] Singular eigenfunctions   1         x / v x / v L ( x , ) ( v , ) e dv ( v , ) e 0 0 0 x   1 transient terms asymptotic term MC METHODS FOR VOLUMETRIC LIGHT TRANSPORT – ZERO VARIANCE-BASED SAMPLING SCHEKEMS (A.K.A. PATH GUIDING)

  27. Approximate solution • Drop transient terms   1         x / v x / v L ( x , ) ( v , ) e dv ( v , ) e 0 0 0 x   1 asymptotic term MC METHODS FOR VOLUMETRIC LIGHT TRANSPORT – ZERO VARIANCE-BASED SAMPLING SCHEKEMS (A.K.A. PATH GUIDING)

  28. Approximate solution • Only the asymptotic term albedo = 0.95 albedo = 0.2 solution depth x depth x MC METHODS FOR VOLUMETRIC LIGHT TRANSPORT – ZERO VARIANCE-BASED SAMPLING SCHEKEMS (A.K.A. PATH GUIDING)

  29. Distance sampling      p ( s ) exp( s ) exp( x / v ) 0 transmittance solution         exp( s ' ) ' ( 1 / v ) 0 path stretching! x  s MC METHODS FOR VOLUMETRIC LIGHT TRANSPORT – ZERO VARIANCE-BASED SAMPLING SCHEKEMS (A.K.A. PATH GUIDING)

  30. Directional distribution v   0 p ( )   v 0  MC METHODS FOR VOLUMETRIC LIGHT TRANSPORT – ZERO VARIANCE-BASED SAMPLING SCHEKEMS (A.K.A. PATH GUIDING)

  31. Directional distribution v   0 p ( )   v 0 albedo = 0.95 albedo = 0.2 down up down up direction cos (µ) direction cos (µ) MC METHODS FOR VOLUMETRIC LIGHT TRANSPORT – ZERO VARIANCE-BASED SAMPLING SCHEKEMS (A.K.A. PATH GUIDING)

  32. Semi-infinite half-space test albedo 0.4 0.8 0.95 Dwivedi sampling classical sampling MC METHODS FOR VOLUMETRIC LIGHT TRANSPORT – ZERO VARIANCE-BASED SAMPLING SCHEKEMS (A.K.A. PATH GUIDING)

  33. Semi-infinite half-space test albedo 0.4 0.8 0.95 Dwivedi sampling 0.020 (1 × ) 0.034 (2.7 × ) 0.025 (5.3 × ) variance classical sampling variance 0.020 0.093 0.132 MC METHODS FOR VOLUMETRIC LIGHT TRANSPORT – ZERO VARIANCE-BASED SAMPLING SCHEKEMS (A.K.A. PATH GUIDING)

  34. Use in rendering

  35. sampling + 25% “analog” Use in rendering – IBL equal-time comparison , 100 samples per pixel, MIS 25% classical + 75% Dwivedi classical sampling Dwivedi sampling classical sampling Dwivedi sampling MC METHODS FOR VOLUMETRIC LIGHT TRANSPORT – ZERO VARIANCE-BASED SAMPLING SCHEKEMS (A.K.A. PATH GUIDING)

  36. Better application to rendering • [Meng et al. 2016] MC METHODS FOR VOLUMETRIC LIGHT TRANSPORT – ZERO VARIANCE-BASED SAMPLING SCHEKEMS (A.K.A. PATH GUIDING)

  37. CAN WE DO BETTER?

  38. Exponential radiance falloff • … does not hold for low scattering albedo=0.95 albedo = 0.2 MC METHODS FOR VOLUMETRIC LIGHT TRANSPORT – ZERO VARIANCE-BASED SAMPLING SCHEKEMS (A.K.A. PATH GUIDING)

  39. Directional distribution Dwivedi boundary-aware   MC METHODS FOR VOLUMETRIC LIGHT TRANSPORT – ZERO VARIANCE-BASED SAMPLING SCHEKEMS (A.K.A. PATH GUIDING)

  40. Radiance distribution albedo=0.95 albedo = 0.2 dir depth Dwivedi Reference Difference Dwivedi Reference Difference 42 MC METHODS FOR VOLUMETRIC LIGHT TRANSPORT – ZERO VARIANCE-BASED SAMPLING SCHEKEMS (A.K.A. PATH GUIDING)

  41. Improved sampling • Take boundary into account • Better radiance approximation • Matching 1 st and 2 nd moments of the true solution 43 MC METHODS FOR VOLUMETRIC LIGHT TRANSPORT – ZERO VARIANCE-BASED SAMPLING SCHEKEMS (A.K.A. PATH GUIDING)

  42. Semi-infinite half-space test albedo 0.4 0.8 0.95 Dwivedi sampling improved scheme 0.020 (1 × ) 0.034 (2.7 × ) 0.025 (5.3 × ) variance variance .0002 (100 × ) .0008 (116 × ) .001 (132 × ) classical sampling variance 0.020 0.093 0.132 MC METHODS FOR VOLUMETRIC LIGHT TRANSPORT – ZERO VARIANCE-BASED SAMPLING SCHEKEMS (A.K.A. PATH GUIDING)

  43. Future work • Boundary (Fresnel, rough) • Anisotropic scattering MC METHODS FOR VOLUMETRIC LIGHT TRANSPORT – ZERO VARIANCE-BASED SAMPLING SCHEKEMS (A.K.A. PATH GUIDING)

  44. Conclusion • Zero variance schemes – solid framework for variance reduction • Requires (approximate) solution • Learning from MC samples (Machine/statistical learning techniques) • Analytical approximation MC METHODS FOR VOLUMETRIC LIGHT TRANSPORT – ZERO VARIANCE-BASED SAMPLING SCHEKEMS (A.K.A. PATH GUIDING)

  45. Thank you • Acknowledgments • Czech Science Foundation (16-18964S) • EU ITN No 642841 – “DISTRO” This project has received funding from the European Union’s Horizon 2020 research and innovation programme under the Marie Sklodowska-Curie grant agreement No 642841. MC METHODS FOR VOLUMETRIC LIGHT TRANSPORT – ZERO VARIANCE-BASED SAMPLING SCHEKEMS (A.K.A. PATH GUIDING)

  46. BACKUP SLIDES

  47. Dis istance Dir irection Dir ir. + Dis ist. +ADRRS MC METHODS FOR VOLUMETRIC LIGHT TRANSPORT – ZERO VARIANCE-BASED SAMPLING SCHEKEMS (A.K.A. PATH GUIDING)

Recommend


More recommend