SLIDE 1
1
Ray Tracing: Intersection
Computer Graphics as Virtual Photography
camera (captures light) synthetic image camera model (focuses simulated lighting)
processing
photo processing tone reproduction real scene 3D models Photography: Computer Graphics: Photographic print
Ray Tracing: Intersection
- We only talked about ray intersection with spheres
and planes
- What about?
– Boxes – Cylinders – Cones – Triangles – Spline surfaces – Irregular shapes
Ray Tracing - Object - Ray Intersection
- For each ray, intersection test needs to be
made for each object
– This could costly if you have many
- bjects…consider if object has n polygons, n
very large! – Solutions
- Adaptive Depth Control
- Bounding Volume
- Spatial Subdivision
Ray Tracing – Adaptive Depth Control
- Indices of diffuse/reflection/refraction get
multiplied together as the ray tracer recurses
- Depending on material properties, this
attenuation can get very small
- Keep running product and stop when below
a threshold
Ray Tracing - Bounding Volumes
- Place simple objects (i.e., sphere or box)
around complex objects
– Suitability depends on object being enclosed!
- Do initial intersection tests on bounding
- bjects.
- If ray intersects bounding volume, then test
complex bounded object
- Can be nested