1 / 23

Ray Tracing

Ray Tracing. CS 351-50 Nov. 19, 2003. Turner Whitted. No Bounces. One Bounce. Two Bounces. 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.

joey
Download Presentation

Ray Tracing

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

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

More Related