Course Website: Computer Graphics 18: Ray-tracing.

Slides:



Advertisements
Similar presentations
GR2 Advanced Computer Graphics AGR
Advertisements

GR2 Advanced Computer Graphics AGR
13.1 si31_2001 SI31 Advanced Computer Graphics AGR Lecture 13 An Introduction to Ray Tracing.
1 Ray Tracing Mani Thomas CISC 440/640 Computer Graphics.
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.
Ray Tracing & Radiosity Dr. Amy H. Zhang. Outline  Ray tracing  Radiosity.
May Visible Surface Detection Shmuel Wimer Bar Ilan Univ., Eng. Faculty Technion, EE Faculty.
David Luebke1/19/99 CS 551/651: Advanced Computer Graphics David Luebke
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 박 경 와.
1 of 25 Assignment Orthographic Wireframe Elevation Orthographic Wireframe Plan Orthographic Wireframe End-Elevation Perspective View.
CS 325 Introduction to Computer Graphics 04 / 09 / 2010 Instructor: Michael Eckmann.
Photon Tracing with Arbitrary Materials Patrick Yau.
1 of 29 Interesting Illumination Demo There’s a very nice Java illumination model demo which may help you understand the effects of different kinds of.
CS 376 Introduction to Computer Graphics 04 / 09 / 2007 Instructor: Michael Eckmann.
Computer Graphics 14: Surface Detection Methods
RAY TRACING.
1 of 19 New Lecture And Lab Information Lectures: –Thursday 13:00 – 14:00 (A322) Does anyone miss lunch? –Friday 15:00 – 16:00 (A28) Labs: –Wednesday 10:00.
3/23/2005 © Dr. Zachary Wartell 1 Illumination Models and Surface- Rendering Methods.
Course Website: Computer Graphics 9: Clipping In 3D.
CSCE 641: Computer Graphics Ray Tracing Jinxiang Chai.
Parallelizing Raytracing Gillian Smith CMPE 220 February 19 th, 2008.
Photorealism Reflection, Refraction Bump maps
1 Lecture 9 Lighting Light Sources Reflectance Camera Models.
Ray Tracing Jerry Sui Adam Conner. Part I – Introduction to Ray Tracing Final Product.
1 7M836 Animation & Rendering Global illumination, ray tracing Arjan Kok
Ray Tracing CS Nov. 19, Turner Whitted.
CS 376 Introduction to Computer Graphics 04 / 04 / 2007 Instructor: Michael Eckmann.
CSCE 641: Computer Graphics Ray Tracing Jinxiang Chai.
Course Website: Computer Graphics 16: Illumination.
CSC418 Computer Graphics n Raytracing n Shadows n Global 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.
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.
CS 376 Introduction to Computer Graphics 04 / 11 / 2007 Instructor: Michael Eckmann.
-Global Illumination Techniques
CS 376 Introduction to Computer Graphics 04 / 16 / 2007 Instructor: Michael Eckmann.
COLLEGE OF ENGINEERING UNIVERSITY OF PORTO COMPUTER GRAPHICS AND INTERFACES / GRAPHICS SYSTEMS JGB / AAS Global illumination algorithms Graphics.
Ray Tracing Chapter CAP4730: Computational Structures in Computer Graphics.
University of Texas at Austin CS384G - Computer Graphics Fall 2008 Don Fussell Ray Tracing.
Rendering Overview CSE 3541 Matt Boggus. Rendering Algorithmically generating a 2D image from 3D models Raster graphics.
Computer graphics & visualization Photon Mapping.
Global Illumination Models THE WHITTED IMAGE - BASIC RECURSIVE RAY TRACING Copyright © 1997 A. Watt and L. Cooper.
1 Ray-Tracing ©Anthony Steed Overview n Recursive Ray Tracing n Shadow Feelers n Snell’s Law for Refraction n When to stop!

04/30/02(c) 2002 University of Wisconsin Last Time Subdivision techniques for modeling We are now all done with modeling, the standard hardware pipeline.
Graphics Graphics Korea University cgvr.korea.ac.kr 1 Surface Rendering Methods 고려대학교 컴퓨터 그래픽스 연구실.
Ray-tracing.
Monte-Carlo Ray Tracing and
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
In the name of God Computer Graphics. Last Time Some techniques for modeling Today Global illumination and raytracing.
Photo-realistic Rendering and Global Illumination in Computer Graphics Spring 2012 Stochastic Path Tracing Algorithms K. H. Ko School of Mechatronics Gwangju.
1. Ray Casting Surface intersection Visible surface detection Ray Tracing Bounce the ray Collecting intensity Technique for global reflection and transmission.
CS 325 Introduction to Computer Graphics 04 / 07 / 2010 Instructor: Michael Eckmann.
CSL 859: Advanced Computer Graphics Dept of Computer Sc. & Engg. IIT Delhi.
CS552: Computer Graphics Lecture 33: Illumination and Shading.
11/29/01CS 559, Fall 2001 Today Photorealistic rendering Algorithms for producing high-quality images Ways of deciding which algorithm for use.
Computer Graphics: Programming, Problem Solving, and Visual Communication Steve Cunningham California State University Stanislaus and Grinnell College.
CS552: Computer Graphics Lecture 36: Ray Tracing.
Computer Graphics: Illumination
RAY TRACING.
(c) 2002 University of Wisconsin
GR2 Advanced Computer Graphics AGR
Illumination Model 고려대학교 컴퓨터 그래픽스 연구실.
Illumination Model 고려대학교 컴퓨터 그래픽스 연구실.
CSC418 Computer Graphics Raytracing Shadows Global Illumination.
Presentation transcript:

Course Website: Computer Graphics 18: Ray-tracing

2 of 50 Contents Today we will have a look at ray-tracing which can be used to generate extremely realistic images

3 of 50 Ray-Tracing Examples Images from the POVRAY Hall of Fame: hof.povray.orghof.povray.org

4 of 50 Ray-Tracing Examples (cont…) Images from the POVRAY Hall of Fame: hof.povray.orghof.povray.org

5 of 50 Ray-Tracing Examples (cont…) Images from the POVRAY Hall of Fame: hof.povray.orghof.povray.org

6 of 50 Ray-Tracing Examples (cont…) Images from the POVRAY Hall of Fame: hof.povray.orghof.povray.org

7 of 50 Ray-Tracing Examples (cont…) Images from the POVRAY Hall of Fame: hof.povray.orghof.povray.org

8 of 50 Ray-Tracing Setup Images taken from Hearn & Baker, “Computer Graphics with OpenGL” (2004)

9 of 50 Basic Ray-Tracing Ray tracing proceeds as follows: –Fire a single ray from each pixel position into the scene along the projection path –Determine which surfaces the ray intersects and order these by distance from the pixel –The nearest surface to the pixel is the visible surface for that pixel –Reflect a ray off the visible surface along the specular reflection angle –For transparent surfaces also send a ray through the surface in the refraction direction –Repeat the process for these secondary rays

10 of 50 Terminating Ray-Tracing We terminate a ray-tracing path when any one of the following conditions is satisfied: –The ray intersects no surfaces –The ray intersects a light source that is not a reflecting surface –A maximum allowable number of reflections have taken place

11 of 50 Ray-Tracing & Illumination Models At each surface intersection he illumination model is invoked to determine the surface intensity contribution Images taken from Hearn & Baker, “Computer Graphics with OpenGL” (2004)

12 of 50 The Shadow Ray The path from the intersection to the light source is known as the shadow ray If any object intersects the shadow ray between the surface and the light source then the surface is in shadow with respect to that source

13 of 50 Ray-Tracing & Transparent Surfaces For transparent surfaces we need to calculate a ray to represent the light refracted through the material The direction of the refracted ray is determined by the refractive index of the material Images taken from Hearn & Baker, “Computer Graphics with OpenGL” (2004)

14 of 50 Ray-Tracing Tree As the rays ricochet around the scene each intersected surface is added to a binary ray- tracing tree –The left branches in the tree are used to represent reflection paths –The right branches in the tree are used to represent transmission paths The tree’s nodes store the intensity at that surface The tree is used to keep track of all contributions to a given pixel

15 of 50 Ray-Tracing Tree Example S3S3 S4S4 S1S1 S2S2 Projection Reference Point

16 of 50 Ray-Tracing Tree Example (cont…) Images taken from Hearn & Baker, “Computer Graphics with OpenGL” (2004)

17 of 50 Ray-Tracing Tree (cont…) After the ray-tracing tree has been completed for a pixel the intensity contributions are accumulated We start at the terminal nodes (bottom) of the tree The surface intensity at each node is attenuated by the distance from the parent surface and added to the intensity of the parent surface The sum of the attenuated intensities at the root node is assigned to the pixel

18 of 50 Ray Tracing Demo There’s a very nice Java demo which allows us step through the ray-tracing process available at:

19 of 50 Summary

20 of 50

21 of 50

22 of 50 Images taken from Hearn & Baker, “Computer Graphics with OpenGL” (2004)