(c) 2002 University of Wisconsin

Slides:



Advertisements
Similar presentations
Lecture 14 Illumination II – Global Models
Advertisements

Computer Graphics In4/MSc Computer Graphics Lecture Notes #15 Illumination III View Independent Rendering.
Radiosity Mel Slater Department of Computer Science University College London
Advanced Computer Graphics
Photorealistic Rendering. Ray tracing v. photorealistic rendering What illumination effects are not captured by ray tracing? What illumination effects.
Illumination Models Radiosity Chapter 14 Section 14.7 Some of the material in these slides may have been adapted from University of Virginia, MIT, Colby.
Ray Tracing & Radiosity Dr. Amy H. Zhang. Outline  Ray tracing  Radiosity.
1. What is Lighting? 2 Example 1. Find the cubic polynomial or that passes through the four points and satisfies 1.As a photon Metal Insulator.
Interreflections and Radiosity : The Forward Problem Lecture #11 Thanks to Kavita Bala, Pat Hanrahan, Doug James, Ledah Casburn.
Advanced Computer Graphics (Fall 2010) CS 283, Lecture 10: Global Illumination Ravi Ramamoorthi Some images courtesy.
7M836 Animation & Rendering
1 7M836 Animation & Rendering Global illumination, ray tracing Arjan Kok
The Radiosity Method Donald Fong February 10, 2004.
Computer Graphics (Spring 2008) COMS 4160, Lecture 22: Global Illumination
CSC418 Computer Graphics n Raytracing n Shadows n Global Illumination.
Global Illumination. Direct Illumination vs. Global Illumination reflected, scattered and focused light (not discreet). physical-based light transport.
Today More raytracing stuff –Soft shadows and anti-aliasing More rendering methods –The text book is good on this –I’ll be using images from the CDROM.
12/05/02(c) 2002 University of Wisconsin Last Time Subdivision techniques for modeling Very brief intro to global illumination.
-Global Illumination Techniques
Ray Tracing Sang Il Park SEjong University With lots of slides stolen from Jehee Lee, Doug James, Steve Seitz, Shree Nayar, Alexei Efros, Fredo Durand.
02/10/03© 2003 University of Wisconsin Last Time Participating Media Assignment 2 –A solution program now exists, so you can preview what your solution.
Computer graphics & visualization Photon Mapping.
02/05/03© 2003 University of Wisconsin Last Time Importance Better Form Factors Meshing.
University of Texas at Austin CS 378 – Game Technology Don Fussell CS 378: Computer Game Technology Basic Rendering Pipeline and Shading Spring 2012.
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.
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.
Monte-Carlo Ray Tracing and
Photo-realistic Rendering and Global Illumination in Computer Graphics Spring 2012 Hybrid Algorithms K. H. Ko School of Mechatronics Gwangju Institute.
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.
Ray Tracing Fall, Introduction Simple idea  Forward Mapping  Natural phenomenon infinite number of rays from light source to object to viewer.
02/12/03© 2003 University of Wisconsin Last Time Intro to Monte-Carlo methods Probability.
In the name of God Computer Graphics. Last Time Some techniques for modeling Today Global illumination and raytracing.
Photo-realistic Rendering and Global Illumination in Computer Graphics Spring 2012 Stochastic Path Tracing Algorithms K. H. Ko School of Mechatronics Gwangju.
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.
Distributed Ray Tracing. Can you get this with ray tracing?
Distributed Ray Tracing. Can you get this with ray tracing?
11/29/01CS 559, Fall 2001 Today Photorealistic rendering Algorithms for producing high-quality images Ways of deciding which algorithm for use.
CS552: Computer Graphics Lecture 36: Ray Tracing.
Introduction to Ray Tracing Dr. B. Raghu Professor /CSE Sri Ramanujar Engineering College.
Advanced Computer Graphics
Advanced Computer Graphics
Basic Ray Tracing CMSC 435/634.
Shading Revisited Some applications are intended to produce pictures that look photorealistic, or close to it The image should look like a photograph A.
Global Illumination: Radiosity, Photon Mapping & Path Tracing
3D Graphics Rendering PPT By Ricardo Veguilla.
RAY TRACING.
Chapter 10: Computer Graphics
© University of Wisconsin, CS559 Fall 2004
The Rendering Equation
© 2005 University of Wisconsin
(c) 2002 University of Wisconsin
Path Tracing (some material from University of Wisconsin)
Introduction to Computer Graphics with WebGL
Introduction to Computer Graphics with WebGL
Lighting.
Radiosity Dr. Scott Schaefer.
CSCE 441 Computer Graphics: Radiosity
Lesson 14 Key Concepts and Notes
Image.
Progressive Photon Mapping Toshiya Hachisuka Henrik Wann Jensen
Monte Carlo Rendering Central theme is sampling:
CS5500 Computer Graphics May 29, 2006
Illumination and Shading
Foundations of Computer Graphics (Spring 2012)
Introduction to Ray Tracing
CSC418 Computer Graphics Raytracing Shadows Global Illumination.
Distributed Ray Tracing
Presentation transcript:

(c) 2002 University of Wisconsin Last Time Ray-tracing implementation Recall the light paths that ray-tracing captures Technically, we are talking about “eye ray tracing,” which traces rays originating at the eye Some people use the terms forward or backward ray-tracing, but there is no agreement in which direction is forward! 05/07/02 (c) 2002 University of Wisconsin

(c) 2002 University of Wisconsin Which paths are present? Which paths are missing? Ray-traced Cornell box, due to Henrik Jensen, http://www.gk.dtu.dk/~hwj 05/07/02 (c) 2002 University of Wisconsin

(c) 2002 University of Wisconsin 05/07/02 (c) 2002 University of Wisconsin

(c) 2002 University of Wisconsin Today Rendering algorithms that capture other light paths Distribution ray-tracing Radiosity Bi-directional ray tracing 05/07/02 (c) 2002 University of Wisconsin

Ray-Tracing and Sampling Basic ray-tracing casts one ray through each pixel, sends one ray for each reflection, one ray for each point light, etc This represents a single sample for each point, and for an animation, a single sample for each frame Many important effects require more samples: Motion blur: A photograph of a moving object smears the object across the film (longer exposure, more motion blur) Depth of Field: Objects not located at the focal distance appear blurred when viewed through a real lens system Rough reflections: Reflections in a rough surface appear blurred 05/07/02 (c) 2002 University of Wisconsin

Distribution Raytracing Distribution raytracing casts more than one ray for each sample Originally called distributed raytracing, but the name’s confusing How would you sample to get motion blur? How would you sample to get rough reflections? How would you sample to get depth of field? 05/07/02 (c) 2002 University of Wisconsin

Distribution Raytracing Depth of Field From Alan Watt, “3D Computer Graphics” 05/07/02 (c) 2002 University of Wisconsin

(c) 2002 University of Wisconsin Missing Paths Basic recursive raytracing cannot do: LS*D+E: Light bouncing off a shiny surface like a mirror and illuminating a diffuse surface LD+E: Light bouncing off one diffuse surface to illuminate others Basic problem: The raytracer doesn’t know where to send rays out of the diffuse surface to capture the incoming light Also a problem for rough specular reflection Fuzzy reflections in rough shiny objects 05/07/02 (c) 2002 University of Wisconsin

Bi-directional Raytracing Cast rays from the light sources out into the scene When a ray hits a diffuse surface, accumulate some light there Surfaces record the amount of light that hits them Store the light in texture maps Store the light in quadtrees Store the light in photon maps Cast rays from the eye out into the scene When a ray hits a diffuse surface, look up the amount of light that hit it in the light-ray phase What paths does it capture? What sort of visual effects do you see? 05/07/02 (c) 2002 University of Wisconsin

Caustics Standard raytracer: Bi-directional raytracer Diffuse table and blue ball, mirrors left, right and back, transparent red ball Bi-directional raytracer More rays in the light pass Note the LS*DS*E paths From Alan Watt, “3D Computer Graphics” 05/07/02 (c) 2002 University of Wisconsin

(c) 2002 University of Wisconsin Refraction caustic Henrik wann Jensen, http://www.gk.dtu.dk/~hwj 05/07/02 (c) 2002 University of Wisconsin

(c) 2002 University of Wisconsin Refraction caustics Henrik wann Jensen, http://www.gk.dtu.dk/~hwj 05/07/02 (c) 2002 University of Wisconsin

(c) 2002 University of Wisconsin Still Missing… LD*E paths – Diffuse-diffuse transport Formulated and solved with radiosity methods L(S|D)*E paths Solved with Monte-Carlo renderers – very very inefficient Also solvable with multi-pass methods, but also very very inefficient, and subject to aliasing An unsolved (unsolvable?) problem 05/07/02 (c) 2002 University of Wisconsin

(c) 2002 University of Wisconsin Real World LD*E Paths From Alan Watt, “3D Computer Graphics” 05/07/02 (c) 2002 University of Wisconsin

Radiosity Assumptions All surfaces are perfectly diffuse Means that is doesn’t matter which way light hits or leaves a surface Illumination is constant over a patch Can break the world up into a discrete number of pieces Problems at sharp illumination boundaries - shadows Ways around these problems, but less efficient and less able to manage scene complexity Assumptions allow us to solve for LD*E paths 05/07/02 (c) 2002 University of Wisconsin

(c) 2002 University of Wisconsin Radiosity Equation Derived from the global illumination equation using radiosity assumptions Bi is the radiosity (brightness) of patch i i is the diffuse reflection coefficient Fij is the form factor, which quantifies how much light patch j contributes to patch i The brightness of each patch depends on how much light it gets from all the others, and its diffuse reflection 05/07/02 (c) 2002 University of Wisconsin

Solving the Radiosity Eqn Radiosity algorithms use one of several methods to solve the radiosity equation Basically a very large linear system, so techniques can all be mapped onto linear system solvers A large part of the computation is in finding form factors Describe how much light gets from each patch to every other patch Geometric in nature - do not depend on the illumination, just the layout of the scene Another key factor is finding good meshing strategies - ways of laying out the patches 05/07/02 (c) 2002 University of Wisconsin

(c) 2002 University of Wisconsin Radiosity Example Color bleeding is extreme in this example Textures are applied after solving for illumination Some meshing artifacts are visible - note the banding around the pictures on the wall From Alan Watt, “3D Computer Graphics” 05/07/02 (c) 2002 University of Wisconsin

(c) 2002 University of Wisconsin Radiosity Meshing Each patch is colored with its illumination Note the discrete nature of the solution The previous image was obtained by pushing color to vertices and then Gourand shading From Alan Watt, “3D Computer Graphics” 05/07/02 (c) 2002 University of Wisconsin