dmitriy volume rendering wk13 p1 - wpiweb.cs.wpi.edu/.../dmitriy_volume_rendering_wk13_p1.pdf ·...
TRANSCRIPT
![Page 1: dmitriy volume rendering wk13 p1 - WPIweb.cs.wpi.edu/.../dmitriy_volume_rendering_wk13_p1.pdf · 2007. 4. 17. · Title: dmitriy_volume_rendering_wk13_p1.PDF Author: emmanuel Created](https://reader034.vdocuments.us/reader034/viewer/2022051915/6006f25287ef324adc4a691e/html5/thumbnails/1.jpg)
CS 563 Advanced Topics in Computer Graphics
Light Transport: Volume Rendering
by Dmitriy Janaliyev
![Page 2: dmitriy volume rendering wk13 p1 - WPIweb.cs.wpi.edu/.../dmitriy_volume_rendering_wk13_p1.pdf · 2007. 4. 17. · Title: dmitriy_volume_rendering_wk13_p1.PDF Author: emmanuel Created](https://reader034.vdocuments.us/reader034/viewer/2022051915/6006f25287ef324adc4a691e/html5/thumbnails/2.jpg)
Introduction
§ The Light Transport Equation (LTE) – equation that describes distribution of radiance in the scene
§ Integrators – objects (algorithms) that are responsible for finding numerical solution to the LTE
§ Two basic classes of Integrators:§ SurfaceIntegrator§ VolumeIntegrator
![Page 3: dmitriy volume rendering wk13 p1 - WPIweb.cs.wpi.edu/.../dmitriy_volume_rendering_wk13_p1.pdf · 2007. 4. 17. · Title: dmitriy_volume_rendering_wk13_p1.PDF Author: emmanuel Created](https://reader034.vdocuments.us/reader034/viewer/2022051915/6006f25287ef324adc4a691e/html5/thumbnails/3.jpg)
The Equation of Transfer
§ The equation of transfer – equation that governs behavior of light in a medium that absorbs, emits and scatters radiation
§ Integro-differential form – describes how the radiance along a beam changes at a point in space
§ Pure integral form – describes the effect of participating media from infinite number of points along a line
![Page 4: dmitriy volume rendering wk13 p1 - WPIweb.cs.wpi.edu/.../dmitriy_volume_rendering_wk13_p1.pdf · 2007. 4. 17. · Title: dmitriy_volume_rendering_wk13_p1.PDF Author: emmanuel Created](https://reader034.vdocuments.us/reader034/viewer/2022051915/6006f25287ef324adc4a691e/html5/thumbnails/4.jpg)
The Equation of Transfer
§ Can be derived by subtracting the effects of processes that reduce energy along the beam from those processes that increase energy along it
§ The source term:
- emitted radiance
- scattering probability
- phase function
- incident radiance
∫ ′′→′−+=2
),(),(),(),(),(S
isve dpLppppLpS ωωωωωσωω
),( ωpLve
),( ωσ ps
),( ωω →′−pp
),( ω′pLi
![Page 5: dmitriy volume rendering wk13 p1 - WPIweb.cs.wpi.edu/.../dmitriy_volume_rendering_wk13_p1.pdf · 2007. 4. 17. · Title: dmitriy_volume_rendering_wk13_p1.PDF Author: emmanuel Created](https://reader034.vdocuments.us/reader034/viewer/2022051915/6006f25287ef324adc4a691e/html5/thumbnails/5.jpg)
The Equation of Transfer
§ The attenuation coefficient:
§ The overall change in radiance at a point along a ray:
§ To get pure integral form of the above equation assume that the rays have infinite length:
dtpLppdL ito ),(),(),( ωωσω −−=
),(),(),(),( ωωωσω pSpLppLt ito +−−=
∂∂
∫∞
−′⋅→′=0
),()(),( dtpSppTpL ri ωω
),( ωσ pt
p′
![Page 6: dmitriy volume rendering wk13 p1 - WPIweb.cs.wpi.edu/.../dmitriy_volume_rendering_wk13_p1.pdf · 2007. 4. 17. · Title: dmitriy_volume_rendering_wk13_p1.PDF Author: emmanuel Created](https://reader034.vdocuments.us/reader034/viewer/2022051915/6006f25287ef324adc4a691e/html5/thumbnails/6.jpg)
The Equation of Transfer
Where
- beam transmittance from to the ray’s origin)( ppTr →′
∫∞
−′⋅→′=0
),()(),( dtpSppTpL ri ωω
ωtpp +=′
p′
dr
teppT σ−=→′ )(
![Page 7: dmitriy volume rendering wk13 p1 - WPIweb.cs.wpi.edu/.../dmitriy_volume_rendering_wk13_p1.pdf · 2007. 4. 17. · Title: dmitriy_volume_rendering_wk13_p1.PDF Author: emmanuel Created](https://reader034.vdocuments.us/reader034/viewer/2022051915/6006f25287ef324adc4a691e/html5/thumbnails/7.jpg)
The Equation of Transfer
Basic terms of the equation of transfer
![Page 8: dmitriy volume rendering wk13 p1 - WPIweb.cs.wpi.edu/.../dmitriy_volume_rendering_wk13_p1.pdf · 2007. 4. 17. · Title: dmitriy_volume_rendering_wk13_p1.PDF Author: emmanuel Created](https://reader034.vdocuments.us/reader034/viewer/2022051915/6006f25287ef324adc4a691e/html5/thumbnails/8.jpg)
The Equation of Transfer
§ More generally if a ray intersects a surface at some point the integral equation of transfer is:
- the point on the surface
- points along the ray
- radiance outgoing from the surface
),( ωp 0p
∫ ′−′⋅→′+−→=t
rri tdpSppTpLppTpL0
000 ),()(),()(),( ωωω
ωtpp ′+=′
ωtpp +=0
),( 00 ω−pL
![Page 9: dmitriy volume rendering wk13 p1 - WPIweb.cs.wpi.edu/.../dmitriy_volume_rendering_wk13_p1.pdf · 2007. 4. 17. · Title: dmitriy_volume_rendering_wk13_p1.PDF Author: emmanuel Created](https://reader034.vdocuments.us/reader034/viewer/2022051915/6006f25287ef324adc4a691e/html5/thumbnails/9.jpg)
The Equation of Transfer
For equation of transfer for a finite ray
![Page 10: dmitriy volume rendering wk13 p1 - WPIweb.cs.wpi.edu/.../dmitriy_volume_rendering_wk13_p1.pdf · 2007. 4. 17. · Title: dmitriy_volume_rendering_wk13_p1.PDF Author: emmanuel Created](https://reader034.vdocuments.us/reader034/viewer/2022051915/6006f25287ef324adc4a691e/html5/thumbnails/10.jpg)
Volume Integrator Interface
§ Integrator à VolumeIntegrator§ Preprocess()§ RequestSamples()§ Li()§ Transmittance()
§ To compute the total radiance arriving at the ray origin:§ The surface integrator computes outgoing radiance at the ray’s
intersection point§ The volume integrator’s Transmittance() computes the beam
transmission § The volume integrator’s Li() gives the radiance along the ray due to
participating media§ The sum of and the additional radiance from participating
media gives the total radiance arriving at the ray originrTL0
rT
0L
![Page 11: dmitriy volume rendering wk13 p1 - WPIweb.cs.wpi.edu/.../dmitriy_volume_rendering_wk13_p1.pdf · 2007. 4. 17. · Title: dmitriy_volume_rendering_wk13_p1.PDF Author: emmanuel Created](https://reader034.vdocuments.us/reader034/viewer/2022051915/6006f25287ef324adc4a691e/html5/thumbnails/11.jpg)
Emission-only Integrator
§ Uses simplified equation of transfer§ Ignoring in-scattering term
∫ ′−′⋅→′+−→=t
rri tdpSppTpLppTpL0
000 ),()(),()(),( ωωω
∫ ′′→′−+=2
),(),(),(),(),(S
isve dpLppppLpS ωωωωωσωω
∫ ′−′⋅→′+−→=t
verri tdpLppTpLppTpL0
000 ),()(),()(),( ωωω
![Page 12: dmitriy volume rendering wk13 p1 - WPIweb.cs.wpi.edu/.../dmitriy_volume_rendering_wk13_p1.pdf · 2007. 4. 17. · Title: dmitriy_volume_rendering_wk13_p1.PDF Author: emmanuel Created](https://reader034.vdocuments.us/reader034/viewer/2022051915/6006f25287ef324adc4a691e/html5/thumbnails/12.jpg)
Emission-only Integrator
§ Implemented with EmissionIntegrator interface
§ Monte-Carlo integration is used by Transmittance() and Li() methods
§ Number of samples taken to evaluate estimates of integrals depends on the distance the ray travels in the volume
§ The ray is divided into segments of the given length and a single sample is taken in each of the segments
![Page 13: dmitriy volume rendering wk13 p1 - WPIweb.cs.wpi.edu/.../dmitriy_volume_rendering_wk13_p1.pdf · 2007. 4. 17. · Title: dmitriy_volume_rendering_wk13_p1.PDF Author: emmanuel Created](https://reader034.vdocuments.us/reader034/viewer/2022051915/6006f25287ef324adc4a691e/html5/thumbnails/13.jpg)
Emission-only Integrator
§ Transmittance() implementation§ VolumeRegion’s Tau() method computes optical thickness§ Feed volumeRegion->Tau() with step size and sample value§ Return Exp(-tau)
§ Li() implementation§ If the ray enters the volume at Li() can consider integral
where is the minimum of the parametric offset where the ray exits the volume and the offset where it intersects a surface
0tt =
∫ ′−′⋅→′1
0
),()(t
tver tdpLppT ω
1t
![Page 14: dmitriy volume rendering wk13 p1 - WPIweb.cs.wpi.edu/.../dmitriy_volume_rendering_wk13_p1.pdf · 2007. 4. 17. · Title: dmitriy_volume_rendering_wk13_p1.PDF Author: emmanuel Created](https://reader034.vdocuments.us/reader034/viewer/2022051915/6006f25287ef324adc4a691e/html5/thumbnails/14.jpg)
Emission-only Integrator
§ Li() implementation§ The integral can be found by uniformly selecting random points
along the ray between and and evaluating the estimator:0t
∑∑ −→−
=−→
iiveir
i i
iveir pLppTN
ttpp
pLppTN
),()()(
),()(1 01 ωω
1t
![Page 15: dmitriy volume rendering wk13 p1 - WPIweb.cs.wpi.edu/.../dmitriy_volume_rendering_wk13_p1.pdf · 2007. 4. 17. · Title: dmitriy_volume_rendering_wk13_p1.PDF Author: emmanuel Created](https://reader034.vdocuments.us/reader034/viewer/2022051915/6006f25287ef324adc4a691e/html5/thumbnails/15.jpg)
Emission-only Integrator
§ Additional implementation details:§ For efficient evaluation of beam transmittance values the points
are sorted and multiplicative property of is used to incrementally compute from its value for the previous point:
§ Ray stepping is randomly terminated with Russian roulette when transmittance is sufficiently small
iprT
rT
rT
)()()( 11 −− →→=→ iiririr ppTppTppT
![Page 16: dmitriy volume rendering wk13 p1 - WPIweb.cs.wpi.edu/.../dmitriy_volume_rendering_wk13_p1.pdf · 2007. 4. 17. · Title: dmitriy_volume_rendering_wk13_p1.PDF Author: emmanuel Created](https://reader034.vdocuments.us/reader034/viewer/2022051915/6006f25287ef324adc4a691e/html5/thumbnails/16.jpg)
Emission-only Integrator
a) b)
The scene rendered (a) without any participating media and (b) with fog and EmissionIntegrator
![Page 17: dmitriy volume rendering wk13 p1 - WPIweb.cs.wpi.edu/.../dmitriy_volume_rendering_wk13_p1.pdf · 2007. 4. 17. · Title: dmitriy_volume_rendering_wk13_p1.PDF Author: emmanuel Created](https://reader034.vdocuments.us/reader034/viewer/2022051915/6006f25287ef324adc4a691e/html5/thumbnails/17.jpg)
Single Scattering Integrator
§ SingleScattering integrator considers the incident radiance due to direct illumination ignoring one due to multiple scattering
§ Li() method evaluates integral:
§ More computationally expensive
§ Allows “beams of light” effects
∫ ∫ ′′′′−→′−′′+−′⋅→′t
S
dsver tddpLppppLppT0
)),(),(),(),(()(2
ωωωωωσω
![Page 18: dmitriy volume rendering wk13 p1 - WPIweb.cs.wpi.edu/.../dmitriy_volume_rendering_wk13_p1.pdf · 2007. 4. 17. · Title: dmitriy_volume_rendering_wk13_p1.PDF Author: emmanuel Created](https://reader034.vdocuments.us/reader034/viewer/2022051915/6006f25287ef324adc4a691e/html5/thumbnails/18.jpg)
Single Scattering Integrator
∫ ′′−→′−2
),(),(),(S
ds dpLppp ωωωωωσ
Evaluation of direct lighting contribution
![Page 19: dmitriy volume rendering wk13 p1 - WPIweb.cs.wpi.edu/.../dmitriy_volume_rendering_wk13_p1.pdf · 2007. 4. 17. · Title: dmitriy_volume_rendering_wk13_p1.PDF Author: emmanuel Created](https://reader034.vdocuments.us/reader034/viewer/2022051915/6006f25287ef324adc4a691e/html5/thumbnails/19.jpg)
Single Scattering Integrator
The scene rendered with Single scattering volume integrator
![Page 20: dmitriy volume rendering wk13 p1 - WPIweb.cs.wpi.edu/.../dmitriy_volume_rendering_wk13_p1.pdf · 2007. 4. 17. · Title: dmitriy_volume_rendering_wk13_p1.PDF Author: emmanuel Created](https://reader034.vdocuments.us/reader034/viewer/2022051915/6006f25287ef324adc4a691e/html5/thumbnails/20.jpg)
References
§ Matt Pharr, Greg Humphreys“Physically Based Rendering: From Theory to Implementation”
§ Images were taken from the companion CD or scanned from the book