summary and conclusion - wpiweb.cs.wpi.edu/.../cs563/s07/...conclusion_wk13_p2.pdf · summary and...

26
CS 563 Advanced Topics in Computer Graphics Summary and Conclusion by Juan Li

Upload: others

Post on 01-Oct-2020

10 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Summary and Conclusion - WPIweb.cs.wpi.edu/.../cs563/S07/...conclusion_wk13_p2.pdf · Summary and Conclusion by Juan Li. Ray Tracing § Appel 1968 – Ray casting 1. Generate an image

CS 563 Advanced Topics in Computer Graphics

Summary and Conclusion

by Juan Li

Page 2: Summary and Conclusion - WPIweb.cs.wpi.edu/.../cs563/S07/...conclusion_wk13_p2.pdf · Summary and Conclusion by Juan Li. Ray Tracing § Appel 1968 – Ray casting 1. Generate an image

Ray Tracing

§ Appel 1968 – Ray casting1. Generate an image by sending one ray per pixel2. Check for shadows by sending a ray to the light

Page 3: Summary and Conclusion - WPIweb.cs.wpi.edu/.../cs563/S07/...conclusion_wk13_p2.pdf · Summary and Conclusion by Juan Li. Ray Tracing § Appel 1968 – Ray casting 1. Generate an image

Ray Tracing

§ Whitted 1979Recursive ray tracing( reflection and refraction)

Page 4: Summary and Conclusion - WPIweb.cs.wpi.edu/.../cs563/S07/...conclusion_wk13_p2.pdf · Summary and Conclusion by Juan Li. Ray Tracing § Appel 1968 – Ray casting 1. Generate an image

PBRT Architecture

Page 5: Summary and Conclusion - WPIweb.cs.wpi.edu/.../cs563/S07/...conclusion_wk13_p2.pdf · Summary and Conclusion by Juan Li. Ray Tracing § Appel 1968 – Ray casting 1. Generate an image

PBRT Organization

Page 6: Summary and Conclusion - WPIweb.cs.wpi.edu/.../cs563/S07/...conclusion_wk13_p2.pdf · Summary and Conclusion by Juan Li. Ray Tracing § Appel 1968 – Ray casting 1. Generate an image

Primitive

§ Primitive: a shape with its appearance properties such as material properties. It is the bridge between the geometry processing and shading subsystem.

§ Primitives1. Basic geometric primitive2. Primitive instance

Reuses transformed copies of a single collection of geometry at multiple positions

3. Aggregate( collection )Treat collections just like basic primitivesIncorporate acceleration structures into collectionsMay nest accelerator of different types

Types:grid.cpp kdtree.cpp

Page 7: Summary and Conclusion - WPIweb.cs.wpi.edu/.../cs563/S07/...conclusion_wk13_p2.pdf · Summary and Conclusion by Juan Li. Ray Tracing § Appel 1968 – Ray casting 1. Generate an image

Accelerator

§ Uniform grid

Preprocess scenes§ 1.Find bounding box§ 2.Determine resolution§ 3.Place object in cell if object

overlaps cellTraverse grid

Page 8: Summary and Conclusion - WPIweb.cs.wpi.edu/.../cs563/S07/...conclusion_wk13_p2.pdf · Summary and Conclusion by Juan Li. Ray Tracing § Appel 1968 – Ray casting 1. Generate an image

Accelerator

§ Spatial Hierarchies

§ Letters correspond to planes(A,B,C,D)

§ Point location by recursive search

Page 9: Summary and Conclusion - WPIweb.cs.wpi.edu/.../cs563/S07/...conclusion_wk13_p2.pdf · Summary and Conclusion by Juan Li. Ray Tracing § Appel 1968 – Ray casting 1. Generate an image

Accelerator

§ Variations

§ Kd-tree recursively split along one coordinate axe

§ OCT-tree use 3 axis-perpendicular planes to split to 8 regions

§ BSPtreeadaptively subdivide space into irregularly sized regions

Page 10: Summary and Conclusion - WPIweb.cs.wpi.edu/.../cs563/S07/...conclusion_wk13_p2.pdf · Summary and Conclusion by Juan Li. Ray Tracing § Appel 1968 – Ray casting 1. Generate an image

Radiometry

§ Basic quantities§ Flux: power, energy per unit time (J/s) or(W), symbol § Irradiance :area density of flux( W/m2) E

Φ

§ Intensity: power per unit solid angle

§ Radiance: the flux density per unit area per unit solid angle

dAdd

Φ=

Page 11: Summary and Conclusion - WPIweb.cs.wpi.edu/.../cs563/S07/...conclusion_wk13_p2.pdf · Summary and Conclusion by Juan Li. Ray Tracing § Appel 1968 – Ray casting 1. Generate an image

Radiometry

ncident and Exitant Radiance functions§ Incident Radiance, distribution of radiance arriving at

the point Li(p,w)§ Exitant Radiance: outgoing reflected radiance from

the surface Lo(p,w)Li(p,w)!= Lo(p,w)

Radiometric Intergrals

∫ Ω= ωθω dpLnpE i |cos|),(),(

Scattering equationLo(p,w0)=?s2f(p,w0,wi)Li (p,wi)|cos?i|dwi;

Page 12: Summary and Conclusion - WPIweb.cs.wpi.edu/.../cs563/S07/...conclusion_wk13_p2.pdf · Summary and Conclusion by Juan Li. Ray Tracing § Appel 1968 – Ray casting 1. Generate an image

Camera Model

§ Projective Camera ModelsProject a 3D scene onto a 2D imageOrthographic projection modelPerspective projection model§ Depth of fieldblurriness in the out-of-focus regions

Cause: aperture has finite area

Page 13: Summary and Conclusion - WPIweb.cs.wpi.edu/.../cs563/S07/...conclusion_wk13_p2.pdf · Summary and Conclusion by Juan Li. Ray Tracing § Appel 1968 – Ray casting 1. Generate an image

Cameral

§ As the size of the lens aperture increases, more blur

Page 14: Summary and Conclusion - WPIweb.cs.wpi.edu/.../cs563/S07/...conclusion_wk13_p2.pdf · Summary and Conclusion by Juan Li. Ray Tracing § Appel 1968 – Ray casting 1. Generate an image

Sampling and Reconstruction

The sampling and reconstruction processReal world: continuousDigital world: discrete

Basic signal processingFourier transformsThe convolution theoremThe sampling theorem

Aliasing and antialiasingUniform supersamplingNonuniform supersampling

Page 15: Summary and Conclusion - WPIweb.cs.wpi.edu/.../cs563/S07/...conclusion_wk13_p2.pdf · Summary and Conclusion by Juan Li. Ray Tracing § Appel 1968 – Ray casting 1. Generate an image

Sampling and reconstruction

§ Fourier TransformsEach function has two representations

Spatial domain-normal representationFrequency domain-spectral representation

Spectral representation treats the function as a weighted sum of sines and cosines

Page 16: Summary and Conclusion - WPIweb.cs.wpi.edu/.../cs563/S07/...conclusion_wk13_p2.pdf · Summary and Conclusion by Juan Li. Ray Tracing § Appel 1968 – Ray casting 1. Generate an image

§ Spatial Domain Frequency Domain

Page 17: Summary and Conclusion - WPIweb.cs.wpi.edu/.../cs563/S07/...conclusion_wk13_p2.pdf · Summary and Conclusion by Juan Li. Ray Tracing § Appel 1968 – Ray casting 1. Generate an image

§ Convolution

Convolution Theorem: Multiplication in the frequency domain is equivalent to convolution in the space domain.

Page 18: Summary and Conclusion - WPIweb.cs.wpi.edu/.../cs563/S07/...conclusion_wk13_p2.pdf · Summary and Conclusion by Juan Li. Ray Tracing § Appel 1968 – Ray casting 1. Generate an image

§ Ideal Sampling

∑ −= )()( iTxTxIIIT δ∑ −=

iT iTfiTxTxfxIII )()()()( δ

§ The multiplication yields and infinite sequence of values of the function at equally spaced points;

§ Ideal reconstruction

Computing the convolution between the sample values above and a filter function

)())()(( xrxfxIII T ⊗

Page 19: Summary and Conclusion - WPIweb.cs.wpi.edu/.../cs563/S07/...conclusion_wk13_p2.pdf · Summary and Conclusion by Juan Li. Ray Tracing § Appel 1968 – Ray casting 1. Generate an image

Aliasing

§ Underasampling :Aliasing

§ The left: when the sampling rate is too low, the copies of the function’s spectrum overlap

§ The right: resulting in aliasing when reconstruction is performed.

Page 20: Summary and Conclusion - WPIweb.cs.wpi.edu/.../cs563/S07/...conclusion_wk13_p2.pdf · Summary and Conclusion by Juan Li. Ray Tracing § Appel 1968 – Ray casting 1. Generate an image

Antialiasing

§ Antialiasing = preventing aliasing§ 1.Analytically prefitler the signalFilter the original function so that no high

frequencies remain§ 2. Uniform supersampling and resampleIncreasing the sampling rate;§ 3.Nonuniform or stochastic samplingVarying the spacing between samples in a

nonuniform way.

Page 21: Summary and Conclusion - WPIweb.cs.wpi.edu/.../cs563/S07/...conclusion_wk13_p2.pdf · Summary and Conclusion by Juan Li. Ray Tracing § Appel 1968 – Ray casting 1. Generate an image

Reflection Models

§ BRDFBidirectional reflectance distribution function§ BTDFBidirectional transmission distribution function§ BSDFBidirectional scatter distribution functionCombine the above two functions

Page 22: Summary and Conclusion - WPIweb.cs.wpi.edu/.../cs563/S07/...conclusion_wk13_p2.pdf · Summary and Conclusion by Juan Li. Ray Tracing § Appel 1968 – Ray casting 1. Generate an image

§ Types of reflection functionsIdeal specularReflection lawMirrorIdeal diffuseLambert’s lawSpecularGlossyDirectional diffuse

Page 23: Summary and Conclusion - WPIweb.cs.wpi.edu/.../cs563/S07/...conclusion_wk13_p2.pdf · Summary and Conclusion by Juan Li. Ray Tracing § Appel 1968 – Ray casting 1. Generate an image

Reflection equation

Page 24: Summary and Conclusion - WPIweb.cs.wpi.edu/.../cs563/S07/...conclusion_wk13_p2.pdf · Summary and Conclusion by Juan Li. Ray Tracing § Appel 1968 – Ray casting 1. Generate an image

§ Reflection and refraction§ Laws§ Lr=kdLicos?;§ ? isin? i=? tsin? t

Page 25: Summary and Conclusion - WPIweb.cs.wpi.edu/.../cs563/S07/...conclusion_wk13_p2.pdf · Summary and Conclusion by Juan Li. Ray Tracing § Appel 1968 – Ray casting 1. Generate an image

§ Microfacet modelsDistribution of facets + BRDF from individual

microfacets.

Page 26: Summary and Conclusion - WPIweb.cs.wpi.edu/.../cs563/S07/...conclusion_wk13_p2.pdf · Summary and Conclusion by Juan Li. Ray Tracing § Appel 1968 – Ray casting 1. Generate an image

Self-shadowing

§ shadows on rough surface