Docsity

Ray Tracing - Computer Graphics - Quiz, Exercises of Computer Graphics

Toggle sidebar
bg1
6.837 Introduction to Computer Graphics
Quiz 1: Ray Tracing
Tuesday October 7, 2003 2:40-4pm
One hand-written sheet allowed
Total i s 50 p oint s
Name:
1 Ray Tracing [ /14]
1.1 Complexity [ /3]
We want to render a scene of N objects with one single light source onto an image of M pixels (the
√√
image resolution is M∗ M). Any object can be reflective and refractive, but we enforce a maximum
recursion depth of K.
What is the worst-case complexity of ray tracing for the total image?
1.2 Light sources [ /2]
How is this complexity changed when we have L light sources?
1.3 Forward ray tracing [ /3]
Give a 1-to-2-sentence explanation of why forward ray tracing is not directly practical.
1
pf3
pf4
pf5

Partial preview of the text

Download Ray Tracing - Computer Graphics - Quiz and more Exercises Computer Graphics in PDF only on Docsity!

6.837 Introduction to Computer Graphics Quiz 1: Ray Tracing Tuesday October 7, 2003 2:40-4pm One hand-written sheet allowed Total is 50 points

Name:

1 Ray Tracing [ /14]

1.1 Complexity [ /3]

We want to render a scene of√ √ N objects with one single light source onto an image of M pixels (the image resolution is M ∗ M ). Any object can be reflective and refractive, but we enforce a maximum recursion depth of K. What is the worst-case complexity of ray tracing for the total image?

1.2 Light sources [ /2]

How is this complexity changed when we have L light sources?

1.3 Forward ray tracing [ /3]

Give a 1-to-2-sentence explanation of why forward ray tracing is not directly practical.

1.4 What is the bug that caused the artifacts in this image? [ /3]

1.5 Which sphere has the bigger index of refraction? [ /3]

4 Ray-Cylinder Intersection [ /22]

y

x

z

r

D R

4.1 Implicit cylinder [ /2]

Give the implicit equation for an infinite cylinder centered on the z axis and with radius r.

4.2 Explicit ray [ /2]

Give the explicit (parametric) equation for a ray with origin R and direction D.

4.3 Ray-cylinder intersection equation [ /4]

Write the quadratic equation for the intersection of a ray with an infinite cylinder centered on the z axis. Solve your equation for t.

4.4 Ray-cylinder intersection pseudo code [ /8]

Using the result from the previous question, write the pseudocode for the intersection method bool Cylinder::intersect(const Ray &r, Hit &h, float tmin); Don’t forget to compute the surface normal, but don’t worry about the material.