Numerical Integration

Size: px
Start display at page:

Download "Numerical Integration"

Transcription

1 Lecture 12: Numerical Integration (with a focus on Monte Carlo integration) Computer Graphics CMU /15-662, Fall 2015

2 Review: fundamental theorem of calculus Z b f(x)dx = F (b) F (a) a f(x) = d dx F (x) F (x) F (x) F (a) Z x f(t)dt = F (x) F (a) a x = a x

3 Definite integral as area under curve Z b a f(x)dx f(x) x = a x = b

4 Simple case: constant function Z b Cdx =(b a)c a f(x) C x = a x = b

5 Affine function: f(x) =cx + d Z b a f(x)dx = 1 2 (f(a)+f(b))(b a) f(x) f(b) 1 2 (f(a)+f(b)) f(a) x = a x = b

6 Piecewise affine function Sum of integrals of individual affine components f(x) Z b a f(x)dx = 1 2 n 1 X i=0 (x i+1 x i )(f(x i )+f(x i+1 )) x 0 = a x 1 x 2 x 3 x 4 = b

7 Piecewise affine function If N-1 segments are of equal length: h = b a n 1 f(x) Z b a f(x)dx = h 2 Weighted combination of measurements. = h = nx i=0 n 1 X i=0 n 1 X i=1 (f(x i )+f(x i+1 ) f(x i )+ 1 2 (f(x 0)+f(x n )) A i f(x i )! x 0 = a x 1 x 2 x 3 x 4 = b

8 Polynomials? f(x) x = a x = b

9 Aside: interpolating polynomials Consider n+1 measurements of a function f(x) f(x 0 ),f(x 1 ),f(x 2 ),,f(x n ) There is a unique degree n polynomial that interpolates the points: p(x) = nx i=0 f(x i ) ny j6=i,j=0 x x i xj x j l 1 (x) l 2 (x) l 3 (x) nx = f(x i )l i (x) i=0 Note: is 1 at and 0 at l i (x) x i l 0 (x) all other measurement points

10 Gaussian quadrature theorem If f(x) is a polynomial of degree of up to 2n+1, then its integral over [a,b] is computed exactly by a weighted combination of n+1 measurements in this range. Z b a f(x)dx = nx i=0 A i f(x i ) A i = Z b a l i (x)dx Where are these points? Roots of degree n+1 polynomial Z b q(x) where: x k q(x)dx =0 0 apple k apple n a apple apple

11 Arbitrary function f(x)? f(x) x 0 = a x 1 x 2 x 3 x 4 = b

12 Trapezoidal rule Approximate integral of f(x) by assuming function is piecewise linear For equal length segments: f(x) h = b Z b a a n 1 f(x)dx = h n 1 X i=1 f(x i )+ 1 2 (f(x 0)+f(x n ))! x 0 = a x 1 x 2 x 3 x 4 = b

13 Trapezoidal rule Consider cost and accuracy of estimate as n!1 (or h! 0 ) Work: O(n) Error can be shown to be: O(h 2 )=O( 1 n 2 ) f(x) (for f(x) with continuous second derivative) h

14 Integration in 2D Consider integrating f(x, y) using the trapezoidal rule (apply rule twice: when integrating in x and in y) Z by a y Z Z bx by f(x, y)dxdy = O(h 2 )+ a x a y i=0! nx A i f(x i,y) dy i=0 nx Z by = O(h 2 )+ A i nx = O(h 2 )+ A i 0 a y f(x 2 )+ i=0 j=0 1 nx A j f(x i,y j ) A First application of rule Second application = O(h 2 )+ nx i=0 nx j=0 A i A j f(x i,y j ) Errors add, so error still: But work is now: O(n 2 ) (n x n set of measurements) O(h 2 ) Must perform much more work in 2D to get same error bound on integral! In K-D, let N = n k 1 Error goes as: O N 2/k

15 Recall: camera measurement equation from last time Q = 1 Z t 1 d 2 5D integral! t 0 Z A lens d Z L(p 0! p,t) cos 4 dp dp 0 dt 0 A film p 0 r 2 p (Rendering requires computation of infinite dimensional integrals. Coming soon in class!)

16 Monte Carlo Integration Slides credit: a majority of these slides were created by Matt Pharr and Pat Hanrahan

17 Monte Carlo numerical integration Estimate value of integral using random sampling of function - Value of estimate depends on random samples used - But algorithm gives the correct value of integral on average So far we ve discussed techniques that use a fixed set of sample points (e.g., uniformly spaced, or obtained by finding roots of polynomial (Gaussian quadrature)) Only requires function to be evaluated at random points on its domain - Applicable to functions with discontinuities, functions that are impossible to integrate directly Error of estimate is independent of the dimensionality of the integrand - Depends on the number of random samples used: Recall previous trapezoidal rule example: (dropping the n 2 for simplicity) O(n 1/2 ) O(n 1/k )

18 Review: random variables X random variable. Represents a distribution of potential values X p(x) probability density function (PDF). Describes relative probability of a random process choosing value (x) Uniform PDF: all values over a domain are equally likely e.g., for an unbiased die X takes on values 1,2,3,4,5,6 p(1) = p(2) = p(3) = p(4) = p(5) = p(6)

19 Discrete probability distributions n discrete values x i With probability p i p i Requirements of a PDF: x i p i 0 nx p i =1 i=1 Six-sided die example: p i = 1 6 p i X x i Think: is the probability that a random measurement of will yield the value X takes on the value x i with probability p i

20 Cumulative distribution function (CDF) (For a discrete probability distribution) p i jx Cumulative PDF: P j = p i x i i=1 1 where: 0 apple P i apple 1 P n =1 P j 0

21 How do we generate samples of a discrete random variable (with a known PDF?)

22 Sampling from discrete probability distributions To randomly select an event, select x i if 1 P i 1 < apple P i Uniform random variable 2 [0, 1) P j 0 x 2

23 Continuous probability distributions PDF p(x) Uniform distribution (for random variable X defined on [0,1] domain) p(x) 0 CDF P (x) Z x 0 1 P (x) = p(x)dx 1 0 P (x) =Pr(X<x) P (1) = 1 Z b Pr(a apple X apple b) = p(x)dx a = P (b) P (a) 0 1

24 Sampling continuous random variables using the inversion method Cumulative probability distribution function P (x) =Pr(X<x) 1 Construction of samples: Solve for x = P 1 ( ) Must know the formula for: 1. The integral of p(x) 2. The inverse function P 1 (x) 0 x 1

25 Example: applying the inversion method Given: Relative density of probability of random variable taking on value x over [0,2] domain f(x) =x 2 x 2 [0, 2] Compute PDF: Z 2 1= 0 cf(x)dx = c(f (2) F (0)) = c = 8c 3 c = 3 8, p(x) =3 8 x2 Probability density function (integrates to 1)

26 Example: applying the inversion method Given: f(x) =x 2 x 2 [0, 2] p(x) = 3 8 x2 Compute CDF: Z x P (x) = 0 = x3 8 p(x)dx

27 Example: applying the inversion method Given: f(x) =x 2 x 2 [0, 2] p(x) = 3 8 x2 P (x) = x3 8 Sample from p(x) = P (x) = x3 8 x = 3p 8 x

28 How do we uniformly sample the unit circle? (Choose any point P=(px, py) in circle with equal probability)

29 Uniformly sampling unit circle: first try, = uniform random angle between 0 and 2 (r c = uniform random radius between 0 and 1 Return point: (r cos,rsin ) This algorithm does not produce the desired uniform sampling of the area of a circle. Why?

30 Because sampling is not uniform in area! Points farther from center of circle are less likely to be chosen rdrd =2 1 r = 2 p(r, )drd rdrd p(r, ) r

31 Sampling a circle (via inversion in 2D) A = Z 2 0 Z 1 0 r dr d = Z 1 0 r dr Z 2 0 d = r = p(r, )dr d = 1 r dr d! p(r, ) = r p(r, ) =p(r)p( ) r, independent rdrd p( ) = 1 2 P ( ) = 1 2 =2 1 p(r) =2r P (r) =r 2 r = p 2

32 Uniform area sampling of a circle WRONG Not Equi-areal RIGHT Equi-areal =2 1 =2 1 r = 2 r = p 2

33 Shirley s mapping Distinct cases for eight octants r = 1 = 2 4r

34 Uniform sampling via rejection sampling Generate random point within unit circle do { x = 1-2 * rand01(); y = 1-2 * rand01(); } while (x*x + y*y > 1.); Efficiency of technique: area of circle / area of square

35 Aside: approximating the area of a circle inside = 0 for (i = 0; i < N; ++i) { x = 1-2 * rand01(); y = 1-2 * rand01(); if (x*x + y*y < 1.) ++inside; } A = inside * 4 / N;

36 Rejection sampling to generate 2D directions Goal: generate random directions in 2D with uniform probability x = 1-2 * rand01(); y = 1-2 * rand01(); r = sqrt(x*x+y*y); x_dir = x/r; y_dir = y/r; This algorithm is not correct! What is wrong?

37 Rejection sampling to generate 2D directions Goal: generate random directions in 2D with uniform probability do { x = 1-2 * rand01(); y = 1-2 * rand01(); } while (x*x + y*y > 1.); r = sqrt(x*x+y*y); x_dir = x/r; y_dir = y/r;

38 Monte Carlo integration Z b Definite integral What we seek to estimate a f(x)dx Random variables X i is the value of a random sample drawn from the distribution Y i is also a random variable. p(x) X i p(x) Y i = f(x i ) Z b Expectation of f E[Y i ]=E[f(X i )] = f(x) p(x)dx a Estimator Monte Carlo estimate of Assuming samples X i Z b a f(x)dx drawn from uniform F N = b N a NX i=1 Y i pdf. I will provide estimator for arbitrary PDFs later in lecture.

39 Basic unbiased Monte Carlo estimator E[F N ]=E " b a NX Y i # N i=1 Unbiased estimator: Expected value of estimator is the integral we wish to evaluate. E Properties of expectation: " X Y i # X = E[Y i ] i = b a N = b a N = 1 N = NX i=1 Z b a NX i=1 NX i=1 Z b a E[Y i ]= b Z b a f(x)dx N a f(x) p(x)dx f(x)dx NX i=1 E[f(X i )] Assume uniform probability density for now X i U(a, b) p(x) = 1 b a i E[aY ]=ae[y ]

40 Direct lighting estimate Uniformly-sample hemisphere of directions with respect to solid angle Z p(!) = 1 E(p) = L(p,!) cos d! 2 Z L(p,!) d! Estimator: Z X i p(!) Y i = f(x i ) Y i = L(p,! i )cos i da F N = 2 N NX i=1 Y i

41 Direct lighting estimate Uniformly-sample hemisphere of directions with respect to solid angle Z E(p) = L(p,!) cos d! Z Given surface point p Z For each of N samples: Generate random direction: A ray tracer evaluates radiance along a ray (see Raytracer::trace_ray() in raytracer.cpp)! i! i Compute incoming radiance arriving L i at p from direction: Compute incident irradiance due to ray: de i = L i cos i Accumulate 2 N de i into estimator

42 Uniform hemisphere sampling Generate random direction on hemisphere (all directions equally likely) p(!) = 1 2 Direction computed from uniformly distributed point on 2D plane: q q ( 1, 2 )=( cos(2 2), sin(2 2), 1 ) Exercise to students: derive from the inversion method

43 Hemispherical solid angle Light source sampling, 100 sample rays (random directions drawn uniformly from hemisphere) Occluder (blocks light)

44 Why is the image in the previous slide noisy?

45 Incident lighting estimator uses different random directions in each pixel. Some of those directions point towards the light, others do not. (Estimator is a random variable)

46 Idea: don t need to integrate over entire hemisphere of directions (incoming radiance is 0 from most directions) Only integrate over the area of the light (directions where incoming radiance is non-zero)

47 Direct lighting: area integral Z E(p) = L(p,!) cos d! Integral over directions Z E(p) = ZA0 L o (p 0,! 0 ) V (p, p 0 ) Z cos cos 0 p p 0 2 da0 Change of variables to integral over area of light * A 0 p 0 dw = da p 0 p 2 = da0 cos p 0 p 2 0! 0 =p p 0 Binary visibility function: 1 if p is visible from p, 0 otherwise (accounts for light occlusion)! =p 0 p Outgoing radiance from light point p, in direction w towards p p

48 0! 0 =p p 0 Direct lighting: area integral ZA0 L o (p 0,! 0 ) V (p, p 0 ) E(p) = cos cos 0 p p 0 2 da0 Sample shape uniformly by area A Z A 0 p 0 A 0 p(p 0 )da 0 =1 p(p 0 )= 1 A 0! =p 0 p p

49 0! 0 =p p 0 Direct lighting: area integral ZA0 L o (p 0,! 0 ) V (p, p 0 ) E(p) = cos cos 0 p p 0 2 da0 Probability: p(p 0 )= 1 A 0 A 0 p 0 Estimator Y i = L o (p 0 i,! i) 0 V (p, p 0 i) cos i cos i 0 p p 0 i 2 0! =p 0 p F N = A0 N NX i=1 Y i 0 X p

50 Light source area sampling, 100 sample rays If no occlusion is present, all directions chosen in computing estimate hit the light source. (Choice of direction only matters if portion of light is occluded from surface point p.)

51 Variance Definition V [Y ]=E[(Y E[Y ]) 2 ] = E[Y 2 ] E[Y ] 2 Variance decreases linearly with number of samples V " 1 N NX i=1 Y i # = 1 N 2 NX i=1 V [Y i ]= 1 N 2 NV[Y ]= 1 N V [Y ] Properties of variance: V " N X i=1 Y i # = NX V [Y i ] i=1 V [ay ]=a 2 V [Y ]

52 1 area light sample (high variance in irradiance estimate)

53 16 area light samples (high variance in irradiance estimate)

54 Comparing different techniques Variance in an estimator manifests as noise in rendered images Estimator efficiency measure: E ciency / 1 Variance Cost If one integration technique has twice the variance as another, then it takes twice as many samples to achieve the same variance If one technique has twice the cost of another technique with the same variance, then it takes twice as much time to achieve the same variance

55 Biasing We previously used a uniform probability distribution to generate samples in our estimator Idea: change the distribution bias the selection of samples X i p(x) However, for estimator to remain unbiased, must change the estimator to: Y i = f(x i) p(x i ) Note: biasing selection of random samples is different than creating a biased estimator - Biased estimator: expected value of estimator does not equal integral it is designed to estimate (not good!)

56 General unbiased Monte Carlo estimator Z b NX f(x i ) f(x)dx 1 N a i=1 p(x i ) X i p(x) Special case where X i drawn from uniform distribution: F N = b N a NX i=1 f(x i ) X i U(a, b) p(x) = 1 b a

57 Biased sample selection, but unbiased estimator Probability: X i p(x) Estimator: Y i = f(x i) p(x i ) E[Y i ]=E apple f(xi ) p(x i ) = = Z f(x) p(x) p(x)dx Z f(x)dx

58 Importance sampling Idea: bias selection of samples towards parts of domain where function we are integrating is large ( most useful samples ) Sample according to f(x) Recall definition of variance: p(x) =cf(x) V [ f] =E[ f 2 ] E 2 [ f] f(x) = f(x) p(x) E[ f 2 ]= Z apple f(x) p(x) 2 p(x)dx Z apple = f(x) f(x)/e[f] 2 f(x) E[f] dx Z =E[f] f(x)dx If PDF is proportional to f then variance is 0! =E 2 [f]! V [ f] =0?!?

59 Importance sampling example Consider uniform hemisphere sampling in irradiance estimate: f(!) =L i (!) cos p(!) = 1 2 q q ( 1, 2 )=( cos(2 2), sin(2 2), 1 ) Z NX NX NX f(!)d! 1 N i f(!) p(!) = 1 N i L i (!) cos 1/2 = 2 N i L i (!) cos

60 Importance sampling example Cosine-weighted hemisphere sampling in irradiance estimate: f(!) =L i (!) cos p(!) = cos Z NX NX NX f(!) L i (!) cos = N L i (!) f(!)d! 1 N i p(!) = 1 N i cos / i Idea: bias samples toward directions where cos is large (if L is constant, then these are the directions that contribute most)

61 Effect of sampling distribution Fit f(x) p 2 (x) p 1 (x) What is the behavior of f(x)/p 1 (x)? f(x)/p 2 (x)? How does this impact the variance of the estimator?

62 Summary: Monte Carlo integration Monte Carlo estimator - Estimate integral by evaluating function at random sample points in domain F N = 1 N NX i=1 f(x i ) p(x i ) Z b a f(x)dx Useful in rendering due to estimate high dimension integrals - Faster convergence in estimating high dimensional integrals than nonrandomized quadrature methods - Suffers from noise due to variance in estimate Importance sampling - Reduce variance by biasing choice of samples to regions of domain where value of function is large - Intuition: pick samples that will contribute most to estimate

Monte Carlo Integration

Monte Carlo Integration Lecture 11: Monte Carlo Integration Computer Graphics and Imaging UC Berkeley CS184/284A, Spring 2016 Reminder: Quadrature-Based Numerical Integration f(x) Z b a f(x)dx x 0 = a x 1 x 2 x 3 x 4 = b E.g.

More information

Monte Carlo Integration

Monte Carlo Integration Lecture 15: Monte Carlo Integration Computer Graphics and Imaging UC Berkeley Reminder: Quadrature-Based Numerical Integration f(x) Z b a f(x)dx x 0 = a x 1 x 2 x 3 x 4 = b E.g. trapezoidal rule - estimate

More information

Monte Carlo Ray Tracing. Computer Graphics CMU /15-662

Monte Carlo Ray Tracing. Computer Graphics CMU /15-662 Monte Carlo Ray Tracing Computer Graphics CMU 15-462/15-662 TODAY: Monte Carlo Ray Tracing How do we render a photorealistic image? Put together many of the ideas we ve studied: - color - materials - radiometry

More information

MULTI-DIMENSIONAL MONTE CARLO INTEGRATION

MULTI-DIMENSIONAL MONTE CARLO INTEGRATION CS580: Computer Graphics KAIST School of Computing Chapter 3 MULTI-DIMENSIONAL MONTE CARLO INTEGRATION 2 1 Monte Carlo Integration This describes a simple technique for the numerical evaluation of integrals

More information

The Rendering Equation. Computer Graphics CMU /15-662, Fall 2016

The Rendering Equation. Computer Graphics CMU /15-662, Fall 2016 The Rendering Equation Computer Graphics CMU 15-462/15-662, Fall 2016 Review: What is radiance? Radiance at point p in direction N is radiant energy ( #hits ) per unit time, per solid angle, per unit area

More information

CS 563 Advanced Topics in Computer Graphics Monte Carlo Integration: Basic Concepts. by Emmanuel Agu

CS 563 Advanced Topics in Computer Graphics Monte Carlo Integration: Basic Concepts. by Emmanuel Agu CS 563 Advanced Topics in Computer Graphics Monte Carlo Integration: Basic Concepts by Emmanuel Agu Introduction The integral equations generally don t have analytic solutions, so we must turn to numerical

More information

Monte Carlo Integration of The Rendering Equation. Computer Graphics CMU /15-662, Spring 2017

Monte Carlo Integration of The Rendering Equation. Computer Graphics CMU /15-662, Spring 2017 Monte Carlo Integration of The Rendering Equation Computer Graphics CMU 15-462/15-662, Spring 2017 Review: Monte Carlo integration Z b Definite integral What we seek to estimate a f(x)dx Random variables

More information

Motivation. Advanced Computer Graphics (Fall 2009) CS 283, Lecture 11: Monte Carlo Integration Ravi Ramamoorthi

Motivation. Advanced Computer Graphics (Fall 2009) CS 283, Lecture 11: Monte Carlo Integration Ravi Ramamoorthi Advanced Computer Graphics (Fall 2009) CS 283, Lecture 11: Monte Carlo Integration Ravi Ramamoorthi http://inst.eecs.berkeley.edu/~cs283 Acknowledgements and many slides courtesy: Thomas Funkhouser, Szymon

More information

Monte-Carlo Ray Tracing. Antialiasing & integration. Global illumination. Why integration? Domains of integration. What else can we integrate?

Monte-Carlo Ray Tracing. Antialiasing & integration. Global illumination. Why integration? Domains of integration. What else can we integrate? Monte-Carlo Ray Tracing Antialiasing & integration So far, Antialiasing as signal processing Now, Antialiasing as integration Complementary yet not always the same in particular for jittered sampling Image

More information

Measuring Light: Radiometry and Cameras

Measuring Light: Radiometry and Cameras Lecture 11: Measuring Light: Radiometry and Cameras Computer Graphics CMU 15-462/15-662, Fall 2015 Slides credit: a majority of these slides were created by Matt Pharr and Pat Hanrahan Simulating a pinhole

More information

Motivation. Monte Carlo Path Tracing. Monte Carlo Path Tracing. Monte Carlo Path Tracing. Monte Carlo Path Tracing

Motivation. Monte Carlo Path Tracing. Monte Carlo Path Tracing. Monte Carlo Path Tracing. Monte Carlo Path Tracing Advanced Computer Graphics (Spring 2013) CS 283, Lecture 11: Monte Carlo Path Tracing Ravi Ramamoorthi http://inst.eecs.berkeley.edu/~cs283/sp13 Motivation General solution to rendering and global illumination

More information

13 Distribution Ray Tracing

13 Distribution Ray Tracing 13 In (hereafter abbreviated as DRT ), our goal is to render a scene as accurately as possible. Whereas Basic Ray Tracing computed a very crude approximation to radiance at a point, in DRT we will attempt

More information

Monte Carlo Integration COS 323

Monte Carlo Integration COS 323 Monte Carlo Integration COS 323 Last time Interpolatory Quadrature Review formulation; error analysis Newton-Cotes Quadrature Midpoint, Trapezoid, Simpson s Rule Error analysis for trapezoid, midpoint

More information

Lecture 7: Monte Carlo Rendering. MC Advantages

Lecture 7: Monte Carlo Rendering. MC Advantages Lecture 7: Monte Carlo Rendering CS 6620, Spring 2009 Kavita Bala Computer Science Cornell University MC Advantages Convergence rate of O( ) Simple Sampling Point evaluation Can use black boxes General

More information

Global Illumination The Game of Light Transport. Jian Huang

Global Illumination The Game of Light Transport. Jian Huang Global Illumination The Game of Light Transport Jian Huang Looking Back Ray-tracing and radiosity both computes global illumination Is there a more general methodology? It s a game of light transport.

More information

Anti-aliasing and Monte Carlo Path Tracing. Brian Curless CSE 557 Autumn 2017

Anti-aliasing and Monte Carlo Path Tracing. Brian Curless CSE 557 Autumn 2017 Anti-aliasing and Monte Carlo Path Tracing Brian Curless CSE 557 Autumn 2017 1 Reading Required: Marschner and Shirley, Section 13.4 (online handout) Pharr, Jakob, and Humphreys, Physically Based Ray Tracing:

More information

Monte Carlo Integration COS 323

Monte Carlo Integration COS 323 Monte Carlo Integration COS 323 Integration in d Dimensions? One option: nested 1-D integration f(x,y) g(y) y f ( x, y) dx dy ( ) = g y dy x Evaluate the latter numerically, but each sample of g(y) is

More information

Anti-aliasing and Monte Carlo Path Tracing

Anti-aliasing and Monte Carlo Path Tracing Reading Required: Anti-aliasing and Monte Carlo Path Tracing Brian Curless CSE 557 Autumn 2017 Marschner and Shirley, Section 13.4 (online handout) Pharr, Jakob, and Humphreys, Physically Based Ray Tracing:

More information

INFOMAGR Advanced Graphics. Jacco Bikker - February April Welcome!

INFOMAGR Advanced Graphics. Jacco Bikker - February April Welcome! INFOMAGR Advanced Graphics Jacco Bikker - February April 2016 Welcome! I x, x = g(x, x ) ε x, x + S ρ x, x, x I x, x dx Today s Agenda: Introduction Stratification Next Event Estimation Importance Sampling

More information

GAMES Webinar: Rendering Tutorial 2. Monte Carlo Methods. Shuang Zhao

GAMES Webinar: Rendering Tutorial 2. Monte Carlo Methods. Shuang Zhao GAMES Webinar: Rendering Tutorial 2 Monte Carlo Methods Shuang Zhao Assistant Professor Computer Science Department University of California, Irvine GAMES Webinar Shuang Zhao 1 Outline 1. Monte Carlo integration

More information

Path Tracing part 2. Steve Rotenberg CSE168: Rendering Algorithms UCSD, Spring 2017

Path Tracing part 2. Steve Rotenberg CSE168: Rendering Algorithms UCSD, Spring 2017 Path Tracing part 2 Steve Rotenberg CSE168: Rendering Algorithms UCSD, Spring 2017 Monte Carlo Integration Monte Carlo Integration The rendering (& radiance) equation is an infinitely recursive integral

More information

Motivation: Monte Carlo Path Tracing. Sampling and Reconstruction of Visual Appearance. Monte Carlo Path Tracing. Monte Carlo Path Tracing

Motivation: Monte Carlo Path Tracing. Sampling and Reconstruction of Visual Appearance. Monte Carlo Path Tracing. Monte Carlo Path Tracing Sampling and Reconstruction of Visual Appearance CSE 274 [Winter 2018], Lecture 4 Ravi Ramamoorthi http://www.cs.ucsd.edu/~ravir Motivation: Key application area for sampling/reconstruction Core method

More information

In the real world, light sources emit light particles, which travel in space, reflect at objects or scatter in volumetric media (potentially multiple

In the real world, light sources emit light particles, which travel in space, reflect at objects or scatter in volumetric media (potentially multiple 1 In the real world, light sources emit light particles, which travel in space, reflect at objects or scatter in volumetric media (potentially multiple times) until they are absorbed. On their way, they

More information

VARIANCE REDUCTION TECHNIQUES IN MONTE CARLO SIMULATIONS K. Ming Leung

VARIANCE REDUCTION TECHNIQUES IN MONTE CARLO SIMULATIONS K. Ming Leung POLYTECHNIC UNIVERSITY Department of Computer and Information Science VARIANCE REDUCTION TECHNIQUES IN MONTE CARLO SIMULATIONS K. Ming Leung Abstract: Techniques for reducing the variance in Monte Carlo

More information

Raytracing & Epsilon. Today. Last Time? Forward Ray Tracing. Does Ray Tracing Simulate Physics? Local Illumination

Raytracing & Epsilon. Today. Last Time? Forward Ray Tracing. Does Ray Tracing Simulate Physics? Local Illumination Raytracing & Epsilon intersects light @ t = 25.2 intersects sphere1 @ t = -0.01 & Monte Carlo Ray Tracing intersects sphere1 @ t = 10.6 Solution: advance the ray start position epsilon distance along the

More information

Choosing the Right Algorithm & Guiding

Choosing the Right Algorithm & Guiding Choosing the Right Algorithm & Guiding PHILIPP SLUSALLEK & PASCAL GRITTMANN Topics for Today What does an implementation of a high-performance renderer look like? Review of algorithms which to choose for

More information

Rendering Equation & Monte Carlo Path Tracing I

Rendering Equation & Monte Carlo Path Tracing I Rendering Equation & Monte Carlo Path Tracing I CS295, Spring 2017 Shuang Zhao Computer Science Department University of California, Irvine CS295, Spring 2017 Shuang Zhao 1 Announcements Homework 1 due

More information

Lecture 7 - Path Tracing

Lecture 7 - Path Tracing INFOMAGR Advanced Graphics Jacco Bikker - November 2016 - February 2017 Lecture 7 - I x, x = g(x, x ) ε x, x + S ρ x, x, x I x, x dx Welcome! Today s Agenda: Introduction Advanced Graphics 3 Introduction

More information

The Rendering Equation and Path Tracing

The Rendering Equation and Path Tracing The Rendering Equation and Path Tracing Louis Feng April 22, 2004 April 21, 2004 Realistic Image Synthesis (Spring 2004) 1 Topics The rendering equation Original form Meaning of the terms Integration Path

More information

Realistic Image Synthesis

Realistic Image Synthesis Realistic Image Synthesis - BRDFs and Direct ighting - Philipp Slusalle Karol Myszowsi Gurprit Singh Realistic Image Synthesis SS8 BRDFs and Direct ighting Importance Sampling Example Example: Generate

More information

Monte Carlo 1: Integration

Monte Carlo 1: Integration Monte Carlo : Integraton Prevous lecture: Analytcal llumnaton formula Ths lecture: Monte Carlo Integraton Revew random varables and probablty Samplng from dstrbutons Samplng from shapes Numercal calculaton

More information

Sampling and Monte-Carlo Integration

Sampling and Monte-Carlo Integration Sampling and Monte-Carlo Integration Sampling and Monte-Carlo Integration Last Time Pixels are samples Sampling theorem Convolution & multiplication Aliasing: spectrum replication Ideal filter And its

More information

= f (a, b) + (hf x + kf y ) (a,b) +

= f (a, b) + (hf x + kf y ) (a,b) + Chapter 14 Multiple Integrals 1 Double Integrals, Iterated Integrals, Cross-sections 2 Double Integrals over more general regions, Definition, Evaluation of Double Integrals, Properties of Double Integrals

More information

The Rendering Equation. Computer Graphics CMU /15-662

The Rendering Equation. Computer Graphics CMU /15-662 The Rendering Equation Computer Graphics CMU 15-462/15-662 Review: What is radiance? Radiance at point p in direction N is radiant energy ( #hits ) per unit time, per solid angle, per unit area perpendicular

More information

Probability and Statistics for Final Year Engineering Students

Probability and Statistics for Final Year Engineering Students Probability and Statistics for Final Year Engineering Students By Yoni Nazarathy, Last Updated: April 11, 2011. Lecture 1: Introduction and Basic Terms Welcome to the course, time table, assessment, etc..

More information

INFOGR Computer Graphics. J. Bikker - April-July Lecture 10: Shading Models. Welcome!

INFOGR Computer Graphics. J. Bikker - April-July Lecture 10: Shading Models. Welcome! INFOGR Computer Graphics J. Bikker - April-July 2016 - Lecture 10: Shading Models Welcome! Today s Agenda: Introduction Light Transport Materials Sensors Shading INFOGR Lecture 10 Shading Models 3 Introduction

More information

Monte Carlo Integration

Monte Carlo Integration Lab 18 Monte Carlo Integration Lab Objective: Implement Monte Carlo integration to estimate integrals. Use Monte Carlo Integration to calculate the integral of the joint normal distribution. Some multivariable

More information

Integration. Volume Estimation

Integration. Volume Estimation Monte Carlo Integration Lab Objective: Many important integrals cannot be evaluated symbolically because the integrand has no antiderivative. Traditional numerical integration techniques like Newton-Cotes

More information

B.Stat / B.Math. Entrance Examination 2017

B.Stat / B.Math. Entrance Examination 2017 B.Stat / B.Math. Entrance Examination 017 BOOKLET NO. TEST CODE : UGA Forenoon Questions : 0 Time : hours Write your Name, Registration Number, Test Centre, Test Code and the Number of this Booklet in

More information

F dr = f dx + g dy + h dz. Using that dz = q x dx + q y dy we get. (g + hq y ) x (f + hq x ) y da.

F dr = f dx + g dy + h dz. Using that dz = q x dx + q y dy we get. (g + hq y ) x (f + hq x ) y da. Math 55 - Vector alculus II Notes 14.7 tokes Theorem tokes Theorem is the three-dimensional version of the circulation form of Green s Theorem. Let s quickly recall that theorem: Green s Theorem: Let be

More information

2/1/10. Outline. The Radiance Equation. Light: Flux Equilibrium. Light: Radiant Power. Light: Equation. Radiance. Jan Kautz

2/1/10. Outline. The Radiance Equation. Light: Flux Equilibrium. Light: Radiant Power. Light: Equation. Radiance. Jan Kautz Outline Jan Kautz Basic terms in radiometry Radiance Reflectance The operator form of the radiance equation Meaning of the operator form Approximations to the radiance equation 2005 Mel Slater, 2006 Céline

More information

Distribution Ray Tracing. University of Texas at Austin CS384G - Computer Graphics Fall 2010 Don Fussell

Distribution Ray Tracing. University of Texas at Austin CS384G - Computer Graphics Fall 2010 Don Fussell Distribution Ray Tracing University of Texas at Austin CS384G - Computer Graphics Fall 2010 Don Fussell Reading Required: Watt, sections 10.6,14.8. Further reading: A. Glassner. An Introduction to Ray

More information

Photon Maps. The photon map stores the lighting information on points or photons in 3D space ( on /near 2D surfaces)

Photon Maps. The photon map stores the lighting information on points or photons in 3D space ( on /near 2D surfaces) Photon Mapping 1/36 Photon Maps The photon map stores the lighting information on points or photons in 3D space ( on /near 2D surfaces) As opposed to the radiosity method that stores information on surface

More information

Realistic Camera Model

Realistic Camera Model Realistic Camera Model Shan-Yung Yang November 2, 2006 Shan-Yung Yang () Realistic Camera Model November 2, 2006 1 / 25 Outline Introduction Lens system Thick lens approximation Radiometry Sampling Assignment

More information

Physics 736. Experimental Methods in Nuclear-, Particle-, and Astrophysics. - Statistical Methods -

Physics 736. Experimental Methods in Nuclear-, Particle-, and Astrophysics. - Statistical Methods - Physics 736 Experimental Methods in Nuclear-, Particle-, and Astrophysics - Statistical Methods - Karsten Heeger heeger@wisc.edu Course Schedule and Reading course website http://neutrino.physics.wisc.edu/teaching/phys736/

More information

Understanding Variability

Understanding Variability Understanding Variability Why so different? Light and Optics Pinhole camera model Perspective projection Thin lens model Fundamental equation Distortion: spherical & chromatic aberration, radial distortion

More information

Irradiance Gradients. Media & Occlusions

Irradiance Gradients. Media & Occlusions Irradiance Gradients in the Presence of Media & Occlusions Wojciech Jarosz in collaboration with Matthias Zwicker and Henrik Wann Jensen University of California, San Diego June 23, 2008 Wojciech Jarosz

More information

OpenGL Graphics System. 2D Graphics Primitives. Drawing 2D Graphics Primitives. 2D Graphics Primitives. Mathematical 2D Primitives.

OpenGL Graphics System. 2D Graphics Primitives. Drawing 2D Graphics Primitives. 2D Graphics Primitives. Mathematical 2D Primitives. D Graphics Primitives Eye sees Displays - CRT/LCD Frame buffer - Addressable pixel array (D) Graphics processor s main function is to map application model (D) by projection on to D primitives: points,

More information

3D Rendering. Course Syllabus. Where Are We Now? Rendering. 3D Rendering Example. Overview. Rendering. I. Image processing II. Rendering III.

3D Rendering. Course Syllabus. Where Are We Now? Rendering. 3D Rendering Example. Overview. Rendering. I. Image processing II. Rendering III. Course Syllabus I. Image processing II. Rendering III. Modeling 3D Rendering Rendering I. Animation (Michael Bostock, CS426, Fall99) Image Processing Adam Finkelstein Princeton University COS 426, Spring

More information

The Light Field. Last lecture: Radiometry and photometry

The Light Field. Last lecture: Radiometry and photometry The Light Field Last lecture: Radiometry and photometry This lecture: Light field = radiance function on rays Conservation of radiance Measurement equation Throughput and counting rays Irradiance calculations

More information

Problem #3 Daily Lessons and Assessments for AP* Calculus AB, A Complete Course Page Mark Sparks 2012

Problem #3 Daily Lessons and Assessments for AP* Calculus AB, A Complete Course Page Mark Sparks 2012 Problem # Daily Lessons and Assessments for AP* Calculus AB, A Complete Course Page 490 Mark Sparks 01 Finding Anti-derivatives of Polynomial-Type Functions If you had to explain to someone how to find

More information

Physically Realistic Ray Tracing

Physically Realistic Ray Tracing Physically Realistic Ray Tracing Reading Required: Watt, sections 10.6,14.8. Further reading: A. Glassner. An Introduction to Ray Tracing. Academic Press, 1989. [In the lab.] Robert L. Cook, Thomas Porter,

More information

Motivation: Monte Carlo Rendering. Sampling and Reconstruction of Visual Appearance. Caustics. Illumination Models. Overview of lecture.

Motivation: Monte Carlo Rendering. Sampling and Reconstruction of Visual Appearance. Caustics. Illumination Models. Overview of lecture. Sampling and Reconstruction of Visual Appearance CSE 74 [Winter 8], Lecture 3 Ravi Ramamoorthi http://www.cs.ucsd.edu/~ravir Motivation: Monte Carlo Rendering Key application area for sampling/reconstruction

More information

Capturing light. Source: A. Efros

Capturing light. Source: A. Efros Capturing light Source: A. Efros Review Pinhole projection models What are vanishing points and vanishing lines? What is orthographic projection? How can we approximate orthographic projection? Lenses

More information

Monte Carlo Integration

Monte Carlo Integration Chapter 2 Monte Carlo Integration This chapter gives an introduction to Monte Carlo integration. The main goals are to review some basic concepts of probability theory, to define the notation and terminology

More information

Schedule. MIT Monte-Carlo Ray Tracing. Radiosity. Review of last week? Limitations of radiosity. Radiosity

Schedule. MIT Monte-Carlo Ray Tracing. Radiosity. Review of last week? Limitations of radiosity. Radiosity Schedule Review Session: Tuesday November 18 th, 7:30 pm, Room 2-136 bring lots of questions! MIT 6.837 Monte-Carlo Ray Tracing Quiz 2: Thursday November 20 th, in class (one weeks from today) MIT EECS

More information

Biostatistics 615/815 Lecture 16: Importance sampling Single dimensional optimization

Biostatistics 615/815 Lecture 16: Importance sampling Single dimensional optimization Biostatistics 615/815 Lecture 16: Single dimensional optimization Hyun Min Kang November 1st, 2012 Hyun Min Kang Biostatistics 615/815 - Lecture 16 November 1st, 2012 1 / 59 The crude Monte-Carlo Methods

More information

Global Illumination and Monte Carlo

Global Illumination and Monte Carlo Global Illumination and Monte Carlo MIT EECS 6.837 Computer Graphics Wojciech Matusik with many slides from Fredo Durand and Jaakko Lehtinen ACM. All rights reserved. This content is excluded from our

More information

Contents. MATH 32B-2 (18W) (L) G. Liu / (TA) A. Zhou Calculus of Several Variables. 1 Homework 1 - Solutions 3. 2 Homework 2 - Solutions 13

Contents. MATH 32B-2 (18W) (L) G. Liu / (TA) A. Zhou Calculus of Several Variables. 1 Homework 1 - Solutions 3. 2 Homework 2 - Solutions 13 MATH 32B-2 (8) (L) G. Liu / (TA) A. Zhou Calculus of Several Variables Contents Homework - Solutions 3 2 Homework 2 - Solutions 3 3 Homework 3 - Solutions 9 MATH 32B-2 (8) (L) G. Liu / (TA) A. Zhou Calculus

More information

Math Exam III Review

Math Exam III Review Math 213 - Exam III Review Peter A. Perry University of Kentucky April 10, 2019 Homework Exam III is tonight at 5 PM Exam III will cover 15.1 15.3, 15.6 15.9, 16.1 16.2, and identifying conservative vector

More information

Lecture 4. Digital Image Enhancement. 1. Principle of image enhancement 2. Spatial domain transformation. Histogram processing

Lecture 4. Digital Image Enhancement. 1. Principle of image enhancement 2. Spatial domain transformation. Histogram processing Lecture 4 Digital Image Enhancement 1. Principle of image enhancement 2. Spatial domain transformation Basic intensity it tranfomation ti Histogram processing Principle Objective of Enhancement Image enhancement

More information

Parametric Surfaces. Substitution

Parametric Surfaces. Substitution Calculus Lia Vas Parametric Surfaces. Substitution Recall that a curve in space is given by parametric equations as a function of single parameter t x = x(t) y = y(t) z = z(t). A curve is a one-dimensional

More information

Paths, diffuse interreflections, caching and radiometry. D.A. Forsyth

Paths, diffuse interreflections, caching and radiometry. D.A. Forsyth Paths, diffuse interreflections, caching and radiometry D.A. Forsyth How we got here We want to render diffuse interreflections strategy: compute approximation B-hat, then gather B = E +(ρk)e +(ρk)( ˆB

More information

To Do. Real-Time High Quality Rendering. Motivation for Lecture. Monte Carlo Path Tracing. Monte Carlo Path Tracing. Monte Carlo Path Tracing

To Do. Real-Time High Quality Rendering. Motivation for Lecture. Monte Carlo Path Tracing. Monte Carlo Path Tracing. Monte Carlo Path Tracing Real-Time High Quality Rendering CSE 274 [Fall 2015], Lecture 5 Tour of Modern Offline Rendering To Do Project milestone (1-2 pages), final project proposal Due on Oct 27 Please get in touch with me if

More information

February 2017 (1/20) 2 Piecewise Polynomial Interpolation 2.2 (Natural) Cubic Splines. MA378/531 Numerical Analysis II ( NA2 )

February 2017 (1/20) 2 Piecewise Polynomial Interpolation 2.2 (Natural) Cubic Splines. MA378/531 Numerical Analysis II ( NA2 ) f f f f f (/2).9.8.7.6.5.4.3.2. S Knots.7.6.5.4.3.2. 5 5.2.8.6.4.2 S Knots.2 5 5.9.8.7.6.5.4.3.2..9.8.7.6.5.4.3.2. S Knots 5 5 S Knots 5 5 5 5.35.3.25.2.5..5 5 5.6.5.4.3.2. 5 5 4 x 3 3.5 3 2.5 2.5.5 5

More information

CCNY Math Review Chapter 2: Functions

CCNY Math Review Chapter 2: Functions CCN Math Review Chapter : Functions Section.1: Functions.1.1: How functions are used.1.: Methods for defining functions.1.3: The graph of a function.1.: Domain and range.1.5: Relations, functions, and

More information

Will Monroe July 21, with materials by Mehran Sahami and Chris Piech. Joint Distributions

Will Monroe July 21, with materials by Mehran Sahami and Chris Piech. Joint Distributions Will Monroe July 1, 017 with materials by Mehran Sahami and Chris Piech Joint Distributions Review: Normal random variable An normal (= Gaussian) random variable is a good approximation to many other distributions.

More information

Measuring Light: Radiometry and Photometry

Measuring Light: Radiometry and Photometry Lecture 10: Measuring Light: Radiometry and Photometry Computer Graphics and Imaging UC Berkeley CS184/284A, Spring 2016 Radiometry Measurement system and units for illumination Measure the spatial properties

More information

Math 113 Calculus III Final Exam Practice Problems Spring 2003

Math 113 Calculus III Final Exam Practice Problems Spring 2003 Math 113 Calculus III Final Exam Practice Problems Spring 23 1. Let g(x, y, z) = 2x 2 + y 2 + 4z 2. (a) Describe the shapes of the level surfaces of g. (b) In three different graphs, sketch the three cross

More information

Integration. Example Find x 3 dx.

Integration. Example Find x 3 dx. Integration A function F is called an antiderivative of the function f if F (x)=f(x). The set of all antiderivatives of f is called the indefinite integral of f with respect to x and is denoted by f(x)dx.

More information

University of Saskatchewan Department of Mathematics & Statistics MATH Final Instructors: (01) P. J. Browne (03) B. Friberg (05) H.

University of Saskatchewan Department of Mathematics & Statistics MATH Final Instructors: (01) P. J. Browne (03) B. Friberg (05) H. University of Saskatchewan Department of Mathematics & Statistics MATH. Final Instructors: (0) P. J. Browne (0) B. Friberg (0) H. Teismann December 9, 000 Time: :00-:00 pm This is an open book exam. Students

More information

Photo-realistic Renderings for Machines Seong-heum Kim

Photo-realistic Renderings for Machines Seong-heum Kim Photo-realistic Renderings for Machines 20105034 Seong-heum Kim CS580 Student Presentations 2016.04.28 Photo-realistic Renderings for Machines Scene radiances Model descriptions (Light, Shape, Material,

More information

Assignment 3: Path tracing

Assignment 3: Path tracing Assignment 3: Path tracing EDAN30 April 2, 2011 In this assignment you will be asked to extend your ray tracer to support path tracing. In order to pass the assignment you need to complete all tasks. Make

More information

Lecture 8: Jointly distributed random variables

Lecture 8: Jointly distributed random variables Lecture : Jointly distributed random variables Random Vectors and Joint Probability Distributions Definition: Random Vector. An n-dimensional random vector, denoted as Z = (Z, Z,, Z n ), is a function

More information

Global Illumination and the Rendering Equation

Global Illumination and the Rendering Equation CS294-13: Special Topics Lecture #3 Advanced Computer Graphics University of California, Berkeley Handout Date??? Global Illumination and the Rendering Equation Lecture #3: Wednesday, 9 September 2009

More information

The Bidirectional Scattering Distribution Function as a First-class Citizen in Radiance. Greg Ward, Anyhere Software

The Bidirectional Scattering Distribution Function as a First-class Citizen in Radiance. Greg Ward, Anyhere Software The Bidirectional Scattering Distribution Function as a First-class Citizen in Radiance Greg Ward, Anyhere Software 1 Talk Overview Why aren t the existing BSDF types first-class citizens? What does the

More information

Monte Carlo Path Tracing. The Rendering Equation

Monte Carlo Path Tracing. The Rendering Equation Monte Carlo Path Tracing Today Path tracing starting from the eye Path tracing starting from the lights Which direction is best? Bidirectional ray tracing Random walks and Markov chains Next Irradiance

More information

Maths Year 11 Mock Revision list

Maths Year 11 Mock Revision list Maths Year 11 Mock Revision list F = Foundation Tier = Foundation and igher Tier = igher Tier Number Tier Topic know and use the word integer and the equality and inequality symbols use fractions, decimals

More information

Tentti/Exam Midterm 2/Välikoe 2, December

Tentti/Exam Midterm 2/Välikoe 2, December 1: 2: 3: Extra: Total 1-3: / 23 4: 5: 6: Total 4-6: / 20 Aalto ME-C3100 Computer Graphics, Fall 2015 Lehtinen / Kemppinen, Ollikainen, Puomio Tentti/Exam Midterm 2/Välikoe 2, December 16 2015 Name, student

More information

Intensity Transformations and Spatial Filtering

Intensity Transformations and Spatial Filtering 77 Chapter 3 Intensity Transformations and Spatial Filtering Spatial domain refers to the image plane itself, and image processing methods in this category are based on direct manipulation of pixels in

More information

Radiometry. Computer Graphics CMU /15-662, Fall 2015

Radiometry. Computer Graphics CMU /15-662, Fall 2015 Radiometry Computer Graphics CMU 15-462/15-662, Fall 2015 Last time we discussed light & color Image credit: Licensed under CC BY-SA 3.0 via Commons https://commons.wikimedia.org/wiki/file:em_spectrum.svg#/media/file:em_spectrum.svg

More information

CENG 477 Introduction to Computer Graphics. Ray Tracing: Shading

CENG 477 Introduction to Computer Graphics. Ray Tracing: Shading CENG 477 Introduction to Computer Graphics Ray Tracing: Shading Last Week Until now we learned: How to create the primary rays from the given camera and image plane parameters How to intersect these rays

More information

Rendering. Generate an image from geometric primitives II. Rendering III. Modeling IV. Animation. (Michael Bostock, CS426, Fall99)

Rendering. Generate an image from geometric primitives II. Rendering III. Modeling IV. Animation. (Michael Bostock, CS426, Fall99) 1 Course Syllabus 2 I. Image processing 3D Adam Finkelstein Princeton University C0S 426, Fall 2001 II. III. Modeling IV. Animation Image Processing (Rusty Coleman, CS426, Fall99) (Michael Bostock, CS426,

More information

CS 563 Advanced Topics in Computer Graphics Irradiance Caching and Particle Tracing. by Stephen Kazmierczak

CS 563 Advanced Topics in Computer Graphics Irradiance Caching and Particle Tracing. by Stephen Kazmierczak CS 563 Advanced Topics in Computer Graphics Irradiance Caching and Particle Tracing by Stephen Kazmierczak Introduction Unbiased light transport algorithms can sometimes take a large number of rays to

More information

University of California, Berkeley

University of California, Berkeley University of California, Berkeley FINAL EXAMINATION, Fall 2012 DURATION: 3 hours Department of Mathematics MATH 53 Multivariable Calculus Examiner: Sean Fitzpatrick Total: 100 points Family Name: Given

More information

Korrigeringar: An introduction to Global Illumination. Global Illumination. Examples of light transport notation light

Korrigeringar: An introduction to Global Illumination. Global Illumination. Examples of light transport notation light An introduction to Global Illumination Tomas Akenine-Möller Department of Computer Engineering Chalmers University of Technology Korrigeringar: Intel P4 (200): ~42M transistorer Intel P4 EE (2004): 78M

More information

Isometries. 1 Identifying Isometries

Isometries. 1 Identifying Isometries Isometries 1 Identifying Isometries 1. Modeling isometries as dynamic maps. 2. GeoGebra files: isoguess1.ggb, isoguess2.ggb, isoguess3.ggb, isoguess4.ggb. 3. Guessing isometries. 4. What can you construct

More information

Raytracing CS148 AS3. Due :59pm PDT

Raytracing CS148 AS3. Due :59pm PDT Raytracing CS148 AS3 Due 2010-07-25 11:59pm PDT We start our exploration of Rendering - the process of converting a high-level object-based description of scene into an image. We will do this by building

More information

Metropolis Light Transport

Metropolis Light Transport Metropolis Light Transport CS295, Spring 2017 Shuang Zhao Computer Science Department University of California, Irvine CS295, Spring 2017 Shuang Zhao 1 Announcements Final presentation June 13 (Tuesday)

More information

A Random Number Based Method for Monte Carlo Integration

A Random Number Based Method for Monte Carlo Integration A Random Number Based Method for Monte Carlo Integration J Wang and G Harrell Department Math and CS, Valdosta State University, Valdosta, Georgia, USA Abstract - A new method is proposed for Monte Carlo

More information

Anti-aliasing and Monte Carlo Path Tracing. Brian Curless CSE 457 Autumn 2017

Anti-aliasing and Monte Carlo Path Tracing. Brian Curless CSE 457 Autumn 2017 Anti-aliasing and Monte Carlo Path Tracing Brian Curless CSE 457 Autumn 2017 1 Reading Required: Marschner and Shirley, Section 13.4 (online handout) Further reading: Pharr, Jakob, and Humphreys, Physically

More information

Drawing a Triangle (and an introduction to sampling)

Drawing a Triangle (and an introduction to sampling) Lecture 4: Drawing a Triangle (and an introduction to sampling) Computer Graphics CMU 15-462/15-662, Spring 2017 Assignment 1 is out! https://15462-s17.github.io/asst1_drawsvg/ Let s draw some triangles

More information

Importance Sampling of Area Lights in Participating Media

Importance Sampling of Area Lights in Participating Media Importance Sampling of Area Lights in Participating Media Christopher Kulla Marcos Fajardo Outline Previous Work Single Scattering Equation Importance Sampling for Point Lights Importance Sampling for

More information

Monte Carlo 1: Integration

Monte Carlo 1: Integration Monte Carlo : Integraton Prevous lecture: Analytcal llumnaton formula Ths lecture: Monte Carlo Integraton Revew random varables and probablty Samplng from dstrbutons Samplng from shapes Numercal calculaton

More information

MIT Monte-Carlo Ray Tracing. MIT EECS 6.837, Cutler and Durand 1

MIT Monte-Carlo Ray Tracing. MIT EECS 6.837, Cutler and Durand 1 MIT 6.837 Monte-Carlo Ray Tracing MIT EECS 6.837, Cutler and Durand 1 Schedule Review Session: Tuesday November 18 th, 7:30 pm bring lots of questions! Quiz 2: Thursday November 20 th, in class (one weeks

More information

An interesting related problem is Buffon s Needle which was first proposed in the mid-1700 s.

An interesting related problem is Buffon s Needle which was first proposed in the mid-1700 s. Using Monte Carlo to Estimate π using Buffon s Needle Problem An interesting related problem is Buffon s Needle which was first proposed in the mid-1700 s. Here s the problem (in a simplified form). Suppose

More information

MATH 116 REVIEW PROBLEMS for the FINAL EXAM

MATH 116 REVIEW PROBLEMS for the FINAL EXAM MATH 116 REVIEW PROBLEMS for the FINAL EXAM The following questions are taken from old final exams of various calculus courses taught in Bilkent University 1. onsider the line integral (2xy 2 z + y)dx

More information

Projective Integration Methods for Distributions. Λ C. W. Gear y November 26, 2001 Abstract Projective methods were introduced in an earlier paper. In this paper we consider their application to the output

More information

Measuring Light: Radiometry and Photometry

Measuring Light: Radiometry and Photometry Lecture 14: Measuring Light: Radiometry and Photometry Computer Graphics and Imaging UC Berkeley Radiometry Measurement system and units for illumination Measure the spatial properties of light New terms:

More information

Digital Image Processing

Digital Image Processing Digital Image Processing Intensity Transformations (Histogram Processing) Christophoros Nikou cnikou@cs.uoi.gr University of Ioannina - Department of Computer Science and Engineering 2 Contents Over the

More information