<div dir="ltr">Hi,<br><br>some remarks<br><br>+&nbsp;&nbsp;&nbsp; if (((*poutscale).x==0)||((*poutscale).y==0)||((*poutscale).z==0)) should be<br>+&nbsp;&nbsp;&nbsp; if ((poutscale-&gt;x==0)||(poutscale-&gt;y==0)||(poutscale-&gt;z==0))<br><br>No need to redefine a module fonction<br>
Replace&nbsp; +&nbsp;&nbsp;&nbsp; poutscale-&gt;x=module(pM-&gt;m[0][0],pM-&gt;m[0][1],pM-&gt;m[0][2]);<br>by <br>+&nbsp;&nbsp;&nbsp; poutscale-&gt;x=D3DXVec3Length(&amp;D3DXVECTOR3((pM-&gt;m[0][0],pM-&gt;m[0][1],pM-&gt;m[0][2]));<br><br>David<br><br><br><div class="gmail_quote">
2008/8/5 Luis Busquets <span dir="ltr">&lt;<a href="mailto:luis.busquets@ilidium.com">luis.busquets@ilidium.com</a>&gt;</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>
&nbsp;dlls/d3dx9_36/d3dx9_36.spec | &nbsp; &nbsp;2 +-<br>
&nbsp;dlls/d3dx9_36/math.c &nbsp; &nbsp; &nbsp; &nbsp;| &nbsp; 39 ++++++++++++++++++++++++++<br>
&nbsp;dlls/d3dx9_36/tests/math.c &nbsp;| &nbsp; 64 +++++++++++++++++++++++++++++++++++++++++++<br>
&nbsp;include/d3dx9math.h &nbsp; &nbsp; &nbsp; &nbsp; | &nbsp; &nbsp;1 +<br>
&nbsp;4 files changed, 105 insertions(+), 1 deletions(-)<br>
<br><br>
<br></blockquote></div><br></div>