CS 431/636 Advanced Rendering Techniques"

Similar documents
An introduction to Global Illumination. Tomas Akenine-Möller Department of Computer Engineering Chalmers University of Technology

PHOTON mapping is a practical approach for computing global illumination within complex

Computer Graphics Global Illumination (2): Monte-Carlo Ray Tracing and Photon Mapping. Lecture 15 Taku Komura

CSE168 Computer Graphics II, Rendering. Spring 2006 Matthias Zwicker

Path tracing everything. D.A. Forsyth

Path Tracing. Michael Doggett Department of Computer Science Lund university Michael Doggett

Photon Mapping Made Easy

path tracing computer graphics path tracing 2009 fabio pellacini 1

Monte Carlo Path Tracing

Rendering Area Sources D.A. Forsyth

PATH TRACING: A NON-BIASED SOLUTION TO THE RENDERING EQUATION

Computer Animation: Art, Science and Criticism

Monte Carlo Ray Tracing

Dhiren Bhatia Carnegie Mellon University

Monte Carlo Path Tracing

IN previous chapters we assumed that all lighting interactions occurred at surfaces. In particular,

Chapter 10. Bidirectional Path Tracing

CUBE-MAP DATA STRUCTURE FOR INTERACTIVE GLOBAL ILLUMINATION COMPUTATION IN DYNAMIC DIFFUSE ENVIRONMENTS

Path Tracing - Literature Research. Rick de Bruijne May 17, 2011

The RADIANCE Lighting Simulation and Rendering System

Advanced Computer Graphics. Rendering Equation. Matthias Teschner. Computer Science Department University of Freiburg

Mathematics for Global Illumination

Overview. What is EMR? Electromagnetic Radiation (EMR) LA502 Special Studies Remote Sensing

So, you want to make a photo-realistic rendering of the Earth from orbit, eh? And you want it to look just like what astronauts see from the shuttle

Optical Design Tools for Backlight Displays

Thea Omni Light. Thea Spot Light. Light setup & Optimization

Treasure Hunt. Lecture 2 How does Light Interact with the Environment? EMR Principles and Properties. EMR and Remote Sensing

Specular reflection. Dielectrics and Distribution in Ray Tracing. Snell s Law. Ray tracing dielectrics

PRODUCT LIFECYCLE MANAGEMENT COMPETENCY CENTRE RENDERING. PLMCC, JSS Academy of Technical Education, Noida Rendering 1 of 16

Course Overview. CSCI 480 Computer Graphics Lecture 1. Administrative Issues Modeling Animation Rendering OpenGL Programming [Angel Ch.

A Theoretical Framework for Physically Based Rendering

MCRT: L6. Initial weight of packet: W = L / N MC At each interaction multiply weight by probability of scattering: W = a W

William Paterson University of New Jersey Department of Computer Science College of Science and Health Course Outline

How To Improve Efficiency In Ray Tracing

Accelerating the bidirectional path tracing algorithm using a dedicated intersection processor

Improved predictive modeling of white LEDs with accurate luminescence simulation and practical inputs

NVIDIA Material Definition Language 1.1

Volumetric Path Tracing

Getting Started with iray in 3ds Max 2014

Monte Carlo Sampling Methods

Design, Analysis, and Optimization of LCD Backlight Unit using Ray Tracing Simulation

Radiation Transfer in Environmental Science

The Comprehensive PBR Guide by Allegorithmic - vol. 1. Light and Matter : The theory of Physically-Based Rendering and Shading

Introduction to Computer Graphics. Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2012

Electromagnetic Radiation (EMR) and Remote Sensing

VARIANCE REDUCTION TECHNIQUES FOR IMPLICIT MONTE CARLO SIMULATIONS

INTRODUCTION TO RENDERING TECHNIQUES

Filters for Black & White Photography

Data Visualization Study at Earth Simulator Center

Computer Applications in Textile Engineering. Computer Applications in Textile Engineering

How Landsat Images are Made

Take away concepts. What is Energy? Solar Energy. EM Radiation. Properties of waves. Solar Radiation Emission and Absorption

High Dynamic Range and other Fun Shader Tricks. Simon Green

Acceleration Methods for Ray Tracing based Global Illumination

Solar Energy. Outline. Solar radiation. What is light?-- Electromagnetic Radiation. Light - Electromagnetic wave spectrum. Electromagnetic Radiation

CS 325 Computer Graphics

Introduction to the Monte Carlo method

2 Absorbing Solar Energy

Cork Education and Training Board. Programme Module for. 3 Dimensional Computer Graphics. Leading to. Level 5 FETAC

Name Class Date. spectrum. White is not a color, but is a combination of all colors. Black is not a color; it is the absence of all light.

Maya 2014 Still Life Part 1 Texturing & Lighting

ABS 731 Lighting Design & Technology. Spring 2006

CS 371 Project 5: Midterm Meta-Specification

Advances in Real-Time Skin Rendering

Using HDR Panoramas. Dr Ryan Southall - School of Architecture & Design, University of Brighton.

APPLICATION OF THE STATE-OF-THE-ART COMPUTER SIMULATION AND VISUALIZATION IN ARCHITECTURAL LIGHTING RESEARCH

Introduction to OLED technology 1. General characteristics

Approval Sheet. Interactive Illumination Using Large Sets of Point Lights

Variance reduction techniques used in BEAMnrc

A Short Introduction to Computer Graphics

SkillsUSA 2014 Contest Projects 3-D Visualization and Animation

Introduction to Computer Graphics

Polarization of Light

AS COMPETITION PAPER 2008

Learning about light and optics in on-line general education classes using at-home experimentation.

Advanced Rendering for Engineering & Styling

Effect of skylight configuration and sky type on the daylight impression of a room

COMP175: Computer Graphics. Lecture 1 Introduction and Display Technologies

Biomedical Optics Theory

THE NATURE OF LIGHT AND COLOR

ADVANCED THEORIES FOR CG LIGHTING

Introduction to Computer Graphics. Reading: Angel ch.1 or Hill Ch1.

Calculation of Source-detector Solid Angle, Using Monte Carlo Method, for Radioactive Sources with Various Geometries and Cylindrical Detector

Lecture Notes, CEng 477

4.430 Daylighting. Christoph Reinhart Daylight Simulations

CAUSTICS are complex patterns of shimmering

Light Control and Efficacy using Light Guides and Diffusers

Introduction Week 1, Lecture 1

Hardware design for ray tracing

Retrieval of vertical cloud properties of deepconvective clouds by spectral radiance measurements

Environmental Remote Sensing GEOG 2021

The Surface Energy Budget

The Little black book of lighting For Film and Video

Republic Polytechnic School of Information and Communications Technology C391 Animation and Visual Effect Automation.

Transcription:

CS 431/636 Advanced Rendering Techniques" Dr. David Breen" Korman 105D" Wednesday 6PM 8:50PM" Photon Mapping" 5/2/12"

Slide Credits - UC San Diego

Goal Efficiently create global illumination images with caustics and complex surface properties (BRDFs)

Box: Direct Illlumination

Box: Global Illlumination

Approach Two pass process Distribute light info into scene (photons) Store light flux in photon map Combine photon info with ray tracing when rendering

Emitting Photons Photons emitted from light sources Traced through scene Stored (energy & direction) at surfaces Russian Roulette determines if photon is absorbed or reflected BRDF used to determine direction of reflection

Two Photon Maps Global Low resolution photons in all directions Classify Caustic Direct, Shadow and Indirect High resolution at refracting/reflecting objects

Global Illumination global photon map caustics photon map

The photon map datastructure The photons are stored in a left balanced kd-tree struct photon = { float position[3]; rgbe power; char phi, theta; short flags; } // power packed as 4 bytes // incoming direction

Photon tracing Photon emission Photon scattering Photon storing

Photon emission Given Φ Watt lightbulb. Emit N photons. Each photon has the power Φ N Watt. Photon power depends on the number of emitted photons. Not on the number of photons in the photon map.

What is a photon? Flux (power) - not radiance! Collection of physical photons A fraction of the light source power Several wavelengths combined into one entity

Diffuse point light Generate random direction Emit photon in that direction // Find random direction do { x = 2.0*random()-1.0; y = 2.0*random()-1.0; z = 2.0*random()-1.0; } while ( (x*x + y*y + z*z) > 1.0 );

Example: Diffuse square light - Generate random position p on square - Generate diffuse direction d - Emit photon from p in direction d // Generate diffuse direction u = random(); v = 2*π*random(); d = vector( cos(v) u, sin(v) u, 1 u );

Surface interactions The photon is Stored (at diffuse surfaces) and Absorbed (A) or Reflected (R) or Transmitted (T ) A + R + T = 1.0

Photon scattering The simple way: Given incoming photon with power Φ p Reflect photon with the power R Φ p Transmit photon with the power T Φ p

Photon scattering The simple way: Given incoming photon with power Φ p Reflect photon with the power R Φ p Transmit photon with the power T Φ p Risk: Too many low-powered photons - wasteful! When do we stop (systematic bias)? Photons with similar power is a good thing.

Russian Roulette Statistical technique Known from Monte Carlo particle physics Introduced to graphics by Arvo and Kirk in 1990

Russian Roulette Example Surface reflectance: R = 0.5 Incoming photon: Φ p = 2 W r = random(); if ( r < 0.5 ) reflect photon with power 2 W else photon is absorbed

Russian Roulette Intuition Surface reflectance: R = 0.5 200 incoming photons with power: Φ p = 2 Watt Reflect 100 photons with power 2 Watt instead of 200 photons with power 1 Watt.

Russian Roulette Very important! Use to eliminate un-important photons Gives photons with similar power :)

Bi-directional Reflection Distribution Function (BRDF) function which defines the spectral and spatial reflection characteristic of a surface f(θ i, Θ r, λ)

Sampling a BRDF f r (x, ω i, ω o ) = w 1 f r,1 (x, ω i, ω o ) + w 2 f r,2 (x, ω i, ω o )

Sampling a BRDF f r (x, ω i, ω o ) = w 1 f r,d + w 2 f r,s r = random() (w 1 + w 2 ); if ( r < w 1 ) reflect diffuse photon else reflect specular

Rendering Ray trace scene Use photon maps to approximate low importance shading values to evaluate Bi-directional Reflection Distribution Function (BRDF) to perform shadow calculation to calculate caustics

Ray Tracing vs. Radiance Approximation Approximation Diffuse surfaces Deep in ray tree (contribution less significant) Shadow calculations Ray Tracing Direct illumination High gloss, specular surfaces

A simple test scene

Rendering

Direct Illumination

Specular Reflection

Caustics

Indirect Illumination

Radiance Estimate L(x, ω) = = = f r (x, ω, ω)l (x, ω ) cos θ dω Ω f r (x, ω, ω) dφ2 (x, ω ) Ω dω cos θ da cos θ dω f r (x, ω, ω) dφ2 (x, ω ) Ω da n f r (x, ω p, ω) Φ p(x, ω p) πr 2 p=1

Radiance Estimate L

Fast estimate 200 photons / 50 photons in radiance estimate

Indirect illumination 10000 photons / 500 photons in radiance estimate

Global Illumination 100000 photons / 50 photons in radiance estimate

Global Illumination 500000 photons / 500 photons in radiance estimate

Box 200000 global photons, 50000 caustic photons

Box: Global Photons 200000 global photons

Fractal Box 200000 global photons, 50000 caustic photons

Cornell Box

Caustic from a Glass Sphere Photon Mapping: 10000 photons / 50 photons in radiance estimate

Sphereflake Caustic

Reflection Inside A Metal Ring 50000 photons / 50 photons in radiance estimate

Caustics On Glossy Surfaces 340000 photons / 100 photons in radiance estimate

HDR environment illumination Using lightprobe from www.debevec.org

Cognac Glass

Indirect Illumination

Little Matterhorn

Mies house (3pm)

Mies house (6pm)

More Information Foreword by Pat Hanrahan The creation of realistic three-dimensional images is central to computer graphics. Photon mapping, an extension of ray tracing, makes it possible to efficiently simulate global illumination in complex scenes. Photo mapping can simulate caustics (focused light, such as shimmering waves at the bottom of a swimming pool), diffuse inter-reflections (e.g., the `bleeding' of colored light from a red wall onto a white floor, giving the floor a reddish tint), and participating media (e.g., clouds or smoke). This book is a practical guide to photon mapping; it provides both the theory and the practical insight necessary to implement photon mapping and simulate all types of direct and indirect illumination efficiently. A K PETERS LTD. Realistic Image Synthesis Using Photon Mapping Realistic Image Synthesis Using Photon Mapping Jensen AK PETERS Realistic Image Synthesis Using Photon Mapping Foreword by Pat Hanrahan http://graphics.ucsd.edu/~henrik/papers/book/