02/25/05© 2005 University of Wisconsin Last Time Meshing Volume Scattering Radiometry (Adsorption and Emission)

Slides:



Advertisements
Similar presentations
Computer Vision Radiometry. Bahadir K. Gunturk2 Radiometry Radiometry is the part of image formation concerned with the relation among the amounts of.
Advertisements

A Practical Analytic Model for Daylight
Photorealistic Rendering. Ray tracing v. photorealistic rendering What illumination effects are not captured by ray tracing? What illumination effects.
The Radiance Equation Mel Slater. Outline Introduction Light Simplifying Assumptions Radiance Reflectance The Radiance Equation Traditional Rendering.
Foundations of Computer Graphics (Spring 2012) CS 184, Lecture 21: Radiometry Many slides courtesy Pat Hanrahan.
Rendering Outdoor Light Scattering in Real Time
Radiometry. Outline What is Radiometry? Quantities Radiant energy, flux density Irradiance, Radiance Spherical coordinates, foreshortening Modeling surface.
Physically Based Illumination Models
Photo-realistic Rendering and Global Illumination in Computer Graphics Spring 2012 Material Representation K. H. Ko School of Mechatronics Gwangju Institute.
Advanced Computer Graphics (Spring 2013) CS 283, Lecture 8: Illumination and Reflection Many slides courtesy.
Subsurface scattering
Subsurface scattering Model of light transport in translucent materials Marble, jade, milk, skin Light penetrates material and exits at different point.
University of Texas at Austin CS395T - Advanced Image Synthesis Spring 2006 Don Fussell Previous lecture Reflectance I BRDF, BTDF, BSDF Ideal specular.
CSCE 641: Photon Mapping Jinxiang Chai. Outline Rendering equation Photon mapping.
Photon Tracing with Arbitrary Materials Patrick Yau.
ABSORPTION Beer’s Law Optical thickness Examples BEER’S LAW Note: Beer’s law is also attributed to Lambert and Bouguer, although, unlike Beer, they did.
Computer Graphics (Fall 2008) COMS 4160, Lecture 19: Illumination and Shading 2
7M836 Animation & Rendering
Rendering General BSDFs and BSSDFs Randy Rauwendaal.
To compute the solar radiation flux density at the surface we need to know effects of atmosphere in filtering and depleting the beam from the top of the.
METO 621 Lesson 12. Prototype problems in Radiative Transfer Theory We will now study a number of standard radiative transfer problems. Each problem assumes.
BSSRDF: Bidirectional Surface Scattering Reflectance Distribution Functions Jared M. Dunne C95 Adv. Graphics Feb. 7, 2002 Based on: "A Practical Model.
Computer Graphics (Fall 2004) COMS 4160, Lecture 16: Illumination and Shading 2 Lecture includes number of slides from.
Introduction | Crepuscular rays and Caustics Caustics are high intensity highlights due to convergence of light via different paths Crepuscular rays (godrays)
Single-Scattering Stuff + petty chap 12 intro April 27-29, 2015.
Ch. 5 - Basic Definitions Specific intensity/mean intensity Flux
Radiative Transfer Theory at Optical and Microwave wavelengths applied to vegetation canopies: part 2 UoL MSc Remote Sensing course tutors: Dr Lewis
01/24/05© 2005 University of Wisconsin Last Time Raytracing and PBRT Structure Radiometric quantities.
Optical Models Jian Huang, CS 594, Spring 2002 This set of slides are modified from slides used by Prof. Torsten Moeller, at Simon Fraser University, BC,
CSE 872 Dr. Charles B. Owen Advanced Computer Graphics1 BSSRDF – Bidirectional surface scattering reflectance distribution function Radiance theory BRDF.
Attenuation by absorption and scattering
Photo-realistic Rendering and Global Illumination in Computer Graphics Spring 2012 Ultimate Realism and Speed K. H. Ko School of Mechatronics Gwangju Institute.
Multiple Scattering in Vision and Graphics Lecture #21 Thanks to Henrik Wann Jensen.
AME Int. Heat Trans. D. B. Go Radiation with Participating Media Consider the general heat equation We know that we can write the flux in terms of.
02/28/05© 2005 University of Wisconsin Last Time Scattering theory Integrating tranfer equations.
METR125: Light, Color, and Atmospheric Optics et130/notes/chapter19/color.html.
MIT EECS 6.837, Durand and Cutler Local Illumination.
Ch. 5 - Basic Definitions Specific intensity/mean intensity Flux
-Global Illumination Techniques
01/29/03© 2003 University of Wisconsin Last Time Radiosity.
02/16/05© 2005 University of Wisconsin Last Time Re-using paths –Irradiance Caching –Photon Mapping.
02/18/05© 2005 University of Wisconsin Last Time Radiosity –Converting the LTE into the radiosity equation –Solving with Gauss-Seidel relaxation –Form.
01/21/05© 2005 University of Wisconsin Last Time Course introduction A simple physically-based rendering example.
Real part of refractive index ( m r ): How matter slows down the light: where c is speed of light Question 3: Into which direction does the Scattered radiation.
Week 10 - Wednesday.  What did we talk about last time?  Shadow volumes and shadow mapping  Ambient occlusion.
02/05/03© 2003 University of Wisconsin Last Time Importance Better Form Factors Meshing.
Computer Graphics Global Illumination: Photon Mapping, Participating Media Lecture 12 Taku Komura.
1 Rendering translucent materials using SSS Implemented by João Pedro Jorge & Willem Frishert.
111/17/ :21 Graphics II Global Rendering and Radiosity Session 9.
CS348B Lecture 16Pat Hanrahan, Spring 2005 Participating Media & Vol. Scattering Applications Clouds, smoke, water, … Subsurface scattering: paint, skin,
Photo-realistic Rendering and Global Illumination in Computer Graphics Spring 2012 Material Representation K. H. Ko School of Mechatronics Gwangju Institute.
CSCE 641 Computer Graphics: Reflection Models Jinxiang Chai.
Geometric optical (GO) modeling of radiative transfer in plant canopy Xin Xi.
University of Texas at Austin CS395T - Advanced Image Synthesis Spring 2007 Don Fussell Participating Media & Vol. Scattering Applications Clouds, smoke,
02/12/03© 2003 University of Wisconsin Last Time Intro to Monte-Carlo methods Probability.
02/2/05© 2005 University of Wisconsin Last Time Reflectance part 1 –Radiometry –Lambertian –Specular.
Within dr, L changes (dL) from… sources due to scattering & emission losses due to scattering & absorption Spectral Radiance, L(, ,  ) - W m -2 sr -1.
Volume and Participating Media Digital Image Synthesis Yung-Yu Chuang 12/21/2006 with slides by Pat Hanrahan and Torsten Moller.
Basic Definitions Specific intensity/mean intensity Flux
02/07/03© 2003 University of Wisconsin Last Time Finite element approach Two-pass approaches.
02/9/05© 2005 University of Wisconsin Last Time Lights Next assignment – Implement Kubelka-Munk as a BSDF.
01/27/03© 2002 University of Wisconsin Last Time Radiometry A lot of confusion about Irradiance and BRDFs –Clarrified (I hope) today Radiance.
Color and Radiometry Digital Image Synthesis Yung-Yu Chuang 10/25/2007 with slides by Pat Hanrahan and Matt Pharr.
02/23/05© 2005 University of Wisconsin Last Time Radiosity –Progressive Radiosity –Assorted optimizations.
Advanced Computer Graphics
BRDFs Randy Rauwendaal.
© 2002 University of Wisconsin
© 2003 University of Wisconsin
The Rendering Equation
© 2003 University of Wisconsin
Presentation transcript:

02/25/05© 2005 University of Wisconsin Last Time Meshing Volume Scattering Radiometry (Adsorption and Emission)

02/25/05© 2005 University of Wisconsin Today Participating Media –Scattering theory –Integrating Participating Media

02/25/05© 2005 University of Wisconsin Scattering Particles in the media act as little reflectors –They are too small to see, but they influence the light passing through Scattering has two effects –Out-scattering: light along a line is scattered in a different direction –In-scattering: light from some other direction is scattered into the direction of interest Out-scattering decreases radiance, in-scattering increases it

02/25/05© 2005 University of Wisconsin Scattering is Visually Important

02/25/05© 2005 University of Wisconsin Out-Scattering Math There is an out-scattering co-efficient  s (p,  ) –The probability density that light is scattered per unit distance –Just like absorption coefficient, but it’s not being converted, it’s being redirected Define attenuation coefficient:  t =  a +  s Define transmittance, T r, between two points:

02/25/05© 2005 University of Wisconsin Transmittance Properties Transmittance from a point to itself is 1 Transmittance multiplies along a ray –In a voxel-based volume, we can compute transmittance through each voxel and multiply to get total through volume

02/25/05© 2005 University of Wisconsin Optical Thickness Define optical thickness,  : If the medium is homogeneous,  t does not depend on p –Integration is easy and we get Beer’s law

02/25/05© 2005 University of Wisconsin Phase Function We need a function that tells us what directions light gets scattered in –The participating media equivalent of the BRDF The phase function, p(  ’), gives the distribution of outgoing directions,  ’, for an incoming direction,  –A probability distribution, so it must be normalized over the hemisphere:

02/25/05© 2005 University of Wisconsin In-Scattering The phase function tells us where light gets scattered To find out how much light gets scattered into a direction, integrate over all the directions it could be scattered from Incoming radiance Proportion scattered into direction  Proportion scattered

02/25/05© 2005 University of Wisconsin Source Term Given the emission radiance and the phase function, we can define a source term, S –The total amount of radiance added per unit length –Note the resemblance to the surface scattering equation

02/25/05© 2005 University of Wisconsin Isotropic vs. Anisotropic Media A medium is isotropic if the phase function depends only on the angle between the directions,  –Write p(cos  ) Most natural materials are like this, except crystal structures Phase functions are also reciprocal: p(  ’)=p(  ’  )

02/25/05© 2005 University of Wisconsin Isotropic vs. Anisotropic Phase Functions A phase function is isotropic if it scatters equally in all directions: p isotropic (  ’)=const There is only one possible isotropic phase function –Why? What is the additional constraint on phase functions? Homogeneous/inhomogeneous refers to spatial variation, isotropic/anisotropic refers to directional variation

02/25/05© 2005 University of Wisconsin Physically-Based Phase Functions Two common physically-based formulas Air molecules are modeled by Rayleigh scattering –Optical extinction coefficient varies with -4 –What phenomena does this explain? Scattering due to larger particles (dust, water droplets) is modeled with Mie scattering –Scattering depends less on wavelength, so what color is haze? Turbidity is a useful measurement: T=(t m +t h )/t m –t m is vertical optical thickness of molecular atmosphere –t h is vertical optical thickness of haze atmosphere

02/25/05© 2005 University of Wisconsin Henyey-Greenstein Function Single parameter, g, controls relative proportion of forward/backward scattering: g  (0,1)

02/25/05© 2005 University of Wisconsin Alternatives Linear combination of Henyey-Greenstein –Weights must sum to 1 to keep normalized Schlick Approximation –Avoid 3/2 power computation –k roughly 1.55g-.55g 3

02/25/05© 2005 University of Wisconsin Sampling Henyey-Greenstein Because of the isotropic medium assumption, the distribution is separable into one for  and one for  Given  1 and  2 : Given an incoming direction, use these to generate a scattered direction

02/25/05© 2005 University of Wisconsin PBRT Volume Models PBRT volumes must give –Extent (3D shape to intersect) –Functions to return scattering parameters –Function to return phase function at a point –Function to compute optical thickness between two points Simplest is homogeneous volume –Everything is constant, and optical thickness comes from Beer’s law

02/25/05© 2005 University of Wisconsin Homogeneous Medium

02/25/05© 2005 University of Wisconsin Homogeneous with Varying Density Assume that the same medium is present, but that the density varies All parameters are scaled by density –Except optical thickness, which may be hard to compute Options: –3D Grids – give sampled density on grid and interpolate –Exponential density from some ground plane: –Aggregates of volumes

02/25/05© 2005 University of Wisconsin Exponential Height Fog

02/25/05© 2005 University of Wisconsin Computing Optical Thickness Recall: Obviously we can use: The best way to get the T (j) is to use stratified sampling with a fixed offset –The offset is different for each query, but fixed among the T (j) t0t0 t1t1 u T(5)T(5)

02/25/05© 2005 University of Wisconsin Equation of Transfer Radiance arriving is radiance leaving a surface that is attenuated plus radiance that gets in-scattered and emitted on the way from the surface –The transmittance describes the out-scattering and adsorption –The source term describes the emission and in-scattering

02/25/05© 2005 University of Wisconsin Solving Transfer Equation The hard part is the integral –Transmittance is simple – it depends only on optical thickness, which we just saw how to compute –Implementation increases step for transfer that is NOT to the camera Several possible assumptions in the integral –Emission only – simple because radiance from other directions is not required –Single-scattering only – simple because only radiance from light sources is considered –Multiple – hard because you have to account for radiance from all directions, including other scattering events, so it blows up

02/25/05© 2005 University of Wisconsin Emission Only Choose points through the volume to evaluate emission Attenuate via transmittance Sum over points in Monte Carlo: –Point are chosen using uniform offset stratified sampling (a few slides back) within the part of the ray that the volume occupies –The transmittance can be computed cumulatively as we step along the ray

02/25/05© 2005 University of Wisconsin Segment of Interest Viewer could be inside Visible surface could be inside Could pass right through

02/25/05© 2005 University of Wisconsin Cumulative Transmittance

02/25/05© 2005 University of Wisconsin Emission Example

02/25/05© 2005 University of Wisconsin Single Scattering Evaluates Very similar to previous slide, except: –At each point, sample light sources and push through phase function to get and estimate of the inner integral –Have to account for transmittance between light and sample point –Actually, only sample one light for each sample point along the ray

02/25/05© 2005 University of Wisconsin Single Scattering Example

02/25/05© 2005 University of Wisconsin Multiple Scattering Can do it like path sampling –At each point along ray, sample multiple outgoing directions –For each sampled direction, find first hit surface Add in outgoing radiance from that surface – itself expensive to compute –For ray to first hit surface, recursively apply the algorithm Account for scattering within the volume into this dircection Very computationally inefficient Speedups: Bi-Directional, Volumetric Photon Mapping

02/25/05© 2005 University of Wisconsin Next Time Sky models Sub-surface scattering