Computer Graphics In4/MSc Computer Graphics Lecture Notes #15 Illumination III View Independent Rendering.

Slides:



Advertisements
Similar presentations
SI31 Advanced Computer Graphics AGR
Advertisements

Lecture 8 Transparency, Mirroring
Computer graphics & visualization Global Illumination Effects.
Lecture 14 Illumination II – Global Models
Week 10 - Monday.  What did we talk about last time?  Global illumination  Shadows  Projection shadows  Soft shadows.
3D Graphics Rendering and Terrain Modeling
Photorealistic Rendering. Ray tracing v. photorealistic rendering What illumination effects are not captured by ray tracing? What illumination effects.
Modeling the Interaction of Light Between Diffuse Surfaces Cindy M. Goral, Keenth E. Torrance, Donald P. Greenberg and Bennett Battaile Presented by: Chris.
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.
 Engineering Graphics & Introductory Design 3D Graphics and Rendering REU Modeling Course – June 13 th 2014.
Light Issues in Computer Graphics Presented by Saleema Amershi.
ATEC Procedural Animation Introduction to Procedural Methods in 3D Computer Animation Dr. Midori Kitagawa.
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.
Radiosity A Fascinating Presentation by Alex Danilevky.
(conventional Cartesian reference system)
Global Illumination May 7, Global Effects translucent surface shadow multiple reflection.
7M836 Animation & Rendering
1 7M836 Animation & Rendering Global illumination, radiosity Arjan Kok
CSCE 641 Computer Graphics: Radiosity Jinxiang Chai.
1 7M836 Animation & Rendering Global illumination, ray tracing Arjan Kok
CSCE 641 Computer Graphics: Radiosity Jinxiang Chai.
1 Dr. Scott Schaefer Radiosity. 2/38 Radiosity 3/38 Radiosity Physically based model for light interaction View independent lighting Accounts for indirect.
CSCE 441 Computer Graphics: Radiosity Jinxiang Chai.
Computer Graphics Inf4/MSc Computer Graphics Lecture 11 Texture Mapping.
CSC418 Computer Graphics n Raytracing n Shadows n Global Illumination.
CSE 872 Dr. Charles B. Owen Advanced Computer Graphics1 Radiosity What we can do with scan line conversion and ray tracing What we can’t do Radiosity.
Technology and Historical Overview. Introduction to 3d Computer Graphics  3D computer graphics is the science, study, and method of projecting a mathematical.
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.
Shading & Texture. Shading Flat Shading The process of assigning colors to pixels. Smooth Shading Gouraud ShadingPhong Shading Shading.
-Global Illumination Techniques
CS 376 Introduction to Computer Graphics 04 / 16 / 2007 Instructor: Michael Eckmann.
CS447/ Realistic Rendering -- Radiosity Methods-- Introduction to 2D and 3D Computer Graphics.
Week 10 - Wednesday.  What did we talk about last time?  Shadow volumes and shadow mapping  Ambient occlusion.
Computer graphics & visualization Photon Mapping.
CS 325 Introduction to Computer Graphics 03 / 24 / 2010 Instructor: Michael Eckmann.

Introduction to Radiosity Geometry Group Discussion Session Jiajian (John) Chen 9/10/2007.
111/17/ :21 Graphics II Global Rendering and Radiosity Session 9.
Radiosity Jian Huang, CS594, Fall 2002 This set of slides reference the text book and slides used at Ohio State.
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.
Graphics Graphics Korea University cgvr.korea.ac.kr 1 Surface Rendering Methods 고려대학교 컴퓨터 그래픽스 연구실.
Monte-Carlo Ray Tracing and
Computer Graphics (Spring 2003) COMS 4160, Lecture 18: Shading 2 Ravi Ramamoorthi Guest Lecturer: Aner Benartzi.
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.
CSCE 441: Computer Graphics Ray Tracing
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.
Illumination and Shading Prof. Lizhuang Ma Shanghai Jiao Tong University.
CS 445 / 645 Introduction to Computer Graphics Lecture 16 Radiosity Radiosity.
Render methods. Contents Levels of rendering Wireframe Plain shadow Gouraud Phong Comparison Gouraud-Phong.
Global Illumination (3) Path Tracing. Overview Light Transport Notation Path Tracing Photon Mapping.
Distributed Ray Tracing. Can you get this with ray tracing?
CS552: Computer Graphics Lecture 33: Illumination and Shading.
11/29/01CS 559, Fall 2001 Today Photorealistic rendering Algorithms for producing high-quality images Ways of deciding which algorithm for use.
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.
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.
(c) 2002 University of Wisconsin
CSCE 441 Computer Graphics: Radiosity
(c) 2002 University of Wisconsin
CSc4820/6820 Computer Graphics Algorithms Ying Zhu Georgia State University Lecture 25 Radiosity.
Illumination and Shading
CSC418 Computer Graphics Raytracing Shadows Global Illumination.
Monte Carlo Path Tracing and Caching Illumination
Presentation transcript:

Computer Graphics In4/MSc Computer Graphics Lecture Notes #15 Illumination III View Independent Rendering

Computer Graphics In4/MSc 9/11/2007Lecture Notes #152 We’ll look at two methods Bidirectional ray tracing –In addition to backward ray tracing (last lecture) we perform forward ray tracing, from light sources – often identical code for each direction. –Problem is to match up rays for full transport of light. Radiosity –Models diffuse interactions between surfaces. –Considers whole scene at once, each polygon a source. Both do not require the ambient intensity hack.

Computer Graphics In4/MSc 9/11/2007Lecture Notes # Bidirectional Ray Tracing L A B C E* * * - these transports would be missed by conventional RT.

Computer Graphics In4/MSc 9/11/2007Lecture Notes #154 Bidirectional Ray Tracing Forward ray tracing – source to surfaces, illuminates surfaces. Backward (conventional) ray tracing – eye to surfaces, sees lit surfaces. Accumulate photon hits for surface intensity – render from eye pt.

Computer Graphics In4/MSc 9/11/2007Lecture Notes #155 Bidirectional Ray Tracing Computationally expensive. Much more accurate model though. Real problem is number of photons to trace. Can use refinement methods: –Trace so many photons, render and check… –and so on until rendering acceptable. Area sampling techniques can be used.

Computer Graphics In4/MSc 9/11/2007Lecture Notes #156 Bidirectional example Single Pass (Conventional RT)Two Pass (Bidirectional) Note : caustic due to red transparent ball

Computer Graphics In4/MSc 9/11/2007Lecture Notes #157 Bidirectional example 200 rays used in lighting pass400 rays used in lighting pass

Computer Graphics In4/MSc 9/11/2007Lecture Notes #158 Bidirectional example 800 rays used in lighting pass. Note: - improved caustic definition, - lighting effect of mirror, - reflection of caustic, - shadowing due to mirror lighting.

Computer Graphics In4/MSc 9/11/2007Lecture Notes #159 Summary of bidirectional RT Trace rays from light source to surfaces. Gives secondary lighting and caustics that conventional ray tracing misses. Accumulate surface hits – may require large number of hits for adequate intensity. Code for both ray trace directions can be identical.

Computer Graphics In4/MSc 9/11/2007Lecture Notes # Radiosity method. Calculates diffuse terms by considering scene as a whole and accounting for inter-object reflections. –View independent method. Ray tracing represents light as rays shot from one point to another. Radiosity considers how the total light energy in the scene is distributed among the surfaces. Light sources are not treated differently in radiosity – every surface is a light source.

Computer Graphics In4/MSc 9/11/2007Lecture Notes #1511

Computer Graphics In4/MSc 9/11/2007Lecture Notes #1512

Computer Graphics In4/MSc 9/11/2007Lecture Notes #1513

Computer Graphics In4/MSc 9/11/2007Lecture Notes #1514 Radiosity method. Radiosity = amount of energy leaving a surface per unit area, per unit time ( W / m 2 ). Form factor ij = ratio of energy leaving surface j that arrives at surface i. The Radiosity problem : - Estimate the form factors - Solve for the entire scene.

Computer Graphics In4/MSc 9/11/2007Lecture Notes #1515

Computer Graphics In4/MSc 9/11/2007Lecture Notes #1516

Computer Graphics In4/MSc 9/11/2007Lecture Notes #1517 Example form factors.

Computer Graphics In4/MSc 9/11/2007Lecture Notes #1518

Computer Graphics In4/MSc 9/11/2007Lecture Notes #1519 Estimation of form factor by projection of the object onto a hemicube

Computer Graphics In4/MSc 9/11/2007Lecture Notes #1520

Computer Graphics In4/MSc 9/11/2007Lecture Notes #1521

Computer Graphics In4/MSc 9/11/2007Lecture Notes #1522

Computer Graphics In4/MSc 9/11/2007Lecture Notes #1523

Computer Graphics In4/MSc 9/11/2007Lecture Notes #1524

Computer Graphics In4/MSc 9/11/2007Lecture Notes #1525

Computer Graphics In4/MSc 9/11/2007Lecture Notes #1526 Comparison of Illumination techniques Using a grammar to define the path of light (due to Heckbert): –L (source); D (diffuse refl.); S (specular refl.); E (eye/view point). Ray tracing handles: –LE; LS*E; LDS*E Radiosity handles: –LE; LD*E Polygon renderers handle: –LE; LDE Bidirectional ray tracing handles: –LE; LS*E; LDS*E; LD*E; and LS*DS*E –and, in general, L(S|D)*E, but D* not so interesting.

Computer Graphics In4/MSc 9/11/2007Lecture Notes #1527 Summary of Global illumination. Simulate interactions between objects. –Shadows. –Reflections. –Refraction. –Diffuse inter-reflections. Need good object material information. Non real-time, non interactive…but, as ever in computer graphics, we can cheat!

Computer Graphics In4/MSc 9/11/2007Lecture Notes #1528 How to cheat ! Can use texture mapping to replicate global illumination effects in a scanline renderer. Reflections : –Environment maps Shadows : –Shadow buffer method. Diffuse effects : –Light maps. Surface details –Bump maps.

Computer Graphics In4/MSc 9/11/2007Lecture Notes #1529 Environment maps. Capture, or render an image corresponding to the reflection of the scene in a sphere centered at the object. Calculate texture coordinates corresponding to a reflective mapping. –Image indexed by surface normal. Maps entire field of view to circle. –Resolution depends upon orientation. Escher’s gazing ball

Computer Graphics In4/MSc 9/11/2007Lecture Notes #1530 Environment mapping. Calculate texture coordinates mapping reflection image to model - Need to re-calculate with viewer motion. - Very much an approximation to reflection - Object doesn’t reflect itself - No change in reflection with position change.

Computer Graphics In4/MSc 9/11/2007Lecture Notes #1531 Cubical environment map. Produce from 6 perspective images. -Possible to produce using standard renderer, or from photographs. -More uniform resolution than spherical map. -Easy texture coordinate calculation.

Computer Graphics In4/MSc 9/11/2007Lecture Notes #1532 Illumination maps. Simulate diffuse radiosity-type effects. –For a fraction of the cost ! –Popular in games. reflectanceilluminanceradiosity

Computer Graphics In4/MSc 9/11/2007Lecture Notes #1533 Light maps in Quake. Can use much lower resolution for light map.

Computer Graphics In4/MSc 9/11/2007Lecture Notes #1534 Shadow maps. Calculate shadows by rendering scene from the point of view of the light source. Test each face with the z-buffer to see if it is the closest object and hence not in shadow. If not closest – no light contribution. Accumulate result into texture map, multiply by surface colour.

Computer Graphics In4/MSc 9/11/2007Lecture Notes #1535 Shadow maps.

Computer Graphics In4/MSc 9/11/2007Lecture Notes #1536 Bump maps. Instead of rendering small scale surface detail, use a texture map to perturb the surface normal. + =