






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
The raytracing techniques for intersecting rays with cubes, convex polyhedra, and meshes. It covers the candidate interval concept, testing against planes, and implementation details. The document also provides references to the textbook for further reading.
Typology: Slides
1 / 12
This page cannot be seen from the preview
Don't miss anything!







Computer Graphics Raytracing (Part 5)
n Define Candidate Interval (CI) as time interval during which edge might still be inside CVV. i.e. CI = t_in to t_out
n Conversely: values of t outside CI = edge is outside CVV
n Previously used CI initialized to [0,1], now can exceed this range
n Initialize CI to (-infinity, infinity)
Example to illustrate search for t_in, t_out
Note: CVV is different shape. This is just example
n numer > 0, wholly inside n numer < 0, wholly outside
n Implementation for cube function is nicely laid out in figure 14.23 of text. Please read it..
n We’ve seen enough hit functions to last you a life time
n Read on your own..
n For convex polyhedra, instead of 6 faces for cube, store i faces
n Find normal to face i, mi and hit point Bi. Use loop then as
… continue same as cube
}
n We can then extend method to develop hit function for a mesh
n Retrieve normal of mesh and vertex 0
n Read mesh intersection part from book (1/2 page)
… continue same as cube
}