Lecture 24:

Real-Time Rendering (2nd Edition)

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
1 Pradeep Sen Class 24 – April 23, 2007 ECE 595 / CS 491 / CS 591 Real-Time Rendering & Graphics Hardware Pradeep Sen Advanced Graphics Lab Class 24 April 23, 2007 Pradeep Sen Class 24 – April 23, 2007 Announcements ± Hope that you have started the final project! ± Won’t be in for office hours tomorrow ± Next week, Joe Kniss was supposed to give lectures but he has a family emergency. He won’t be here so class is cancelled (work on your project) ± GFX Café this week: Ken Perlin Pradeep Sen Class 24 – April 23, 2007 Last time ± GPGPU Pradeep Sen Class 24 – April 23, 2007 Today ± Real time ray tracing ± Course evaluations Pradeep Sen Class 24 – April 23, 2007 What is ray tracing? ± Rendering algorithm developed by Turner Whitted ± T. Whitted, “An Improved Illumination Model for Shaded Display.” Communications of the ACM 1980 Pradeep Sen Class 24 – April 23, 2007 Basic idea ± Send “rays” out from the eye (a ray is specified by a origin and a direction) ± One or more rays are sent out per pixel ± Intersect the ray with the scene geometry ± If ray intersects, then compute shaded value at that surface (send shadow ray to test shadow) ± If surface is reflective, compute reflection ray and repeat ± If surface is refractive, compute refracive ray and repeat Pradeep Sen Class 24 – April 23, 2007 Basic idea occluder P R dif use object S S T T R dif use object S S Pradeep Sen Class 24 – April 23, 2007 Ray tracing algorithm Color castRay(Ray r) { if (intersectRayWithGeometry(r, &i) { // i is the first intersection shadeSurface(r, i); if (r->depth < MAX_DEPTH) { // send reflection ray if (i->primitive->reflective) { r_refl = computeReflectionRay(r, i); refl_color = castRay(r_refl); } // send refraction ray if (i->primitive->refractive) { r_refr = computeRefractionRay(r, i); refr_color = castRay(r_refr);
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 5

Lecture 24: - Announcements ECE 595 / CS 491 / CS 591 Last...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online