DOC PREVIEW
NU EECS 351 - Ray Tracing

This preview shows page 1-2 out of 6 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 6 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 6 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 6 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

1Ray TracingCS 351-50Turner WhittedNo Bounces2One 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 ray3Adding an object: transparencyRefractionn sin θ = nt sin φIndex of Refraction > 14Index of Refraction < 1totalinternalreflectionAlgorithmTrace (ray){For each object in sceneintersect (ray, object)If no intersectionsreturn background_colorColor = c_a * c_r (Ambient * reflected diffuse color of surface)For each lightfor each object in sceneintersect(shadowRay, object)Accumulate local illuminationTrace (ReflectionRay)Trace (TransmissionRay)Accumulate global illuminationReturn illumination}5SamplingRay Tracing Demoshttp://www.siggraph.org/education/materials/HyperGraph/raytrace/rt_java/raytrace.htmlhttp://www.cs.berkeley.edu/~efros/java/tracer/tracer.htmlSampling DemoTexture & Materials6Links•


View Full Document

NU EECS 351 - Ray Tracing

Download Ray Tracing
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Ray Tracing and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Ray Tracing 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?