Re: [Plib-devel] Sphere intersection tests, and ssgaSpheres.
Brought to you by:
sjbaker
From: Bram S. <br...@sa...> - 2005-02-05 13:58:51
|
On 02/02/05 15:15:36, Bram Stolk wrote: > I need to scale the ssgaSphere to a very strange size before I > get results which are visually roughly correct. Ah... I found the problem in my test program. When using this ssg func: int ssgIsect ( ssgBranch *root, sgSphere*s,sgMat4 m, ssgHit =20 **results ) ; the relative position of intersector and intersectee can be in either the inverse mat for the root, or in the 'center' member data of the sphere. I had put the sphere pos both in the inverse-math *and* in the sphere itself -> incorrect results. bram |