boromisp
ed12134f34
Fixed the original ray-sphere intersection
...
Changed the original analytic method to a geometrical.
The errors in the original intersection calculation:
The function has a sphere center parameter, but ignores it and assumes
that the sphere is in the origo.
It calculates the length of the ray direction vector, but later on uses
this vector as a unit vector.
The position calculation is simply wrong. It multiplies the direction
vector with the radius of the sphere instead of the calculated
intersection distance.
The quadratic equation solving could be improved too:
There should be an early exit for negative discriminant.
The naive implementation sould be changed to a floating-point
specialized one.
2012-11-11 23:41:11 +01:00
..
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2012-04-30 22:23:08 +01:00
2012-04-30 22:23:08 +01:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2012-01-11 17:37:44 +00:00
2012-11-11 23:41:11 +01:00
2012-11-11 23:41:11 +01:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2010-04-29 11:54:07 +01:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2012-04-01 18:19:09 +01:00
2012-04-01 18:19:09 +01:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2012-02-19 22:43:40 +00:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2011-12-07 14:50:15 +00:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2012-04-14 14:45:27 +01:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2010-04-29 11:56:52 +01:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00
2012-01-09 11:20:01 +00:00