Download
ray tracing n.
Skip this Video
Loading SlideShow in 5 Seconds..
Ray Tracing PowerPoint Presentation
Download Presentation
Ray Tracing

Ray Tracing

152 Vues Download Presentation
Télécharger la présentation

Ray Tracing

- - - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript

  1. Ray Tracing CS 351-50 Nov. 19, 2003

  2. Turner Whitted

  3. No Bounces

  4. One Bounce

  5. Two Bounces

  6. Reflection Ray n I = incident ray = -d N = normal vector R = reflected ray R -I q q ( -I . N) N ( -I . N) N N -I + (-I . N) N -I - (-I . N) N R -I q q R = ( -I . N) N + I + (-I . N) N = I - 2 (I . N) N

  7. Adding an object: transparency

  8. Refraction n sin q = nt sin f

  9. Index of Refraction > 1

  10. Index of Refraction < 1 total internal reflection

  11. Trace (ray){ For each object in scene intersect (ray, object) If no intersections return background_color For each light for each object in scene intersect(shadowRay, object) Accumulate local illumination Trace (ReflectionRay) Trace (TransmissionRay) Accumulate global illumination Return illumination } Algorithm

  12. Sampling

  13. Ray Tracing Demos http://www.siggraph.org/education/materials/HyperGraph/raytrace/rt_java/raytrace.html http://www.cs.berkeley.edu/~efros/java/tracer/tracer.html

  14. Sampling Demo

  15. Texture & Materials

  16. http://www.acm.org/tog/GraphicsGems/ Links