前端路上的小学生

(渲染)Veach博士论文3, 4章笔记

首先,老规矩:

未经允许禁止转载(防止某些人乱转,转着转着就到蛮牛之类的地方去了)

B站:Heskey0


Robust Monte Carlo Method For Light Transport Simulation

Eric Veach的博士论文笔记
Bilibili : Heskey0

space.bilibili.com/455965619

not to change the world, but to create one!

Chapter 3. Radiometry and Light Transport

3.1 Domains and measures

  1. the whole scene surface denoted MR3, each surface filled with nonparticipating medium with a constant refractive index ( i.e. volume absorption, emission, and scattering are not allowed).

  2. we define an area measure A on M , so that A(D) denotes the area of a region DM. The notation

    Mf(x)dA(x)

    denotes the Lebesgue integral of function f:MR with respect to surface area.

  3. Let σ be the usual surface area measure on S2 .

    Given a set of directions DS2 ,

    the solid angle occupied by D is simply σ(D) .

  4. the tangent space at the point x.

    TM(x)={yR3|yN(x)=0}

  5. the upward hemisphere H+2(x)

    the downward hemisphere H2(x)

3.2 The phase space

  1. the state of each photon can be represented by its position, direction of motion, and wavelength . for a system of N photons, the phase space would be 6*N-dimensional. (Γ phase space)

    ψ=R3×S2×R+

  2. radiometric quantities can be defined by counting the number of photons in a given region of the phase space.

3.3 The trajectory space and photon events

  1. if the phase space positions of all photons are graphed over time, we obtain a set of one-dimensional curves in the trajectory space

    Ψ=R×ψ

    where the first parameter represents time.

    radiometric measurements are defined by specifying a set of photon events along these curves, and then measuring the distribution of these events in various ways.

  2. a photon event is a single point in the trajectory space . some events have natural definitions.

    For example :

    1. each emission, absorption, or scattering event corresponds to a single point along a photon trajectory.
    2. we could define the events to be the photon states at a particular time.
    3. given a plane P in R3, we could define a photon to be a crossing of P

    to define a radiometric quantity, we then measure the distribution of these events with respect to a suitable geometric measure .

3.4 Radiometric quantities

the discussion here is informal, a more detailed development is given in Appendix 3. B

3.4 : basic radiometry in PBRT

3.5 Incident and exitant radiance function

a radiance function is simply a function whose values correspond to radiance measurement . Most often, we will work with functions of the form

L:M×S2R

where M is the set of scene surfaces . Occasionally, radiance functions of the form

L:R3×S2R

will also be useful. Li and Lo measure different sets of photon events, corresponding to the photon states just before their arrival at the surface, or just after their departure respectively.

To measure radiance, we define a photon event to be an intersection of one of these curves with the surface $ P=\R\times\Mu\times S2\times\R+ $ in trajectory space.

3.6 The BSDF

  1. The BSDF is not a standard concept in radiometry. The BRDF is obtained by simply restricting fs to a smaller domain:

fr:Hi2×Hr2R

where Hi2 and Hr2 are often called the incident and reflected hemispheres respectively.

  1. The BTDF is defined similarly to the BRDF, by restricting fs to a domain of the form

    ft:Hi2×Ht2R

where the transmitted hemisphere $ H2_t=-H2_i isthecomplementof H^2_i .Asbefore H^2_i canrepresenteithertheupwardhemisphere H^2_+ ,oritscomplement H^2_- $ .

the BSDF is the union of two BRDF’s

Properties of BRDF: symmetric, energy conservation.

3.7 Introduction to light transport

3.7.1 The measurement equation

I=M×S2We(x,ω)Li(x,ω)dA(x)dσx(ω)

where:

Ij represents the value of a single pixel, and M is the number of pixels in the image, We the sensor responsivity, which specifies the “importance” of the light arriving along each ray to the corresponding measurement.

3.7.2 The light transport equation
3.7.3 importance transport equation

W(x,ω)=We(x,ω)+S2W((xM,ωi),ωi)fs(x,ωoωi)cosθdσx(ωi)

where:

W the equilibrium importance function, measurements are computed by integrating the product WLe.

3.7.4 Bidirectional methods
  1. finite element approaches [1992]
  2. multi-pass methods [1991]
  3. particle tracing algorithms [1990]
  4. bidirectional path tracing [1993]
3.7.5 Sampling and evaluation of non-symmetric BSDF's
  1. the bidirectional algorithms must take care when evaluating or sampling the BSDF, to ensure that ωi and ωo are ordered correctly
3.7.6 The adjoint BSDF

given an arbitrary BSDF fs , the adjoint BSDF fs is defined by

fs(ωiωo)=fs(ωoωi)

  1. it lets the importance transport equation have the same form as the light transport equation .
  2. provides a useful convention for sampling.

Appendix 3. A Field and surface radiance functions

defined by Arvo [1995]

field radiance Lf is similar to incident radiance Li,

surface radiance Ls is similar to exitant radiance Lo

Field and surface radiance are defined only at surfaces, while incident and exitant radiance are defined in space as well.

Appendix 3. B Measure-theoretic radiometry

3. B. 1 Measure spaces
3. B. 2 The photon event space

the photon event space (P) contains all possible locations of the photon events we wish to count. depends on the definition of a photon event.

the photon event space is a subset of trajectory space  (Ψ).

For example:

  1. volume emission : a photon be emitted from any point, any direction, any wavelength, at any time.
  2. crossing a hypothetical surface : the photon event space would be a 6-dimensional manifold, within the 7-dimensional trajectory space Ψ

P=R×S×S2×R+

3. B. 3 The geometric measure

we define a geometric measure ρ :

  1. defined on the photon event space

  2. used to measure density of photon events.

  3. defined as product of the natural Lebesgue measures on components of P.

For example:

volume emission is given by:

ρ=l×v×σ×l+

where:

l and l+ are the length measure on R and R+

v the volume measure on R3

3. B. 4 The energy measure

we define an energy content function Q:

Q:P[0,]

  1. to count photon events in various regions of P

  2. measures the total energy of the photon events in each measurable set D of the photon event space

【Theorem 3. 1】 Existence of Energy Measure

given a photon event space P

with geometric measure ρ

and energy content function Q

Q:P[0,]Q(i=1Di)=i=1Q(Di)ρ(D)<Q(D)<ρ(D)=0Q(D)=0

3. B. 5 Defining radiometric quantities as a ratio of measures

radiometric quantities can be defined by measuring the density of Q with respect to ρ, i.e. the ratio dQ/dρ for a region D that becomes arbitrarily small.

【Theorem 3. 2】 Randon-Nikodym

if (P,P,ρ) is a σ-finite measure space, and if a σ-finite measure Q on P is continuous with respect to ρ, then there exists a non-negative, real-valued, ρ-measurable function f on P such that

Q(D)=Dfdρ

for every measurable set DP. the function f is unique up to a set of ρ-measure zero. The function f is called the Randon-Nikodym derivative of Q with respect to ρ, denoted

f=dQdρ

【Theorem 3. 3】 Existence of energy density

given a photon event space P

with geometric measure ρ

and energy content function Q

then there exists a ρ-measurable function f:P(0,), which is unique to within a set of ρ-measure zero, satisfying

Q(D)=Dfdρ

where DP a measurable subset of P

3. B. 6 Examples of measure-theoretic definitions
  1. spectral radiant sterisent

while the geometric measure ρ is the whole trajectory space, we obtain a quantity

Lλ=dQdρ

this quantity is called spectral radiant sterisent . it is used for the measurement of emission, scattering, and absorption within volumes.

  1. spectral phase space density

  2. spectral radiance

given the photon event space

P=R×S×S2×R+

with the geometric measure defined by

ρ=l×A×σx×l+

thus the density

Lλ=dQdρ=dQdldAdσsdl+

corresponds to spectral radiance . we can use this equation to define Lλ anywhere in the trajectory space Ψ

Chapter 4. A General Operator Formulation of Light Transport

In this chapter, we develop a light transport framework

4.1 Ray space

  1. ray space

    the ray space consists of all rays that start at points on the scene surfaces

R=M×S2

​ where M is the set of surfaces in the scene,

S2 the set of all unit direction vectors.

​ ( The ray r=(x,ω) has origin x and direction ω )

  1. The throughput measure

    we define a measure μ on R , called the throughput measure , that is used to integrate functions on ray space.

    Consider a small bundle of rays around a central ray r=(x,ω) , such that the origins of these rays occupy an area dA , and their directions lie within a solid angle of dσ. Then the throughput of this small bundle is defined as :

dμ(r)=dμ(x,ω)=dA(x)dσs(ω)

​ that is, μ is simply the product of the area and projected solid angle measures. This is known as the differential form of the throughput measure ,

we define μ(D) for a set of rays DR

μ(D)=DdA(x)dσx(ω)

​ the quantity μ(D) measures the light-carrying capacity of a bundle of rays , and corresponds to the classic radiometric concept of throughput.

  1. the throughput measure also allows us to define radiance in a simpler and more natural way, namely as power per unit throughput :

    L(r)=dΦ(r)dμ(r)

  2. Other representations of ray space

    a ray could be represented as a pair r=xx

    Even when R is represented in different ways, the throughput measure μ should be understood to have the same meaning.

4.2 Function on ray space

  1. radiance functions

The distribution of radiance or importance in a given scene can be represented as a real-valued function on ray space, i.e. a function of the form

f:RR

.

  1. Norms

the Lp norms is defined by :

||f||p=(R|f(r)|pdμ(r))1/p

where p is a positive integer. In the limit as p , we obtain the L norm :

||f||=esssup|f(r)|,[rR]

where esssup denotes the essential supremum , i.e. the smallest real number m such that f(r)m almost everywhere.

​ the most commonly used norms are the L1,L2,L norms, which measure the average, root-mean-square, and maximum absolute value of a function respectively.

​ For the purposes of analysis, it is convenient to consider only the functions whose Lp norm is finite . The collection of all such functions (for a given value of p) is called an Lp space ( sometimes called Lebesgue space ), which we will denote by Lp(R) . These spaces have desirable analytic properties .

  1. Inner products

the inner product of two functions on ray space is defined by

f,g=Rf(r)g(r)dμ(r)

every inner product has an associated norm defined by

||f||=f,f1/2

which in this cast is identical to the L2 norm.

4.3 The scattering and propagation operators

A linear operator is simply a linear function A:FF whose domain is a vector spaces F. F is a space of radiance function defined above. The notation Af denotes the an operator to a function, whose result is another function.

  1. The local scattering operator

the local scattering operator defined by

(Kh)(x,ωo)=S2fs(x,ωiωo)h(x,ωi)dσx(ωi)

this operator is applied to an incident radiance function Li , it returns the exitant radiance Lo=KLi that results from a single scattering operation. K operates on entire radiance functions, rather than being restricted to a single point x. It maps one function L into another function KL , where each function is defined over the whole ray space R .

  1. The propagation operator

let xM(x,ω) the first point of M that is visible from x in the direction ω .

dM(x,ω)=inf{d>0|x+dωM}

which is called the boundary distance function . When the ray (x,ω) does not intersect , we have distance dM(x,ω)= .

The propagation operator G (also called the geometric operator) defined by

(Gh)(x,ωi)={h(xM(x,ωi),ωi),ifdM(x,ωi)<0,otherwise

4.4 The light transport and solution operators

  1. the light transport operator

The composition of the scattering and propagation operators is called the light transport operator

T=KG

the light transport equation is defined by :

L=Le+TL

where L is the measured equilibrium radiance , Le the emitted radiance function

in which case the solution is simply L=SLe

  1. the solution operator

the solution can be obtain by inverting the light transport equation

(IT)L=LeL=(IT)1Le

where I is the identity operator. we get the solution operator :

S=(IT)1

  1. Conditions for invertibility

these formal manipulations are valid only if the operator IT is invertible. a sufficient condition is that ||T||<1 , where ||T|| is the standard operator norm

||T||=sup||f||1||Tf||

where the norms on the right are function norms . Given that ||T||<1 , the inverse of IT exists and is given by

S=(IT)1=i=0Ti

This is called the Neumann series . this expansion has a physical interpretation when when applied to L=SLe , since

L=Le+TLe+T2Le+...

For (one-sided) reflective surface :

||G||p1 for any 1p

||K||p1 as long as all BRDF's in the scene are energy-conserving and symmetric.

by making the additional assumption that no surface is perfectly reflective ,

||K||p<1 and thus

||T||p=||KG||p||K||p||G||p<1

In the case of scattering (i.e. transmission + reflection)

||K||<ηmax2ηmin2

where the ηmin,ηmax denote the minimum and maximum refractive indices in the environment. This corresponds to the fact that radiance can increase during scattering, due to refraction.

4.5 Sensors and measurements

we can imagine that each pixel is a small piece of film within a virtual camera, and that the pixel value is proportional to the radiant power that it receives .

We will only deal with linear sensors , in which case the response is characterized by a function

We(x,ω)=dS(x,ω)dΦ(x,ω)

where S is the unit of sensor response. that specifies the sensor response per unit of power arriving at x from direction ω .

  1. For real sensor We is called the flux responsivity of the sensor. Depending on the sensor, S could represent a voltage, current, change, in photographic film density, deflection of a meter needle, etc.

  2. For hypothetical sensor used in graphics, We is called an exitant importance function. The corresponding sensor response is unitless, and thus importance has units of [W1] . We assume that We is defined over the entire ray space R , although it will be zero over most of this domain for typical sensors. In the case where measurements represent pixel values, note that We can model arbitrary lens systems used to form the image, as well as any linear filters used for anti-aliasing .

The measurement equation

To compute a measurement, we integrate the response

dS(r)=We(r)dΦ(r)=We(r)Li(r)dμ(r)

for all the incident radiance falling on the sensor. this is summarized by Nicodemus' measurement equation , expressed in our notation as

I=We,Li=RWe(r)Li(r)dμ(r)

where I is a measurement, We is the emitted importance, and Li is the incident radiance. It would not define Le since the actual emission takes place somewhere else.

Notice that although we have defined the equilibrium solution L=SLe as an exitant quantity, the measurement equation requires an incident function. This problem can be solved with the G operator, by using the relationship Li=GL . Each measurement now has the form

I=We,Li=We,GL=We,GSLe

it is the explicit inclusion of G in this equation that allows us to use the exitant forms of both Le and We .

4.6 Importance transport via adjoint operators

The adjoint of an operator H is denoted H , and is defined by the property that

Hf,g=f,Hg

An operator is self-adjoint if H=H. This corresponds to familiar concept of a symmetric matrix in real linear algebra.

now we apply the identity to the measurement equation

I=We,GSLe=(GS)We,Le

the adjoint of K is given by

(Kh)(x,ωo)=S2fs(x,ωiωo)h(x,ωi)dσx(ωi)

notice that K is the same as K , except that it use adjoint BSDF

fs(x,ωiωo)=fs(x,ωoωi)

let us suppose that fs is symmetric at every point xM , so that K=K . putting these facts together with standard identities (Appendix 4.B), it is easy to show that

(GS)=GS

i.e. the operator (GS) is self-adjoint as well

measurements can be evaluated

I=We,GSLeorI=GSWe,Le

The only difference between these two expressions is that We and Le have been exchanged.

Importance transport

the equilibrium importance function is given by W=SWe , and satisfies the importance transport equation

W=We+TW

the relationship Li=GLo for incident radiance becomes Wi=GWo for incident importance . we get the symmetric measurement equations

I=We,LiorI=Wi,Le

However, if the scene model contains any surface with a non-symmetric BSDF, then KK . This does not affect the light transport operator T=KG, which we will rename TL, but the importance transport operator becomes

Tw=KG

This means that in general, light and importance obey different transport equations .

posted @   Heskey0  阅读(177)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 阿里最新开源QwQ-32B,效果媲美deepseek-r1满血版,部署成本又又又降低了!
· SQL Server 2025 AI相关能力初探
· AI编程工具终极对决:字节Trae VS Cursor,谁才是开发者新宠?
· 开源Multi-agent AI智能体框架aevatar.ai,欢迎大家贡献代码
· Manus重磅发布:全球首款通用AI代理技术深度解析与实战指南

本站勉强运行 1191 天 16 小时 08 分 55 秒

喜欢请打赏

扫描二维码打赏

支付宝打赏

点击右上角即可分享
微信分享提示