Ray TracingTurner WhittedPowerPoint PresentationNo BouncesOne BounceTwo BouncesSlide 7Reflection RayAdding an object: transparencySlide 10RefractionIndex of Refraction > 1Index of Refraction < 1Slide 14AlgorithmSlide 16SamplingRay Tracing DemosSampling DemoTexture & MaterialsSlide 21LinksSlide 23Ray TracingCS 351-50Nov. 19, 2003Turner WhittedNo BouncesOne BounceTwo BouncesReflection RayR = ( -I . N) N + I + (-I . N) N = I - 2 (I . N) NN -InR -I( -I . N) N-I - (-I . N) NR( -I . N) N-I + (-I . N) NI = incident ray = -dN = normal vectorR = reflected rayAdding an object: transparencyRefractionn sin = nt sin Index of Refraction > 1Index of Refraction < 1totalinternalreflectionAlgorithmTrace (ray){For each object in sceneintersect (ray, object)If no intersectionsreturn background_color For each lightfor each object in sceneintersect(shadowRay, object)Accumulate local illuminationTrace (ReflectionRay)Trace (TransmissionRay)Accumulate global illuminationReturn illumination}SamplingRay Tracing Demoshttp://www.siggraph.org/education/materials/HyperGraph/raytrace/rt_java/raytrace.htmlhttp://www.cs.berkeley.edu/~efros/java/tracer/tracer.htmlSampling DemoTexture &
View Full Document