GLOBAL ILLUMINATION. Christopher Peters INTRODUCTION TO COMPUTER GRAPHICS AND INTERACTION

Similar documents
LIGHTING AND SHADING

COMPUTER GRAPHICS AND INTERACTION

RAYTRACING. Christopher Peters INTRODUCTION TO COMPUTER GRAPHICS AND INTERACTION. HPCViz, KTH Royal Institute of Technology, Sweden

RASTERISED RENDERING

A Brief Overview of. Global Illumination. Thomas Larsson, Afshin Ameri Mälardalen University

Global Illumination. COMP 575/770 Spring 2013

Global Illumination CS334. Daniel G. Aliaga Department of Computer Science Purdue University

Illumination. The slides combine material from Andy van Dam, Spike Hughes, Travis Webb and Lyn Fong

Shading, lighting, & BRDF Theory. Cliff Lindsay, PHD

Computer Graphics. Lecture 13. Global Illumination 1: Ray Tracing and Radiosity. Taku Komura

Recollection. Models Pixels. Model transformation Viewport transformation Clipping Rasterization Texturing + Lights & shadows

Global Illumination. CMPT 361 Introduction to Computer Graphics Torsten Möller. Machiraju/Zhang/Möller

Computer Graphics. Lecture 14 Bump-mapping, Global Illumination (1)

Computer Graphics. Lecture 10. Global Illumination 1: Ray Tracing and Radiosity. Taku Komura 12/03/15

Rendering and Radiosity. Introduction to Design Media Lecture 4 John Lee

Global Illumination. Why Global Illumination. Pros/Cons and Applications. What s Global Illumination

COMP371 COMPUTER GRAPHICS

Lighting and Shading. Slides: Tamar Shinar, Victor Zordon

Lighting and Shading Computer Graphics I Lecture 7. Light Sources Phong Illumination Model Normal Vectors [Angel, Ch

The Rendering Equation and Path Tracing

Ray Tracing. CSCI 420 Computer Graphics Lecture 15. Ray Casting Shadow Rays Reflection and Transmission [Ch ]

Comp 410/510 Computer Graphics. Spring Shading

Lighting and Shading

CPSC / Illumination and Shading

CMSC427 Shading Intro. Credit: slides from Dr. Zwicker

IMAGE-BASED RENDERING AND ANIMATION

Shading I Computer Graphics I, Fall 2008

Computer Graphics. Illumination and Shading

Global Illumination. CSCI 420 Computer Graphics Lecture 18. BRDFs Raytracing and Radiosity Subsurface Scattering Photon Mapping [Ch

Rendering Part I (Basics & Ray tracing) Lecture 25 December 1, 2015

Photon Mapping. Michael Doggett Department of Computer Science Lund university

CS130 : Computer Graphics Lecture 8: Lighting and Shading. Tamar Shinar Computer Science & Engineering UC Riverside

Global Illumination. Global Illumination. Direct Illumination vs. Global Illumination. Indirect Illumination. Soft Shadows.

Illumination Algorithms

CENG 477 Introduction to Computer Graphics. Ray Tracing: Shading

Global Illumination. Global Illumination. Direct Illumination vs. Global Illumination. Indirect Illumination. Soft Shadows.

Shading and Illumination

The Rendering Equation & Monte Carlo Ray Tracing

Topic 9: Lighting & Reflection models 9/10/2016. Spot the differences. Terminology. Two Components of Illumination. Ambient Light Source

Topic 9: Lighting & Reflection models. Lighting & reflection The Phong reflection model diffuse component ambient component specular component

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

Illumination & Shading

Advanced Graphics. Global Illumination. Alex Benton, University of Cambridge Supported in part by Google UK, Ltd

rendering equation computer graphics rendering equation 2009 fabio pellacini 1

Consider a partially transparent object that is illuminated with two lights, one visible from each side of the object. Start with a ray from the eye

surface: reflectance transparency, opacity, translucency orientation illumination: location intensity wavelength point-source, diffuse source

Illumination. Illumination CMSC 435/634

CSE 681 Illumination and Phong Shading

Lecture 18: Primer on Ray Tracing Techniques

The Rendering Equation. Computer Graphics CMU /15-662

Introduction to Computer Graphics 7. Shading

TSBK 07! Computer Graphics! Ingemar Ragnemalm, ISY

Simple Lighting/Illumination Models

Computer Graphics (CS 543) Lecture 7b: Intro to lighting, Shading and Materials + Phong Lighting Model

Evolution of Imaging Technology in Computer Graphics. Related Areas

Local Illumination. CMPT 361 Introduction to Computer Graphics Torsten Möller. Machiraju/Zhang/Möller

6. Illumination, Lighting

Final Project: Real-Time Global Illumination with Radiance Regression Functions

CS 325 Computer Graphics

Photon Mapping. Due: 3/24/05, 11:59 PM

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

CS635 Spring Department of Computer Science Purdue University

Local vs. Global Illumination & Radiosity

WHY WE NEED SHADING. Suppose we build a model of a sphere using many polygons and color it with glcolor. We get something like.

CS354R: Computer Game Technology

Rendering: Reality. Eye acts as pinhole camera. Photons from light hit objects

INTRODUCTION COMPUTER GRAPHICS AND INTERACTION. Christopher Peters. CST, KTH Royal Institute of Technology, Sweden

Radiance. Radiance properties. Radiance properties. Computer Graphics (Fall 2008)

Computer Graphics (CS 4731) Lecture 16: Lighting, Shading and Materials (Part 1)

Introduction Rasterization Z-buffering Shading. Graphics 2012/2013, 4th quarter. Lecture 09: graphics pipeline (rasterization and shading)

CPSC 314 LIGHTING AND SHADING

Illumination & Shading: Part 1

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

Today. Global illumination. Shading. Interactive applications. Rendering pipeline. Computergrafik. Shading Introduction Local shading models

Today. Global illumination. Shading. Interactive applications. Rendering pipeline. Computergrafik. Shading Introduction Local shading models

Lecture 15: Shading-I. CITS3003 Graphics & Animation

INFOGR Computer Graphics. J. Bikker - April-July Lecture 10: Ground Truth. Welcome!

CS 428: Fall Introduction to. Raytracing. Andrew Nealen, Rutgers, /18/2009 1

Lighting affects appearance

Sung-Eui Yoon ( 윤성의 )

Topic 12: Texture Mapping. Motivation Sources of texture Texture coordinates Bump mapping, mip-mapping & env mapping

Light Transport CS434. Daniel G. Aliaga Department of Computer Science Purdue University

11/2/2010. In the last lecture. Monte-Carlo Ray Tracing : Path Tracing. Today. Shadow ray towards the light at each vertex. Path Tracing : algorithm

Introduction Ray tracing basics Advanced topics (shading) Advanced topics (geometry) Graphics 2010/2011, 4th quarter. Lecture 11: Ray tracing

Topic 11: Texture Mapping 11/13/2017. Texture sources: Solid textures. Texture sources: Synthesized

CS230 : Computer Graphics Lighting and Shading. Tamar Shinar Computer Science & Engineering UC Riverside

CS5620 Intro to Computer Graphics

Supplement to Lecture 16

Illumination and Shading

Shading, Advanced Rendering. Week 7, Wed Feb 28

Monte Carlo Ray-tracing and Rendering

Topics and things to know about them:

CS-184: Computer Graphics. Today. Lecture #16: Global Illumination. Sunday, November 8, 2009

Part I The Basic Algorithm. Principles of Photon Mapping. A two-pass global illumination method Pass I Computing the photon map

Global Illumination and Radiosity

Global Rendering. Ingela Nyström 1. Effects needed for realism. The Rendering Equation. Local vs global rendering. Light-material interaction

Lighting. Figure 10.1

Topic 11: Texture Mapping 10/21/2015. Photographs. Solid textures. Procedural

CPSC GLOBAL ILLUMINATION

Computer Graphics. Shading. Based on slides by Dianna Xu, Bryn Mawr College

Transcription:

DH2323 DGI17 INTRODUCTION TO COMPUTER GRAPHICS AND INTERACTION GLOBAL ILLUMINATION Christopher Peters CST, KTH Royal Institute of Technology, Sweden chpeters@kth.se http://kth.academia.edu/christopheredwardpeters Based on DGI12 notes by Carl Henrik Ek

Image Synthesis In computer graphics, create images based on a model Recall: An underlying process generates observations Can control generation through parameters

Nice Results "Distant Shores" by Christoph Gerber "Christmas Baubles" by Jaime Vives Piqueres "Still with Bolts" by Jaime Vives Piqueres

Some Classifications Local Illumination Consider lighting effects only directly from the light sources and ignore effects of other objects in the scene (e.g. reflection off other objects) Global Illumination Account for all modes of light transport

Why Go Local? Usually easy to control and express Director's chair: important when you want a scene to look a certain way Fast Easier to obtain real-time performance (or just tractable calculations) Do not require knowledge of the entire scene But Not as accurate or compelling as global models

How Can It Be Modelled? Use a lighting model as inspiration But real light extremely complicated to simulate Light bounces around the environment Heavy processing required even for coarse approximations Simplifications allow real-time performance Lighting models: Lambertian we will consider this first Phong not to be confused with Phong shading Blinn-Phong and others...

Gouraud Shading Wikimedia Commons

Phong Shading Wikimedia Commons Phong shading can reproduce highlights in the center of a polygon that Gouraud Shading may miss

Phong Illumination Model NOT the same as Phong Shading

Lambertian Vs Phong Lambertian Surface Phong Illuminated Specular Surface

Overall Ambient Diffuse Specular Per light source or scene

Some Classifications Local Illumination Consider lighting effects only directly from the light sources and ignore effects of other objects in the scene (e.g. reflection off other objects) Global Illumination Account for all modes of light transport

Global Illumination Account not only for light coming directly from light sources Also reflected light bouncing around the scene Appear more photo-realistic But computationally more expensive than local illumination approaches Slower Speed-up techniques are always important

Global Illumination Example techniques: Ray tracing (sound familiar?) Radiosity Path tracing Metropolis light transport Ambient occlusion Photon mapping Image based lighting

The Rendering Equation Emitted radiance BRDF Account for angle w.r.t. light Describes: Total amount of light emitted from a point x along a specific viewing direction Given: Incoming light function BRDF Basis: Law of conservation of energy Incoming radiance Hemisphere containing all

BRDF Schwartz et al., Measurement Devices Focusing on the Developments at the University of Bonn, 2014

The Rendering Equation Emitted radiance BRDF Account for angle w.r.t. light Describes: Total amount of light emitted from a point x along a specific viewing direction Given: Incoming light function BRDF Incoming radiance Hemisphere containing all Integral over unit hemisphere containing all possible

Raytracing Few bounces (relatively) Light rays striking surface from Light source Specular/refractive direction Easy to implement Ignore diffuse objects inter-object relationships

Radiosity Conservation of light energy Integrate radiance leaving the surface in all directions Thermal engineering; FEM for solving rendering eq. Illumination as heat transfer View independent

Radiosity Surfaces divided up into patches Do operations between patches Form factors (how well patches are oriented w.r.t. each other, occlusions, distance) Calculate brightness of each patch 2016

Radiosity Diffuse bouncing of light

Radiosity Recursive/iterative technique

View independent Radiosity Can calculate solution for an entire scene off-line View scene from any view point at run-time Video: https://www.youtube.com/watch?v=8i2m255zw9i

Global Illumination Ray tracing: Good for specular Bad for diffuse Radiosity: Good for diffuse Bad for specular Hybrid techniques

Photon Mapping Superset/hybrid of ray tracing and radiosity View dependent Handles diffuse and specular well Rays from light source and camera traced separately until termination criteria met Connected to produce luminance value Realistically simulate interaction of light with different objects

Photon Mapping Pass 1: Construct photon map Light packets sent into scene from light sources When photon intersects object, details stored in a photon map Photon may be reflected (BRDF), absorbed or refracted depending on surface Pass 2: Rendering Estimate radiance of every pixel of image based on photon map Ray trace scene

In real-time? Enlighten

Example: Enlighten

Example: Enlighten

Example: Enlighten

Example: Enlighten

Example: Enlighten

Example: Enlighten

Caustics Curved regions of bright reflected or refracted light

Sub-surface scattering Light bouncing around inside material before exiting https://vimeo.com/36048029 Realistic Human Face Rendering for The Matrix Reloaded, Siggraph 2003

Photon Mapping Links http://www.cc.gatech.edu/~phlosoft/photon/ Great ray tracing and photon mapping Applet + source code

Project specification Start to think about your project topics and form groups (if desired) Bilda opening soon Write up an initial specification One or two paragraphs of details about the group and project idea Include information about the grade you are aiming for Submit to Bilda for feedback 2014

Lab Help Sessions Visualisation (VIC) Studio: Thurs 27 th, 10-12 Thurs 4 th, 13-15 Thurs 11 th, 15-17 Will be added to your schedule soon More help sessions will be organised 2017

Next lecture Rasterised Rendering I + more Monday 24 th April 08:00 12:00 V2