CS-184: Computer Graphics. Administrative

Similar documents
Sung-Eui Yoon ( 윤성의 )

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

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

Raytracing CS148 AS3. Due :59pm PDT

Ray tracing. EECS 487 March 19,

CS 428: Fall Introduction to. Raytracing. Andrew Nealen, Rutgers, /18/2009 1

Ray Tracing. Brian Curless CSEP 557 Fall 2016

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

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

Intro to Ray-Tracing & Ray-Surface Acceleration

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

Photorealism: Ray Tracing

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

Ray Tracing. Last Time? Reading for Today. Reading for Today

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

EECS 487: Interactive Computer Graphics

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

Lecture 10: Ray tracing

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

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

Local vs. Global Illumination & Radiosity

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

CPSC GLOBAL ILLUMINATION

COMP371 COMPUTER GRAPHICS

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

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

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

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

Anti-aliasing and Monte Carlo Path Tracing. Brian Curless CSE 457 Autumn 2017

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

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

The Traditional Graphics Pipeline

MIT Ray Tracing Ray Tracing

Distribution Ray Tracing

Lecture 11: Ray tracing (cont.)

Lighting and Shading

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

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

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

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

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

Ray Tracing. Outline. Ray Tracing: History

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

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

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

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

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

The Traditional Graphics Pipeline

Ray Tracing. Kjetil Babington

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

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

Supplement to Lecture 16

A Little Background. Motivation. Motivation

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

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

Review for Ray-tracing Algorithm and Hardware

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

The Traditional Graphics Pipeline

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

Interactive Real-Time Raycasting

Shadow and Environment Maps

Illumination Algorithms

Indirect Illumination

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

Anti-aliasing and Monte Carlo Path Tracing. Brian Curless CSE 557 Autumn 2017

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

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

Photon Mapping. Due: 3/24/05, 11:59 PM

Anti-aliasing and Monte Carlo Path Tracing

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

03 RENDERING PART TWO

Ray Tracer. Spring 2017 Help Session

CS-184: Computer Graphics. Today. Lecture #16: Global Illumination. Sunday, November 8, 2009

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

Advanced Shading I: Shadow Rasterization Techniques

The Rendering Equation & Monte Carlo Ray Tracing

Ray Tracing. Quiz Discussion. Announcements: Final Projects. Last Time? Durer s Ray Casting Machine. Today

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

Raycast Rendering Maya 2013

DEFERRED RENDERING STEFAN MÜLLER ARISONA, ETH ZURICH SMA/

Global Illumination The Game of Light Transport. Jian Huang

Monte Carlo Ray-tracing and Rendering

Indirect Illumination

SUMMARY. CS380: Introduction to Computer Graphics Ray tracing Chapter 20. Min H. Kim KAIST School of Computing 18/05/29. Modeling

Shadows. COMP 575/770 Spring 2013

Shading, Advanced Rendering. Week 7, Wed Feb 28

Assignment 6: Ray Tracing

Ray Tracing. CPSC 453 Fall 2018 Sonny Chan

Last Time. Why are Shadows Important? Today. Graphics Pipeline. Clipping. Rasterization. Why are Shadows Important?

CS 325 Computer Graphics

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

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

Ray Casting. Outline. Similar to glulookat derivation. Foundations of Computer Graphics

Advanced Ray Tracing

INFOGR Computer Graphics. Jacco Bikker - April-July Lecture 14: Grand Recap. Welcome!

For Intuition about Scene Lighting. Today. Limitations of Planar Shadows. Cast Shadows on Planar Surfaces. Shadow/View Duality.

Geometric optics. The University of Texas at Austin CS384G Computer Graphics Don Fussell

EDAN30 Photorealistic Computer Graphics. Seminar 1, Whitted Ray Tracing (And then some!) Magnus Andersson, PhD student

Recall: Basic Ray Tracer

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

Transcription:

CS-184: Computer Graphics Lecture #10: Raytracing Prof. James O Brien University of California, Berkeley V2005-10-1.1 Administrative Prof. O Brien away this Thursday and Friday Available after class today Pixar info session on March 9 (maybe) Put name and e-mail address on sheet after class Assignment #3 Midterm in two weeks 2

Today Raytracing Shadows and direct lighting Reflection and refraction Antialiasing, motion blur, soft shadows, and depth of field Intersection Tests Ray-primitive Sub-linear tests 3 Light in an Environment Lady writing a Letter with her Maid National Gallery of Ireland, Dublin Johannes Vermeer, 1670 4

Global Illumination Effects PCKTWTCH Kevin Odhner POV-Ray 5 Global Illumination Effects A Philco 6Z4 Vacuum Tube Steve Anger POV-Ray 6

Global Illumination Effects Caustic Sphere Henrik Jensen (refraction caustic) 7 Global Illumination Effects Caustic Ring Henrik Jensen (reflection caustic) 8

Global Illumination Effects Sphere Flake Henrik Jensen 9 Early Raytracing Turner Whitted 10

Raytracing Scan conversion 3D! 2D! Image Based on transforming geometry Raytracing 3D! Image Geometric reasoning about light rays 11 Raytracing Eye, view plane section, and scene 12

Raytracing Launch ray from eye through pixel, see what it hits 13 Raytracing Compute color and fill-in the pixel 14

Raytracing Basic tasks Build a ray Figure out what a ray hits Compute shading 15 Building Eye Rays Rectilinear image plane build from four points UL v E P UR LL u LR P = u (vll + (1 v)ul)+ (1 u)(vlr + (1 v)ur) 16

Building Eye Rays Nonlinear projections Non-planar projection surface Variable eye location 17 Examples Multiple-Center-of-Projection Images P. Rademacher and G. Bishop SIGGRAPH 1998 18

Examples Spherical and Cylindrical Projections Ben Kreunen From Big Ben's Panorama Tutorials 19 Raytracing Basic tasks Build a ray Figure out what a ray hits Compute shading 20

Ray equation Building Eye Rays R(t) = E +t(p E) t [1... +!] Through eye at At pixel center at t = 0 t = 1 E P 21 Shadow Rays Detect shadow by rays to light source R(t) = S +t(l S) t [!...1) Lights Occluder Shadow ray - no shadow Shadow ray - shadow Incoming (eye) ray 22

Test for occluder Shadow Rays No occluder, shade normally ( e.g. Phong model ) Yes occluder, skip light ( don t skip ambient ) Self shadowing Add shadow bias Test object ID Self-shadowing Correct 23 Reflection Rays Recursive shading R(t) = S +t B Ray bounces off object Treat bounce rays (mostly) like eye rays Shade bounce ray and return color Shadow rays Recursive reflections Add color to shading at original point Specular or separate reflection coefficient t [!... + ") ˆn 24

Recursion Depth Reflection Rays Truncate at fixed number of bounces Multiplier less than J.N.D. 25 Refracted Rays Transparent materials bend light n i Snell s Law = sin! t ( see clever formula in text... ) n t sin! i sin! t > 1 Total (internal) reflection I R n i n t! i! t T 26

Refracted Rays Coefficient on transmitted ray depends on! Schlick approximation to Fresnel Equations k t (! i ) = k 0 + (1 k 0 )(1 cos! i ) 5 ( ) 2 nt 1 k 0 = n t + 1 Attenuation Wavelength (color) dependant Exponential with distance 27 Refracted Rays O Brien and Hodgins, SIGGRAPH 1999 28

Anti-Aliasing Boolean on/off for pixels causes problems Consider scan conversion algorithm: Compare to casting a ray through each pixel center Recall Nyquist Theorem Sampling rate! twice highest frequency 29 Anti-Aliasing Desired solution of an integral over pixel 30

Distributed Raytracing Send multiple rays through each pixel One Sample 5x5 Grid 5x5 Jittered Grid Average results together Jittering trades aliasing for noise 31 Distributed Raytracing Use multiple rays for reflection and refraction At each bounce send out many extra rays Quasi-random directions Use BRDF (or Phong approximation) for weights How many rays? 32

1 33 16 34

256 35 Soft Shadows Soft shadows result from non-point lights Some part of light visible, some other part occluded Penumbra Umbra Penumbra Figure from S. Chenney 36

Soft Shadows Distribute shadow rays over light surface All shadow rays go through No shadow rays go through Some shadow rays go through Figure from S. Chenney 37 16 38

Motion Blur Distribute rays over time More when we talk about animation... Pool Balls Tom Porter RenderMan 39 Depth of Field Distribute rays over a lens assembly Kolb, Mitchell, and Hanrahan SIGGRAPH 1995 40

Other Lens Effects Kolb, Mitchell, and Hanrahan SIGGRAPH 1995 41 Ray equation: Ray -vs- Sphere Test R(t) = A +t D Implicit equation for sphere: X C 2 r 2 = 0 Combine: R(t) C 2 r 2 = 0 A +t D C 2 r 2 = 0 C r Quadratic equation in t A D 42

Ray -vs- Sphere Test Two solutions One solution Imaginary 43 Ray -vs- Triangle Ray equation: R(t) = A +t D Triangle in barycentric coordinates: X(!,") = V 1 +!(V 2 V 1 ) + "(V 3 V 1 ) Combine: V 1 +!(V 2 V 1 ) + "(V 3 V 1 ) = A +t D Solve for!, ", and t 3 equations 3 unknowns Beware divide by near-zero Check ranges 44

Acceleration BSP-trees w/ bounding boxes 45 Suggested Reading Fundamentals of Computer Graphics by Pete Shirley Chapters 9, 14, and 15 46