Re: d3dx8: patch1: Implement D3DXBoxBoundProbe

2008-07-28 Thread H. Verbeet
2008/7/28 H. Verbeet <[EMAIL PROTECTED]>: > 2008/7/27 David Adam <[EMAIL PROTECTED]>: >> + ortho = D3DXVec3Dot(praydirection, &normal[i]); >> + if ( ortho ) >> + { >> + t = D3DXVec3Dot(praydirection, &normal[i]) / ortho; > This doesn't make much sense, t will always be close to zer

Re: d3dx8: patch1: Implement D3DXBoxBoundProbe

2008-07-28 Thread H. Verbeet
2008/7/27 David Adam <[EMAIL PROTECTED]>: > + ortho = D3DXVec3Dot(praydirection, &normal[i]); > + if ( ortho ) > + { > + t = D3DXVec3Dot(praydirection, &normal[i]) / ortho; This doesn't make much sense, t will always be close to zero this way. > +rayposition.x = -3.0f; rayposi