Advanced Ray Tracing CMSC 435/634. Basic Ray Tracing For each pixel – Compute ray direction – Find closest surface – For each light Compute direct illumination.

Slides:



Advertisements
Similar presentations
Ray tracing. New Concepts The recursive ray tracing algorithm Generating eye rays Non Real-time rendering.
Advertisements

Computer graphics & visualization Global Illumination Effects.
Lecture 14 Illumination II – Global Models
Advanced Effects CMSC 435/634. General Approach Ray Tracing – Shoot more rays Rasterization – Render more images.
Ray Tracing & Radiosity Dr. Amy H. Zhang. Outline  Ray tracing  Radiosity.
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.
Christian Lauterbach COMP 770, 2/11/2009
CS 325 Introduction to Computer Graphics 04 / 09 / 2010 Instructor: Michael Eckmann.
CS 376 Introduction to Computer Graphics 04 / 09 / 2007 Instructor: Michael Eckmann.
Copyright © 2009 Pearson Education, Inc. Chapter 32 Light: Reflection and Refraction.
CSCE 641: Computer Graphics Ray Tracing Jinxiang Chai.
Copyright © 2007, Pearson Education, Inc., Publishing as Pearson Addison-Wesley. The ray model of light Reflection Refraction Dispersion Ray tracing for.
Parallelizing Raytracing Gillian Smith CMPE 220 February 19 th, 2008.
Ray Tracing Jerry Sui Adam Conner. Part I – Introduction to Ray Tracing Final Product.
1 7M836 Animation & Rendering Global illumination, ray tracing Arjan Kok
CIS 310: Visual Programming, Spring 2006 Western State College 310: Visual Programming Ray Tracing.
CIS 681 Distributed Ray Tracing. CIS 681 Anti-Aliasing Graphics as signal processing –Scene description: continuous signal –Sample –digital representation.
CSCE 641: Computer Graphics Ray Tracing Jinxiang Chai.
Basic Ray Tracing CMSC 435/634. Visibility Problem Rendering: converting a model to an image Visibility: deciding which objects (or parts) will appear.
TopicSlidesMinutes 1 Displacement Vectors Kinematics Graphs Energy Power Springs Shadows 39 9 Field of.
09/18/03CS679 - Fall Copyright Univ. of Wisconsin Last Time Bump Mapping Multi-pass algorithms.
CSC418 Computer Graphics n Raytracing n Shadows n Global Illumination.
Chapter 18 Ray Optics.
Chapter 18: Ray Optics Lisa & Becky. Ray Model of Light  Light rays travel in straight lines  Light rays cross but do not interact  Light rays travel.
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.
Reflections Specular reflection is the perfect reflection of light from a surface. The law a reflection states that the direction of the incoming ray and.
-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.
18 Ray Optics Slide 18-2.
CS447/ Realistic Rendering -- Radiosity Methods-- Introduction to 2D and 3D Computer Graphics.
Ray Tracing Jian Huang, CS 594, Fall, 2002 This set of slides are used at Ohio State by Prof. Roger Crawfis.
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.
1 Dr. Scott Schaefer Ray Tracing. 2/42 Ray Tracing Provides rendering method with  Refraction/Transparent surfaces  Reflective surfaces  Shadows.
Basic Ray Tracing CMSC 435/634. Visibility Problem Rendering: converting a model to an image Visibility: deciding which objects (or parts) will appear.
University of Texas at Austin CS 378 – Game Technology Don Fussell CS 378: Computer Game Technology Basic Rendering Pipeline and Shading Spring 2012.
1 Ray-Tracing ©Anthony Steed Overview n Recursive Ray Tracing n Shadow Feelers n Snell’s Law for Refraction n When to stop!
CSE 681 DISTRIBUTED RAY TRACING some implementation notes.
Basic Ray Tracing CMSC 435/634.
Ray-tracing.
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
1. Ray Casting Surface intersection Visible surface detection Ray Tracing Bounce the ray Collecting intensity Technique for global reflection and transmission.
Distributed Ray Tracing. Can you get this with ray tracing?
CS 325 Introduction to Computer Graphics 04 / 07 / 2010 Instructor: Michael Eckmann.
CSL 859: Advanced Computer Graphics Dept of Computer Sc. & Engg. IIT Delhi.
Distributed Ray Tracing. Can you get this with ray tracing?
Light & Optics. Electromagnetic Waves Electromagnetic waves include: light, radio, microwaves, x-rays, gamma rays, ultra-violet, and infrared radiation.
Global Illumination (3) Cone Tracing / Distributed Ray Tracing.
CIS 681 Distributed Ray Tracing. CIS 681 Anti-Aliasing Graphics as signal processing –Scene description: continuous signal –Sample –digital representation.
Introduction to Ray Tracing Dr. B. Raghu Professor /CSE Sri Ramanujar Engineering College.
Basic Ray Tracing CMSC 435/634.
Reconstruction For Rendering distribution Effect
Distributed Ray Tracing
Ray Tracing Dr. Scott Schaefer.
© University of Wisconsin, CS559 Fall 2004
Joshua Barczak CMSC 435 UMBC
(c) 2002 University of Wisconsin
UMBC Graphics for Games
Depth Of Field (DOF).
Distributed Ray Tracing
Distributed Ray Tracing
(c) 2002 University of Wisconsin
Depth of Field (DOF) This is the distance from foreground to background that is in acceptable focus. Most of the time the digital camera focuses for you.
CSCE 441: Computer Graphics Ray Tracing
Distributed Ray Tracing
Distributed Ray Tracing
Distributed Ray Tracing
Presentation transcript:

Advanced Ray Tracing CMSC 435/634

Basic Ray Tracing For each pixel – Compute ray direction – Find closest surface – For each light Compute direct illumination

3 Shadows What if there is an object between the surface and light?

Ray Traced Shadows Trace a ray – Start = point on surface – End = light source – t=0 at Suface, t=1 at Light – “Bias” to avoid self shadowing Test – Bias ≤ t ≤ 1 = shadow – t 1 = use this light

Mirror Reflection The Dark Side of the Trees - Gilles Tran, Spheres - Martin K. B. 5

Integral Approximations Rendering Equation Direct Illumination: only light directions Add reflection direction

7 Ray Tracing Reflection Viewer looking in direction d sees whatever the viewer “below” the surface sees looking in direction r In the real world – Energy loss on the bounce – Loss different for different colors New ray – Start on surface, in reflection direction

Ray Traced Reflection Avoid looping forever – Stop after n bounces – Stop when contribution to pixel gets too small

Refraction

Rendering Equation Light that goes through the surface – BTDF = Bidirectional Transmission Distribution Function If refraction is only non-zero direction

Side

Top

Calculating Refraction Vector Snell’s Law In terms of term

Calculating Refraction Vector Snell’s Law In terms of term

Calculating Refraction Vector Snell’s Law In terms of In terms of and

Alpha blending How much makes it through  = opacity – How much of foreground color  = transparency – How much of background color Foreground*  + Background*(1-  )

Refraction and  Refraction = what direction  = how much – Often approximate as a constant – Better: Use Fresnel

Full Ray-Tracing For each pixel – Compute ray direction – Find closest surface – For each light Shoot shadow ray If not shadowed, add direct illumination – Shoot ray in reflection direction – Shoot ray in refraction direction

Motion Blur Things move while the shutter is open

Ray Traced Motion Blur Include information on object motion Spread multiple rays per pixel across time

Rasterized Motion Blend frames at different times – Need a lot to avoid strobing Analytically elongate and fade objects Rasterize motion vectors and post-process

Depth of Field Soler et al., Fourier Depth of Field, ACM TOG v28n2, April 2009

Pinhole Lens

Lens Model

Real Lens Focal Plane

Lens Model Focal Plane

Ray Traced DOF Move image plane out to focal plane Jitter start position within lens aperture – Smaller aperture = closer to pinhole – Larger aperture = more DOF blur