Ray Tracing Jerry Sui Adam Conner. Part I – Introduction to Ray Tracing Final Product.

Slides:



Advertisements
Similar presentations
GR2 Advanced Computer Graphics AGR
Advertisements

13.1 si31_2001 SI31 Advanced Computer Graphics AGR Lecture 13 An Introduction to Ray Tracing.
1 05/10/2014 Computer Graphics Lecture 10 Global Illumination 1: Ray Tracing and Radiosity Taku Komura.
Ray tracing. New Concepts The recursive ray tracing algorithm Generating eye rays Non Real-time rendering.
Lecture 14 Illumination II – Global Models
Shadow Rendering Techniques A point is in the shadow of a light source if it can not be “seen” by the light source, i.e. the line segment that connects.
Graphics Graphics Korea University cgvr.korea.ac.kr Illumination Model 고려대학교 컴퓨터 그래픽스 연구실.
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.
Illumination Model & Surface-rendering Method 박 경 와.
Course Website: Computer Graphics 18: Ray-tracing.
Ray Tracing Tutorial. Ray Casting One type of visibility algorithm.
Christian Lauterbach COMP 770, 2/11/2009
CS 325 Introduction to Computer Graphics 04 / 09 / 2010 Instructor: Michael Eckmann.
CS6500 Adv. Computer Graphics © Chun-Fa Chang, Spring 2003 Object-Order vs. Screen-Order Rendering April 24, 2003.
CS 376 Introduction to Computer Graphics 04 / 09 / 2007 Instructor: Michael Eckmann.
RAY TRACING.
CSCE 641: Computer Graphics Ray Tracing Jinxiang Chai.
Ray Casting Ray-Surface Intersections Barycentric Coordinates Reflection and Transmission [Shirley, Ch.9] Ray Tracing Handouts Ray Casting Ray-Surface.
Global Illumination May 7, Global Effects translucent surface shadow multiple reflection.
1 7M836 Animation & Rendering Global illumination, ray tracing Arjan Kok
CS 376 Introduction to Computer Graphics 04 / 04 / 2007 Instructor: Michael Eckmann.
Ray Tracing 1 Angel: Interactive Computer Graphics 5E © Addison-Wesley 2009.
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.
Illumination.
Ray Tracing Primer Ref: SIGGRAPH HyperGraphHyperGraph.
12/05/02(c) 2002 University of Wisconsin Last Time Subdivision techniques for modeling Very brief intro to global illumination.
-Global Illumination Techniques
Project Raytracing. Content Goals Idea of Raytracing Ray Casting – Therory – Practice Raytracing – Theory – Light model – Practice Output images Conclusion.
CS 376 Introduction to Computer Graphics 04 / 16 / 2007 Instructor: Michael Eckmann.
Ray Tracing Chapter CAP4730: Computational Structures in Computer Graphics.
Ray Tracing Jian Huang, CS 594, Fall, 2002 This set of slides are used at Ohio State by Prof. Roger Crawfis.
University of Texas at Austin CS384G - Computer Graphics Fall 2008 Don Fussell Ray Tracing.
1 Dr. Scott Schaefer Ray Tracing. 2/42 Ray Tracing Provides rendering method with  Refraction/Transparent surfaces  Reflective surfaces  Shadows.
Rendering Overview CSE 3541 Matt Boggus. Rendering Algorithmically generating a 2D image from 3D models Raster graphics.
Basic Ray Tracing CMSC 435/634. Visibility Problem Rendering: converting a model to an image Visibility: deciding which objects (or parts) will appear.
1 Ray-Tracing ©Anthony Steed Overview n Recursive Ray Tracing n Shadow Feelers n Snell’s Law for Refraction n When to stop!
Basic Ray Tracing CMSC 435/634.
Graphics Graphics Korea University cgvr.korea.ac.kr 1 Surface Rendering Methods 고려대학교 컴퓨터 그래픽스 연구실.
CS380: Computer Graphics Distributed Ray Tracing TA Course URL:
Ray-tracing.
CS 376 Introduction to Computer Graphics 04 / 02 / 2007 Instructor: Michael Eckmann.
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
Project 3 Help Session: Ray Tracing. Getting Started Download the starter pack. 1.sample_ray.exe 2.ray-skel directory 3.scenes directory Look at the Road.
Illumination and Shading Prof. Lizhuang Ma Shanghai Jiao Tong University.
CS 445 / 645 Introduction to Computer Graphics Lecture 16 Lighting Lighting.
CS 445 / 645 Introduction to Computer Graphics Lecture 16 Radiosity Radiosity.
1. Ray Casting Surface intersection Visible surface detection Ray Tracing Bounce the ray Collecting intensity Technique for global reflection and transmission.
RENDERING : Global Illumination
CSE 681 Introduction to Ray Tracing. CSE 681 Ray Tracing Shoot a ray through each pixel; Find first object intersected by ray. Image plane Eye Compute.
Global Illumination (3) Path Tracing. Overview Light Transport Notation Path Tracing Photon Mapping.
CS 325 Introduction to Computer Graphics 04 / 07 / 2010 Instructor: Michael Eckmann.
CSL 859: Advanced Computer Graphics Dept of Computer Sc. & Engg. IIT Delhi.
Ray Tracing I. Reading Hill, Chapter 14, Sections 14.1 to 14.5 Hill, Chapter 14, Sections and
CS552: Computer Graphics Lecture 33: Illumination and Shading.
Light. Intensity calculation = wavelength I( ) = wavelength intensity of light reaching eye I( ) = I diff ( ) + I spec ( ) + I refl ( ) + I trans ( )
CS552: Computer Graphics Lecture 36: Ray Tracing.
Review Ray Tracing III Review. Pseudo codes RayCast-1  Plain ray caster (direct illumination) RayCast-2  RayCast-1 + shadow rays RayTrace-1  Recursive.
RAY TRACING.
Prof. Harriet Fell Fall 2011 Lecture 24 – November 2, 2011
Ray Tracing.
Image synthesis using classical optics
GR2 Advanced Computer Graphics AGR
Illumination Model 고려대학교 컴퓨터 그래픽스 연구실.
Illumination Model 고려대학교 컴퓨터 그래픽스 연구실.
Introduction to Ray Tracing
Presentation transcript:

Ray Tracing Jerry Sui Adam Conner

Part I – Introduction to Ray Tracing Final Product

Part I – Introduction to Ray Tracing 1.Trace the rays backward from the viewpoint through each pixel and into the scene (reverse direction of light propagation). 2.Find intersection point that is closest to eye. 3.Compute color at intersection. Ray Tracing is global lighting model.

Part I – Introduction to Ray Tracing Cast rays into the scene: Ray: a point (x o, y o, z o ) and the direction (unit vector)

Part II – Ray-object Intersection 1.Whether there is an intersection (with object surface). 2.If yes, give me the distance between viewpoint and the point of intersection (so that we can calculate the position of the intersection point). --- Find intersection that is closest to the viewpoint.

Part II – Ray-object Intersection Ray-plane intersection: ax + by + cz + d = 0 n = (a, b, c) Intersection with X-axis: -d/a Intersection with Y-axis: -d/b Intersection with Z-axis: -d/c

Part II – Ray-object Intersection v d = (x d, y d, z d ) direction vector (unit); p d = p o + tv d a(x o + tx d ) + b(y o + ty d ) + c(z o + tz d ) + d = 0 Solve: t = -(ax o +by o +cz o +d) / (ax d +by d +cz d ) = -(n p o + d) / n v d popo n vdvd pdpd

Part II – Ray-object Intersection Sphere, Box…etc. Most of the work in ray tracing goes into calculation of intersections between rays and surfaces. Calculations of some ray-object intersections could be pretty hard.

Part III – Color at Intersection The color at the intersection point depends on Lights in scene Material properties of the object.

Part III – Color at Intersection Illumination: Phong reflection model Reflection Transmition (refraction) light Shadow need recursion

Part III – Color at Intersection Phong reflection model: Diffuse: Calculated using the diffuse component of the light source. Ambient Calculated using the ambient light in the scene. Specular reflection Calculated by taking the dot product of the reflection ray with the rays direction vector, and raise the result to a power.

Part III – Color at Intersection Reflection: Mirror-like object reflection Outside phong reflection model Recursive; additional secondary rays generated for each intersection Secondary ray acts as primary ray, which may in turn generate additional secondary rays. Primary ray: ray shot out from the viewpoint. Secondary ray: any ray the is not a primary ray.

Part III – Color at Intersection

Transmission (refraction): I T n Snell’s Law:

Part III – Color at Intersection Transmission:

Part III – Color at Intersection

Transmission: Absorbency Coefficient: e = 2.718… (base of natural logarithm) R: transparency factor (0, 1) D: distance the ray travelled.

Part III – Color at Intersection Anti-aliasing: Shoot multiple rays through a pixel (to different position inside a pixel), and then average the colors returned by the rays. That is the final color of the pixel.

Part III – Color at Intersection Shadows: Given an intersection, shoot a ray to each light source and trace it to see if it intersects with anything along the way. If the shadow ray makes it to the light source, then the intersection is not in the shadow of that light. Otherwise, it is.

Part III – Color at Intersection

Shadows: Area Lights: Area light can be seen as if it is comprised of multiple point lights. Each point light within an area light gives off a fraction of the total light for the area light. When calculating shadows from area light, each intersection point fires a ray for each part of the area light. For each of these rays which fails to reach the area light, the sum of those fractions of light represent the shadow at the intersection point cast from the area light.

Part III – Color at Intersection

Shadows: Soft Shadows (noise): Eliminate banding Done by using multiple shadow rays for each area light grid position, each with random offset.

Part IV – Future Research Possibilities Optimization (acceleration) Distributed computing Better illumination model Real-time ray tracing ……

Picture Time