danielepanozzo / cg-old

44 stars 16 forks source link

[Assignment 1] Are we supposed to plug the solution back into the ray function p(t) = e + td to find the plot of the intersection point? #74

Closed LihengGong closed 5 years ago

LihengGong commented 5 years ago

For line-sphere intersection, after we solve the quadratic equation, since the solution is only a scalar, are we supposed to plug the scalar solution back into the ray function p(t) = e + td to find the plot(i.e. x, y, z) of the intersection point?

hankstag commented 5 years ago

yes, if you plug the solution back, you will get the position of the intersection point