Introduction to Computer Graphics with WebGL

Slides:



Advertisements
Similar presentations
The Radiance Equation Mel Slater. Outline Introduction Light Simplifying Assumptions Radiance Reflectance The Radiance Equation Traditional Rendering.
Advertisements

Ray Tracing & Radiosity Dr. Amy H. Zhang. Outline  Ray tracing  Radiosity.
University of New Mexico
Chapter 11: Advanced Rendering Part 1 E. Angel and D. Shreiner: Interactive Computer Graphics 6E © Addison-Wesley Mohan Sridharan Based on Slides.
Ray Tracing Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and Media Arts Director, Arts Technology Center University of.
Advanced Computer Graphics (Fall 2010) CS 283, Lecture 10: Global Illumination Ravi Ramamoorthi Some images courtesy.
Ray Tracing 1 Angel: Interactive Computer Graphics 5E © Addison-Wesley 2009.
1 Angel: Interactive Computer Graphics 4E © Addison-Wesley 2005 Shading I Ed Angel Professor of Computer Science, Electrical and Computer Engineering,
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
-Global Illumination Techniques
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
Bi-Directional Reflectance Distribution Functions (BRDF’s) Matthew McCrory.
Introduction to Radiosity Geometry Group Discussion Session Jiajian (John) Chen 9/10/2007.
111/17/ :21 Graphics II Global Rendering and Radiosity Session 9.
Radisoity Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and Media Arts Director, Arts Technology Center University of New.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
Global Illumination: Radiosity, Photon Mapping & Path Tracing Rama Hoetzlein, 2009 Lecture Notes Cornell University.
Ray Tracing. 2 Introduction OpenGL is based on a pipeline model in which primitives are rendered one at time ­No shadows (except by tricks or multiple.
Monte-Carlo Ray Tracing and
Pure Path Tracing: the Good and the Bad Path tracing concentrates on important paths only –Those that hit the eye –Those from bright emitters/reflectors.
Radiosity 1. 2 Introduction Ray tracing best with many highly specular surfaces ­Not real scenes Rendering equation describes general shading problem.
1. Ray Casting Surface intersection Visible surface detection Ray Tracing Bounce the ray Collecting intensity Technique for global reflection and transmission.
Global Illumination (3) Path Tracing. Overview Light Transport Notation Path Tracing Photon Mapping.
Computer Graphics Ken-Yi Lee National Taiwan University (the slides are adapted from Bing-Yi Chen and Yung-Yu Chuang)
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
Advanced Computer Graphics
Introduction to Computer Graphics with WebGL
Introduction to Computer Graphics with WebGL
Shading Revisited Some applications are intended to produce pictures that look photorealistic, or close to it The image should look like a photograph A.
Introduction to Computer Graphics with WebGL
Ray Tracing Ed Angel Professor Emeritus of Computer Science
Radisoity Ed Angel Professor Emeritus of Computer Science
Global Illumination: Radiosity, Photon Mapping & Path Tracing
Introduction to Computer Graphics with WebGL
Introduction to Computer Graphics with WebGL
Introduction to Computer Graphics with WebGL
Introduction to Computer Graphics with WebGL
Introduction to Computer Graphics with WebGL
CS 319 Advanced Topics in Computer Graphics John C. Hart
Models and Architectures
The Rendering Equation
Models and Architectures
Introduction to Computer Graphics with WebGL
Introduction to Computer Graphics with WebGL
Reflection and Transmission
Introduction to Computer Graphics with WebGL
Introduction to Computer Graphics with WebGL
Path Tracing (some material from University of Wisconsin)
Introduction to Computer Graphics with WebGL
Introduction to Computer Graphics with WebGL
Introduction to Computer Graphics with WebGL
Introduction to Computer Graphics with WebGL
Introduction to Computer Graphics with WebGL
Introduction to Computer Graphics with WebGL
Introduction to Computer Graphics with WebGL
Radiosity Dr. Scott Schaefer.
(c) 2002 University of Wisconsin
Introduction to Computer Graphics with WebGL
Introduction to Computer Graphics with WebGL
Introduction to Computer Graphics with WebGL
Isaac Gang University of Mary Hardin-Baylor
Introduction to Computer Graphics with WebGL
Introduction to Computer Graphics with WebGL
Introduction to Computer Graphics with WebGL
Introduction to Computer Graphics with WebGL
Advanced Computer Graphics
Reflection and Transmission
Monte Carlo Path Tracing and Caching Illumination
Presentation transcript:

Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science Laboratory University of New Mexico Angel and Shreiner: Interactive Computer Graphics 7E © Addison-Wesley 2015

Global Rendering Ed Angel Professor Emeritus of Computer Science University of New Mexico Angel and Shreiner: Interactive Computer Graphics 7E © Addison-Wesley 2015

Introduction WebGL is based on a pipeline model in which primitives are rendered one at time No shadows (except by tricks or multiple renderings) No multiple reflections Global approaches based on the rendering equation Ray tracing Radiosity Photon mapping Path Tracing Angel and Shreiner: Interactive Computer Graphics 7E © Addison-Wesley 2015

The Rendering Equation Use physical reasoning based on conservation of energy Within a closed environment, the energy entering a surface must equal the energy leaving Energy leaving in a given direction depends on the energy arriving from all directions Angel and Shreiner: Interactive Computer Graphics 7E © Addison-Wesley 2015

Rendering Equation (Kajia) intensity from p arriving at p’ emission from p arriving at p’ occlusion term = 0 or 1/r2 bidirectional reflection distribution function (BRDF) contribution from reflections from all other points Angel and Shreiner: Interactive Computer Graphics 7E © Addison-Wesley 2015

BRDF The BRDF characterizes the material Generalization of reflection coefficient General case requires is a 9 variable function at given frequency position direction of three vectors Special cases lead to familiar methods Angel and Shreiner: Interactive Computer Graphics 7E © Addison-Wesley 2015

Radiosity Assume all surfaces are perfectly diffuse Light is scattered equally in all directions Divide space into small patches Angel and Shreiner: Interactive Computer Graphics 7E © Addison-Wesley 2015

Form Factors Need to compute the form factor between each pair of patches which describes effect of light from one patch onto the other Angel and Shreiner: Interactive Computer Graphics 7E © Addison-Wesley 2015

Radiosity Rendering Once the form factors are computer each patch is a small diffuse patch Final render now uses only diffuse term As long as geometry is unchanges, subsequent renderings use same form factors Angel and Shreiner: Interactive Computer Graphics 7E © Addison-Wesley 2015

Monte Carlo Methods Rendering equation cannot be solved analytically One approach to take a probabilistic (Monte Carlo) approach Ray tracing Photon mapping Path tracing Angel and Shreiner: Interactive Computer Graphics 7E © Addison-Wesley 2015

Ray Tracing Follow rays of light from a point source Can account for reflection and transmission Angel and Shreiner: Interactive Computer Graphics 7E © Addison-Wesley 2015

Ray Casting Only rays that reach the eye matter Reverse direction and cast rays Need at least one ray per pixel Angel and Shreiner: Interactive Computer Graphics 7E © Addison-Wesley 2015

Path Tracing Angel and Shreiner: Interactive Computer Graphics 7E © Addison-Wesley 2015

Adding Rays Basic limitation of ray tracing is the number of rays we can trace Add more rays multitisampling stochastically adaptively Angel and Shreiner: Interactive Computer Graphics 7E © Addison-Wesley 2015

Photon Mapping Instead of tracing rays trace photons Send out stream of photons When photons strike surface, they can be absorbed go off in multiple directions Total number of photons limited by compute time required Off line and stochastic Angel and Shreiner: Interactive Computer Graphics 7E © Addison-Wesley 2015