We propose a set of techniques to efficiently importance sample the derivatives of several BRDF models. In differentiable rendering, BRDFs are replaced by their differential BRDF counterparts which are real-valued and can have negative values. This leads to a new source of variance arising from their change in sign. Real-valued functions cannot be perfectly importance sampled by a positive-valued PDF and the direct application of BRDF sampling leads to high variance. Previous attempts at antithetic sampling only addressed the derivative with the roughness parameter of isotropic microfacet BRDFs. Our work generalizes BRDF derivative sampling to anisotropic microfacet models, mixture BRDFs, Oren-Nayar, Hanrahan-Krueger, among other analytic BRDFs. Our method first decomposes the real-valued differential BRDF into a sum of single-signed functions, eliminating variance from a change in sign. Next, we importance sample each of the resulting single-signed functions separately. The first decomposition, positivization, partitions the real-valued function based on its sign, and is effective at variance reduction when applicable. However, it requires analytic knowledge of the roots of the differential BRDF, and for it to be analytically integrable too. Our key insight is that the single-signed functions can have overlapping support, which significantly broadens the ways we can decompose a real-valued function. Our product and mixture decompositions exploit this property, and they allow us to support several BRDF derivatives that positivization could not handle. For a wide variety of BRDF derivatives, our method significantly reduces the variance (up to 58x in some cases) at equal computation cost and enables better recovery of spatially varying textures through gradient-descent-based inverse rendering.
翻译:我们提出了一组技术,可以高效地重要性采样多个BRDF模型的导数。在可微渲染中,BRDF被其微分BRDF对应物所取代,微分BRDF是实值的,并且可以具有负值。这导致了一种新的方差来源,即由于它们的符号变化而产生的方差。实值函数不能被正值概率密度函数完全重要性采样,而直接应用BRDF采样会导致高方差性。先前的反向采样尝试只处理了各向同性微平面BRDF的粗糙度参数的导数。我们的工作将BRDF导数采样泛化到了各向异性微平面模型、混合BRDF、Oren-Nayar、Hanrahan-Krueger等分析BRDF。我们的方法首先将实值微分BRDF分解为一组单符号函数的和,消除了符号变化带来的方差。接下来,我们分别对每个结果单符号函数进行重要性采样。第一个分解,正性化,根据其符号将实值函数分成若干组,在适用时可以有效地减小方差。但是,它要求对微分BRDF的根具有分析知识,并且可解析地积分。我们的关键洞察是单符号函数可以具有重叠的支持,这显著扩大了我们分解实值函数的方式。我们的乘积和混合分解利用了这种属性,并且允许我们支持几种正性化无法处理的BRDF导数。对于各种BRDF导数,我们的方法显著降低了方差(某些情况下高达58倍),并允许通过梯度下降反演渲染更好地恢复可空间变化的纹理。