<div dir="ltr">Hi,<br><br>some remarks<br><br>+ if (((*poutscale).x==0)||((*poutscale).y==0)||((*poutscale).z==0)) should be<br>+ if ((poutscale->x==0)||(poutscale->y==0)||(poutscale->z==0))<br><br>No need to redefine a module fonction<br>
Replace + poutscale->x=module(pM->m[0][0],pM->m[0][1],pM->m[0][2]);<br>by <br>+ poutscale->x=D3DXVec3Length(&D3DXVECTOR3((pM->m[0][0],pM->m[0][1],pM->m[0][2]));<br><br>David<br><br><br><div class="gmail_quote">
2008/8/5 Luis Busquets <span dir="ltr"><<a href="mailto:luis.busquets@ilidium.com">luis.busquets@ilidium.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Please be aware that this function relies on D3DXQuaternionRotationMatrix and therefore the bug in the latter has to be corrected.<br>
<br>
---<br>
dlls/d3dx9_36/d3dx9_36.spec | 2 +-<br>
dlls/d3dx9_36/math.c | 39 ++++++++++++++++++++++++++<br>
dlls/d3dx9_36/tests/math.c | 64 +++++++++++++++++++++++++++++++++++++++++++<br>
include/d3dx9math.h | 1 +<br>
4 files changed, 105 insertions(+), 1 deletions(-)<br>
<br><br>
<br></blockquote></div><br></div>