Luxo Jr. (Pixar, 1986) Last Time. Real Cameras and Ray Tracing. Standard Rasterization. Lights, Cameras, Surfaces. Now Playing:

Similar documents
Movie: For The Birds. Announcements. Ray Tracing 1. Programming 2 Recap. Programming 3 Info Test data for part 1 (Lines) is available

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

Movie: Geri s Game. Announcements. Ray Casting 2. Programming 2 Recap. Programming 3 Info Test data for part 1 (Lines) is available

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

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

Intro to Ray-Tracing & Ray-Surface Acceleration

Advanced Graphics. Path Tracing and Photon Mapping Part 2. Path Tracing and Photon Mapping

COMP371 COMPUTER GRAPHICS

Practical Techniques for Ray Tracing in Games. Gareth Morgan (Imagination Technologies) Aras Pranckevičius (Unity Technologies) March, 2014

Image Formation. Introduction to Computer Graphics. Machiraju/Zhang/Möller/Klaffenböck

Today. Anti-aliasing Surface Parametrization Soft Shadows Global Illumination. Exercise 2. Path Tracing Radiosity

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

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

Image Formation. Introduction to Computer Graphics Torsten Möller. Machiraju/Zhang/Möller

Ray-Tracing. Misha Kazhdan

Global Illumination. COMP 575/770 Spring 2013

Assignment 2 Ray Tracing

Overview: Ray Tracing & The Perspective Projection Pipeline

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

Lecture 18: Primer on Ray Tracing Techniques

Graphics Systems and Models

Lighting and Shading

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

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

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

CS354 Computer Graphics Ray Tracing. Qixing Huang Januray 24th 2017

Enhancing Traditional Rasterization Graphics with Ray Tracing. October 2015

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

Comp 410/510 Computer Graphics. Spring Shading

Models and Architectures. Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and Media Arts University of New Mexico

Shadows. COMP 575/770 Spring 2013

The Animation Process. Lighting: Illusions of Illumination

CS 488. More Shading and Illumination. Luc RENAMBOT

Computer Graphics. - Ray Tracing I - Marcus Magnor Philipp Slusallek. Computer Graphics WS05/06 Ray Tracing I

Lighting. To do. Course Outline. This Lecture. Continue to work on ray programming assignment Start thinking about final project

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

Photo Studio Optimizer

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

Introduction to Computer Graphics with WebGL

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

Review. Stephen J. Guy

CSE 167: Introduction to Computer Graphics Lecture #6: Lights. Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2014

Review for Ray-tracing Algorithm and Hardware

03 RENDERING PART TWO

CPSC GLOBAL ILLUMINATION

Simple Lighting/Illumination Models

lecture 18 - ray tracing - environment mapping - refraction

Schedule. MIT Monte-Carlo Ray Tracing. Radiosity. Review of last week? Limitations of radiosity. Radiosity

Ray Tracing. CS334 Fall Daniel G. Aliaga Department of Computer Science Purdue University

INFOGR Computer Graphics

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

CMSC427 Shading Intro. Credit: slides from Dr. Zwicker

Image Synthesis. Global Illumination. Why Global Illumination? Achieve more photorealistic images

Supplement to Lecture 16

COMPLETION OF Z-buffer Graphics Pipeline

Rendering. Mike Bailey. Rendering.pptx. The Rendering Equation

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

Shading. Shading = find color values at pixels of screen (when rendering a virtual 3D scene).

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

Virtual Reality for Human Computer Interaction

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

Introduction to Computer Graphics 7. Shading

Models and Architectures

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

Ray Tracing. Kjetil Babington

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

Illumination Algorithms

Introduction to 3D Concepts

COMPUTER GRAPHICS AND INTERACTION

Rendering Algorithms: Real-time indirect illumination. Spring 2010 Matthias Zwicker

CSE 167: Introduction to Computer Graphics Lecture #7: Lights. Jürgen P. Schulze, Ph.D. University of California, San Diego Spring Quarter 2015

Today. Rendering algorithms. Rendering algorithms. Images. Images. Rendering Algorithms. Course overview Organization Introduction to ray tracing

Topics and things to know about them:

Recursion and Data Structures in Computer Graphics. Ray Tracing

The Rendering Equation & Monte Carlo Ray Tracing

Image-based Lighting

Lighting & 3D Graphics. Images from 3D Creative Magazine

Lighting. Figure 10.1

There are many kinds of surface shaders, from those that affect basic surface color, to ones that apply bitmap textures and displacement.

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

Other Rendering Techniques CSE 872 Fall Intro You have seen Scanline converter (+z-buffer) Painter s algorithm Radiosity CSE 872 Fall

MITOCW MIT6_172_F10_lec18_300k-mp4

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

CS 381 Computer Graphics, Fall 2008 Midterm Exam Solutions. The Midterm Exam was given in class on Thursday, October 23, 2008.

Computer Graphics. - Introduction to Ray Tracing - Philipp Slusallek

Chapter 7 - Light, Materials, Appearance

Chapter 11. Caustics and Global Illumination

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

Computer Graphics. Illumination and Shading

COMP 4801 Final Year Project. Ray Tracing for Computer Graphics. Final Project Report FYP Runjing Liu. Advised by. Dr. L.Y.

Raytracing CS148 AS3. Due :59pm PDT

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

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

Chapter 11 Global Illumination. Part 1 Ray Tracing. Reading: Angel s Interactive Computer Graphics (6 th ed.) Sections 11.1, 11.2, 11.

Visual cues to 3D geometry. Light Reflection and Advanced Shading. Shading. Recognizing materials. size (perspective) occlusion shading

REYES REYES REYES. Goals of REYES. REYES Design Principles

Stochastic Path Tracing and Image-based lighting

Office Hours. Scattering and Polarization

Anti-aliasing. Images and Aliasing

Lecture 1. Computer Graphics and Systems. Tuesday, January 15, 13

Transcription:

Now Playing: Luxo Jr. (Pixar, 1986) Giant Steps From Giant Steps Recorded May 4-5, 1959 John Coltrane - Tenor Sax Tommy Flanagan - Piano Paul Chambers - Bass Art Taylor - Drums Real Cameras and Ray Tracing COMP 575 August 28, 2007 Last Time Overview of the first half of the semester Talked about displays Raster vs. Vector Cathode Ray Tube (CRT) displays Liquid Crystal Displays (LCDs) Talked about the graphics pipeline How to turn 3D geometry into screen pixels Standard Rasterization (NOTE: You can do better with fancy shaders, etc.) Notice anything? Lights, Cameras, Last time I talked briefly about lights, surfaces, and cameras from the perspective of the graphics pipeline are the 3D geometry in the scene Lights determine the color of the surface The camera projects the 3D geometry onto the view plane 1

Lights, Cameras, How are these connected in the real world? Light! More precisely, photons Light sources emit photons reflect & absorb photons Cameras measure photons Photons The quanta of electromagnetic energy Particles of light Appear to be particles and waves simultaneously We ignore wave behavior (i.e. diffraction) We simulate particle behavior Photons as Rays We model photons as rays of light Rays in the mathematical sense Defined by a starting point and a vector Lights There are several kinds of lights (or light sources) Light bulbs The sun Spot Lights Ceiling Lights These are different because they emit photons differently Point Lights (i.e. Light Bulbs) Emit light evenly in all directions That is, photons (rays) from a point light all originate from the same point, and have directions evenly distributed over the sphere Directional Lights (i.e. the Sun) Point light sources at an infinite (or near infinite) distance Can assume that all rays are parallel Earth 2

Directional Lights (i.e. the Sun) Point light sources at an infinite (or near infinite) distance Can assume that all rays are parallel Spot Lights (i.e., well, Spot Lights) Similar to point lights, but intensity of emitted light varies by direction Can think of it as only emitting rays over a patch on the sphere Area Lights (i.e. Ceiling Lights) Emits light in every direction from a surface Can think of it as a set of point lights, or a patch on which every point is a point light Materials on the Utah Teapot Surface materials can be: Dull Shiny Bumpy Smooth Transparent Translucent... So what do surfaces do? They selectively react to incoming photons Absorb Reflect Refract Fluoresce etc. 3

make up the interesting things in a scene, but from a light transport point of view, they are just intermediaries Cameras Almost all cameras work in a similar fashion Use a lens to map rays from the scene (i.e. the world) onto an image plane Cameras Lenses are a distraction Let s simplify: Camera Obscura (dark room) Scene Camera Obscura Image Plane Pinhole Recap So now we know the basics of how lights, surfaces, and cameras interact Lights emit rays change rays Cameras capture rays We can use this to build a rendering system! A Model of the Universe 4

A Model of the Universe Direct Illumination A Problem? It is perfectly reasonable to try to implement an algorithm based on the model discussed so far However, it would be VERY inefficient Why? Many (probably most) light rays in a scene would never hit the image plane A Problem? Direct Illumination A Solution Instead of shooting rays from the light, shoot rays from the camera Shoot one (or, realistically, many) rays per pixel Can stop when you hit a light and/or a non-reflective surface This is the basis of the ray tracing algorithm A Solution Ray Tracing Ray-Tracing Algorithm for each pixel / subpixel shoot a ray into the scene find nearest object the ray intersects if surface is (nonreflecting OR light) color the pixel else calculate new ray direction recurse 5

Ray-Tracing Algorithm for each pixel / subpixel shoot a ray into the scene find nearest object the ray intersects if surface is (nonreflecting OR light) color the pixel else Ray Casting calculate new ray direction recurse Ray-Tracing Components 1. Generate the rays that are seen by the eye One (or more) for each pixel Need to determine ray origin / directions 2. Figure out what (if anything) those rays hit Compute the nearest intersection Ray-object intersections 3. Determine the color of the pixel A Model of the Universe Direct Illumination vs. Global Illumination Indirect Illumination This is also commonly referred to as global illumination Direct Illumination Only With Global Illumination Class Schedule Weeks 10 & 11 Real Cameras & Light Transport Casting Rays Weeks 12 & 13 Ray Tracing Radiosity Week 14 Photon Mapping Class Schedule Week 15 Special Topics (tentative) High Dynamic Range (HDR) Rendering Image-Based Rendering Suggestions? Week 16 Course / Final Exam Review 6