03/26/2002
15-462 Graphics I
13
Ray-Sphere Intersection I
•Common and easy case
•Define sphere by
–Center c = [xc  yc  zc  1]T
–Radius r
–Surface f(q) = (x – xc)2 + (y – yc)2+ (z – zc)2 – r2 = 0
•Plug in ray equations for x, y, z: