Global Illumination. Local Illumination  the GPU pipeline is designed for local illumination  only the surface data at the visible point is needed to.

Slides:



Advertisements
Similar presentations
Exploration of advanced lighting and shading techniques
Advertisements

Lecture 8 Transparency, Mirroring
Technische Universität München Computer Graphics SS 2014 Graphics Effects Rüdiger Westermann Lehrstuhl für Computer Graphik und Visualisierung.
Graphics Pipeline.
Computer Graphic Creator: Mohsen Asghari Session 2 Fall 2014.
Week 9 - Friday.  What did we talk about last time?  Area lighting  Environment mapping  Blinn and Newell's method  Sphere mapping  Cubic environmental.
Computer graphics & visualization Global Illumination Effects.
Real-Time Rendering Self-Shadowing
Week 10 - Monday.  What did we talk about last time?  Global illumination  Shadows  Projection shadows  Soft shadows.
3D Graphics Rendering and Terrain Modeling
(conventional Cartesian reference system)
3D Graphics Processor Architecture Victor Moya. PhD Project Research on architecture improvements for future Graphic Processor Units (GPUs). Research.
IN4151 Introduction 3D graphics 1 Introduction to 3D computer graphics part 2 Viewing pipeline Multi-processor implementation GPU architecture GPU algorithms.
7M836 Animation & Rendering
Paper by Alexander Keller
1 Dr. Scott Schaefer Radiosity. 2/38 Radiosity 3/38 Radiosity Physically based model for light interaction View independent lighting Accounts for indirect.
Coordinate Systems X Y Z (conventional Cartesian reference system) X Y Z.
02/04/03 Page 1 Rendering Visibility Lighting Texturing.
CSE 872 Dr. Charles B. Owen Advanced Computer Graphics1 Other Rendering Techniques Types of rendering – Wireframe techniques – Scan-line conversion – Reyes.
Introduction to 3D Graphics John E. Laird. Basic Issues u Given a internal model of a 3D world, with textures and light sources how do you project it.
Computer Graphics Shadows
09/18/03CS679 - Fall Copyright Univ. of Wisconsin Last Time Bump Mapping Multi-pass algorithms.
Shadows Computer Graphics. Shadows Shadows Extended light sources produce penumbras In real-time, we only use point light sources –Extended light sources.
Computer Graphics Mirror and Shadows
1 Perception, Illusion and VR HNRS 299, Spring 2008 Lecture 19 Other Graphics Considerations Review.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 10: Computer Graphics Computer Science: An Overview Tenth Edition.
Technology and Historical Overview. Introduction to 3d Computer Graphics  3D computer graphics is the science, study, and method of projecting a mathematical.
Programmable Pipelines. Objectives Introduce programmable pipelines ­Vertex shaders ­Fragment shaders Introduce shading languages ­Needed to describe.
Jonathan M Chye Technical Supervisor : Mr Matthew Bett 2010.
-Global Illumination Techniques
OpenGL - Lighting, Shading and Material Properties
CS447/ Realistic Rendering -- Radiosity Methods-- Introduction to 2D and 3D Computer Graphics.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
Real-time Shadow Mapping. Shadow Mapping Shadow mapping uses two-pass rendering - render depth texture from the light ’ s point-of-view - render from.
3D Graphics for Game Programming Chapter IV Fragment Processing and Output Merging.
Rendering Overview CSE 3541 Matt Boggus. Rendering Algorithmically generating a 2D image from 3D models Raster graphics.
Week 10 - Wednesday.  What did we talk about last time?  Shadow volumes and shadow mapping  Ambient occlusion.
1 10/24/ :01 UML Graphics II Shadows Session 4.
Shadows. Shadows is important in scenes, consolidating spatial relationships “Geometric shadows”: the shape of an area in shadow Early days, just pasted.
Shadow Mapping Chun-Fa Chang National Taiwan Normal University.
Graphics Lecture 13: Slide 1 Interactive Computer Graphics Lecture 13: Radiosity - Principles.
1 Perception and VR MONT 104S, Fall 2008 Lecture 21 More Graphics for VR.
Introduction to Radiosity Geometry Group Discussion Session Jiajian (John) Chen 9/10/2007.
Computer graphics & visualization Shadows / Transparency.
04/30/02(c) 2002 University of Wisconsin Last Time Subdivision techniques for modeling We are now all done with modeling, the standard hardware pipeline.
Global Illumination: Radiosity, Photon Mapping & Path Tracing Rama Hoetzlein, 2009 Lecture Notes Cornell University.
Shading in OpenGL Ed Angel Professor Emeritus of Computer Science University of New Mexico 1 E. Angel and D. Shreiner: Interactive Computer Graphics 6E.
Review on Graphics Basics. Outline Polygon rendering pipeline Affine transformations Projective transformations Lighting and shading From vertices to.
Ray Tracing Fall, Introduction Simple idea  Forward Mapping  Natural phenomenon infinite number of rays from light source to object to viewer.
11/24/ :45 Graphics II Shadow Maps Reflections Session 5.
COMPUTER GRAPHICS CS 482 – FALL 2015 SEPTEMBER 29, 2015 RENDERING RASTERIZATION RAY CASTING PROGRAMMABLE SHADERS.
Illumination and Shading Prof. Lizhuang Ma Shanghai Jiao Tong University.
Real-Time Dynamic Shadow Algorithms Evan Closson CSE 528.
Shadows David Luebke University of Virginia. Shadows An important visual cue, traditionally hard to do in real-time rendering Outline: –Notation –Planar.
1 Shadow Rendering Techniques: Hard and Soft Author: Jamiur Rahman Supervisor: Mushfiqur Rouf Department of CSE BRAC University.
CDS 301 Fall, 2008 From Graphics to Visualization Chap. 2 Sep. 3, 2009 Jie Zhang Copyright ©
09/23/03CS679 - Fall Copyright Univ. of Wisconsin Last Time Reflections Shadows Part 1 Stage 1 is in.
Distributed Ray Tracing. Can you get this with ray tracing?
Computer Graphics Ken-Yi Lee National Taiwan University (the slides are adapted from Bing-Yi Chen and Yung-Yu Chuang)
Illumination and Shading Prof. Lizhuang Ma Shanghai Jiao Tong University.
Visualization of Scanned Cave Data with Global Illumination
Photorealistic Rendering vs. Interactive 3D Graphics
3D Graphics Rendering PPT By Ricardo Veguilla.
Understanding Theory and application of 3D
Jim X. Chen George Mason University
Introduction to Computer Graphics with WebGL
Radiosity Dr. Scott Schaefer.
The Graphics Pipeline Lecture 5 Mon, Sep 3, 2007.
Chapter XVI Texturing toward Global Illumination
Illumination and Shading
Presentation transcript:

Global Illumination

Local Illumination  the GPU pipeline is designed for local illumination  only the surface data at the visible point is needed to compute the lighting  primitives can be generated, processed, and then discarded  many (most?) visual effects depend on points other than just the point being rendered  using the GPU pipeline we can approximate some of these effects in a piecemeal fashion

Shadows

Ambient Occlusion

Reflections

Transmittance

Refraction

Caustics

Full Global Illumination  rendering equation (Kajiya, 1986) outgoing radiance from p in direction v emitted radiance from p in direction v hemisphere of directions above p BRDF for light direction l and view direction v incoming radiance at p from light direction l = outgoing radiance from some other point in the opposite direction –l integrate over all possible l in Ω

Radiosity

Ray Tracing

Ambient Occlusion

 ambient occlusion is the shadowing of ambient light  ambient light illuminates evenly from all directions

Ambient Occlusion  for each vertex on an object, precompute the ambient occlusion value hemisphere of directions above p integrate over all possible l in Ω visbility of p from direction l if ray cast from p in direction l is blocked otherwise

Ambient Occlusion

 the ambient occlusion k A is a vertex attribute  can be used to modify the ambient reflection coefficient in lighting calculations when using point or directional lights  alternatively, can modify the diffuse component of lighting calculations when using image-based lighting (environment mapping)

Ambient Occlusion

 references  Real-time Rendering, 3 rd Edition, Chapter 9.2  OpenGL Shading Language, 3 rd Edition, Chapter 13.1  GPU Gems 3, Chapter 12

Shadows

 useful or important for  establishing spatial relationships between objects  motion cues  indicate shape  establish mood  enhance realism  better to have inaccurate shadows than none at all  Wanger, Leonard, “The effect of shadow quality on the perception of spatial relationships in computer generated imagery,” Computer Graphics (1992 Symposium on Interactive 3D Graphics), vol. 25, no. 2, pp. 39–42, 1992

Shadows

Planar Shadows  shadows on a planar surface  idea: each occluder object is rendered twice; once normally and once as a shadow  project the vertices of the occluder object onto the planar surface  projection is done starting from the light location  render the projected primitives using a shadow color

Planar Shadows

 to render the shadow  transform the occluder object using M  render using a shadow color and no illumination  produces an opaque shadow no penumbra  in practice the shadow needs to be drawn slightly above the shadow plane  otherwise there will be hidden surface removal problems  alternatively  render the plane  disable the z-buffer and render the shadows  enable the z-buffer and render the objects

Soft Shadows  soft shadows occur when lights have finite size  simple (but computationally expensive) method:  represent the light source using many point lights distributed over the area of the light source  render shadow for each point light into the accumulation buffer and average the result over all of the point lights

Soft Shadows

Shadow Maps  a two-pass algorithm  first pass: scene is rendered from the point of view of the light source and saved into a texture (the shadow map)  only the z-buffer (depth) values are stored  second pass: scene is rendered normally but each fragment’s depth value is tested against the shadow map to determine if the fragment is in shadow

Shadow Maps

 in the fragment shader  position of each fragment is converted to coordinate system of the light and projected using the light source projection matrix  result is biased to get valid texture coordinates to retrieve the shadow map depth value  if the depth of the fragment is greater than the shadow map depth value the fragment must be in shadow  render using only ambient light  otherwise render using illumination  the key aspect is the conversion of the fragment’s 3D coordinates to shadow map coordinates

Shadow Maps  light view matrix  converts world coordinates to light coordinates  light projection matrix  converts light coordinates to homogeneous clip coordinates  light view frustum is converted into a cube centered at the origin with side length = 2  (x,y) clip coordinates are almost texture coordinates for the shadow map  z clip coordinate is almost the depth value to compare with the shadow map value

Shadow Maps  given a point in object coordinates, the matrix S maps the point into shadow map coordinates light projection matrix light view matrix model matrix (not the modelview matrix!)