Ray tracing. EECS 487 March 19,

Similar documents
Sung-Eui Yoon ( 윤성의 )

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

Computer Graphics. Si Lu. Fall uter_graphics.htm 11/22/2017

Recursive Ray Tracing. Ron Goldman Department of Computer Science Rice University

COMP371 COMPUTER GRAPHICS

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

Announcements. Written Assignment 2 out (due March 8) Computer Graphics

Specular reflection. Lighting II. Snell s Law. Refraction at boundary of media

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

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

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

EECS 487: Interactive Computer Graphics

Ray tracing. Computer Graphics COMP 770 (236) Spring Instructor: Brandon Lloyd 3/19/07 1

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

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

INFOGR Computer Graphics. J. Bikker - April-July Lecture 10: Ground Truth. Welcome!

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

I have a meeting with Peter Lee and Bob Cosgrove on Wednesday to discuss the future of the cluster. Computer Graphics

CS-184: Computer Graphics. Administrative

Effects needed for Realism. Computer Graphics (Fall 2008) Ray Tracing. Ray Tracing: History. Outline

Ray Tracing III. Wen-Chieh (Steve) Lin National Chiao-Tung University

CS580: Ray Tracing. Sung-Eui Yoon ( 윤성의 ) Course URL:

Ray Tracing I. Internet Raytracing Competition

03 RENDERING PART TWO

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

Graphics 2009/2010, period 1. Lecture 8: ray tracing

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

Lecture 18: Primer on Ray Tracing Techniques

Ray Tracing. Kjetil Babington

Last Time: Acceleration Data Structures for Ray Tracing. Schedule. Today. Shadows & Light Sources. Shadows

Lecture 17: Recursive Ray Tracing. Where is the way where light dwelleth? Job 38:19

Ray Tracing. Johns Hopkins Department of Computer Science Course : Rendering Techniques, Professor: Jonathan Cohen

Lecture 10: Ray tracing

CPSC GLOBAL ILLUMINATION

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

Distributed Ray Tracing

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

CS 325 Computer Graphics

Distribution Ray-Tracing. Programação 3D Simulação e Jogos

Implementation Issues

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

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

Lighting and Shading

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

Today. Acceleration Data Structures for Ray Tracing. Cool results from Assignment 2. Last Week: Questions? Schedule

Rendering. Converting a 3D scene to a 2D image. Camera. Light. Rendering. View Plane

Problem Set 4 Part 1 CMSC 427 Distributed: Thursday, November 1, 2007 Due: Tuesday, November 20, 2007

Photorealism: Ray Tracing

Ray Tracing. Cornell CS4620/5620 Fall 2012 Lecture Kavita Bala 1 (with previous instructors James/Marschner)

Intro to Ray-Tracing & Ray-Surface Acceleration

Review for Ray-tracing Algorithm and Hardware

Global Illumination The Game of Light Transport. Jian Huang

distribution ray tracing

Recursion and Data Structures in Computer Graphics. Ray Tracing

Ray-tracing Cont. Ray-tracing

distribution ray-tracing

Introduction to Visualization and Computer Graphics

Advanced Ray Tracing

Ray Tracing. Foley & Van Dam, Chapters 15 and 16

Ray Tracer. Spring 2017 Help Session

Ray Tracing Foley & Van Dam, Chapters 15 and 16

Shadows. COMP 575/770 Spring 2013

Motivation. Sampling and Reconstruction of Visual Appearance. Effects needed for Realism. Ray Tracing. Outline

COMP 175 COMPUTER GRAPHICS. Lecture 11: Recursive Ray Tracer. COMP 175: Computer Graphics April 9, Erik Anderson 11 Recursive Ray Tracer

The Traditional Graphics Pipeline

Ray Tracing. Outline. Ray Tracing: History

Ray Tracing. Brian Curless CSEP 557 Fall 2016

The Traditional Graphics Pipeline

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

Distribution Ray Tracing

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

Effects needed for Realism. Ray Tracing. Ray Tracing: History. Outline. Foundations of Computer Graphics (Spring 2012)

Ray Tracing. Computer Graphics CMU /15-662, Fall 2016

The Traditional Graphics Pipeline

Indirect Illumination

Distribution Ray Tracing. University of Texas at Austin CS384G - Computer Graphics Fall 2010 Don Fussell

Monte-Carlo Ray Tracing. Antialiasing & integration. Global illumination. Why integration? Domains of integration. What else can we integrate?

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

EDAN30 Photorealistic Computer Graphics. Ray tracing. Michael Doggett Department of Computer Science Lund university. Copyright 2011 Michael Doggett

Computer Graphics (CS 543) Lecture 13b Ray Tracing (Part 1) Prof Emmanuel Agu. Computer Science Dept. Worcester Polytechnic Institute (WPI)

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

Raytracing CS148 AS3. Due :59pm PDT

CS 4204 Computer Graphics

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

CS 148, Summer 2012 Introduction to Computer Graphics and Imaging Justin Solomon

Illumination Algorithms

Computer Graphics 1. Chapter 7 (June 17th, 2010, 2-4pm): Shading and rendering. LMU München Medieninformatik Andreas Butz Computergraphik 1 SS2010

Reading. Ray Tracing. Eye vs. light ray tracing. Geometric optics. Required: Watt, sections , (handout) Further reading:

Computing Visibility. Backface Culling for General Visibility. One More Trick with Planes. BSP Trees Ray Casting Depth Buffering Quiz

Real-Time Shadows. Last Time? Textures can Alias. Schedule. Questions? Quiz 1: Tuesday October 26 th, in class (1 week from today!

Advanced Shading I: Shadow Rasterization Techniques

MITOCW MIT6_172_F10_lec18_300k-mp4

Reading. Ray Tracing. Eye vs. light ray tracing. Geometric optics. Required:

Shading, Advanced Rendering. Week 7, Wed Feb 28

So far, we have considered only local models of illumination; they only account for incident light coming directly from the light sources.

Indirect Illumination

Reading. Distribution Ray Tracing. BRDF, revisited. Pixel anti-aliasing. ω in. Required: Shirley, section Further reading:

Photorealistic 3D Rendering for VW in Mobile Devices

Ray Casting. Outline in Code. Outline. Finding Ray Direction. Heckbert s Business Card Ray Tracer. Foundations of Computer Graphics (Fall 2012)

Transcription:

Ray tracing EECS 487 March 19, 2007 http://radsite.lbl.gov/radiance/book/ 1

Conventional pipeline (rasterization) For each triangle Compute lighting at vertices For each pixel within triangle Compute interpolated color and depth Write pixel if depth test passes Q: the above description is somewhat old style how have things changed lately? 2

Conventional pipeline (rasterization) For each triangle Compute lighting at vertices For each pixel within triangle Compute interpolated color and depth Write pixel if depth test passes Q: the above description is somewhat old style how have things changed lately? A: can now do per pixel lighting 3

Advantages of conventional pipeline Simple Can be implemented in hardware Parallel processing (SIMD) Vertices Pixels Visibility determination is fast z buffer 4

Disadvantages Missing effects namely? 5

Disadvantages Missing effects shadows reflection refraction through transparent surfaces color bleeding depth of field motion blur caustics Undesirable effect: Aliasing 6

Refraction, hard shadows, reflection 7

Soft shadows http://www csl.csres.utexas.edu/users/billmark/teach/cs384g 05 fall/projects/ray/ray_examples/ 8

Color bleeding 9

Depth of field From today's New York Times 10

Motion blur 11

Caustics 12

Degrees of ray tracing Ray casting same disadvantages as rasterization, but slower! Classical ray tracing (today) extension of ray casting (slower still) Monte carlo ray tracing (next class) extension of classical ray tracing (waaaay slower) 13

Ray casting For each pixel Compute ray into scene Find intersection with nearest object Compute lighting (via position, normal) 14

Advantages of ray casting Simple 15

Advantages of ray casting Simple Can be extended to include global illumination effects: Reflections (specular, glossy) Shadows (hard, soft) Depth of field Motion blur Then it s called ray tracing 16

Disadvantages of ray tracing Done in software: slower Adding realism can increase computations exponentially: monte carlo ray tracing, AKA distribution ray tracing 17

Classical ray tracing Primary ray leaves the eye and travels out to the scene When hit spawn three new rays to collect light shadow ray to camera towards light reflection ray transparency ray 18

The ray tree 19

Raytracing is recursive I(incident out) = I(shadow local in) + Kr * I(reflection in) + Kt * I(transparent in) what is a range of Kr and Kt? Without recursion we have ray casting 20

Ray Reflections N I θi R θr θi = θr R = I 2(N I) N 21

Ray Refraction N I θi Snell s Law sin(θ i ) sin(θ t ) = η21 = η2 η1 θt T Index of refraction: ratio of speed of light in a vacuum to speed in the material 22

Light Attenuation in transparent materials Light may lose intensity and shift color effect increases with distance Beer s law Fall off is exponential w/ distance r, g, b components computed separately text has details 23

http://www.jasonwaltman.com/graphics/rt soft fuzzy.html 24

Watch out for Total internal refraction light may not get through the interface 25

Computing intersections Crucial computation (inner loop) Spheres Planes CSGs image from: http://groups.csail.mit.edu/graphics/classes/6.838/f01/ 26 lectures/smoothsurfaces/csg raytrace.gif

pop quiz given ray: r(t) = p + td where p is the ray origin, d is a vector along the ray find the value of t for which r(t) lies on the unit sphere with center at the origin 27

Speed up techniques Bounding volumes Spheres Boxes Uniform spatial subdivision Hierarchical bounding boxes 28

Using hierarchical bounding boxes To check for intersections w/ objects in box: if ray misses box, return none if box is leaf test intersections w/ each triangle stored in the box, return closest else check for intersections w/ each child box, return closest 29

Problem (classical ray tracing): images are too clean http://www.tjhsst.edu/~dhyatt/supercomp/p501.html 30

What s missing Reflections are perfect Shadows are hard Everything is in focus Shutter speed is infinite Prone to aliasing 31

Strategy: random sampling Can address all problems listed on previous slide 32

anti aliasing many rays per pixel regular sampling random sampling more on this next time 33

soft shadows one approach: use many lights approximate an area light with many point lights problem: overlapping hard shadows alternate approach: sample the area light randomly w/ rays random sampling discussed in text 34

35 http://www.cs.wpi.edu/~emmanuel/courses/cs563/write_ups/zackw/realistic_raytracing.html

more effects glossy reflection follow multiple reflection rays, jittered randomly motion blur multiple rays, jittered in time depth of field multiple rays, jittered around eye, through focal plane more details next class 36

Wrap up Shirley (our textbook) has details on computing random samples effectively Project 5 (ray tracing) will go out next week Guest speaker next week: Manoj Rajagopalan I'll be out of town no office hours 37