Ray-Sphere intersection
Is there any Ray sphere interestion code in OpenGL. I really need to understand that program so I am looking for it but can't find it. This seems to be popular problem but I can only find the formula and basic principle not any example.
http://wiki.cgsociety.org/index.php/Ray_Sphere_Intersection


I have no idea how to go about it. This is what I got: http://www.sendspace.com/file/8gb6fj

Has anyone of you done it or know for some source where I can get the program ?

  
Ray-Sphere intersection
===

Is there any Ray sphere interestion code in OpenGL. I really need to understand that program so I am looking for it but can't find it. This seems to be popular problem but I can only find the formula and basic principle not any example.
http://wiki.cgsociety.org/index.php/Ray_Sphere_Intersection


I have no idea how to go about it. This is what I got: http://www.sendspace.com/file/8gb6fj

Has anyone of you done it or know for some source where I can get the program ?

  