Sign in to follow this  

d3dx9math problem, how can its possible ?

This topic is 1954 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

[source lang="cpp"] D3DXMATRIXA16 matWorld;
D3DXMatrixTranslation( &matWorld, -89.0f, 0.0f, -132.0f );[/source]
Im calling that code with 2 project one result is : http://prntscr.com/f7nie
and another project result is : http://prntscr.com/f7nkt

how can its possible , first result wrong i think. anybody can explain it for me ?

-Thanks

Share this post


Link to post
Share on other sites
Perhaps the other project is debug release / has debug information included and another one has not?

Please check your project compilation parameters.

Cheers! Edited by kauna

Share this post


Link to post
Share on other sites
hello. wheres your break point is it before the call to D3DXMatrixTranslation or after, but I think it only works on a D3DXMATRIX not D3DXMATRIXA16

Share this post


Link to post
Share on other sites
Yes, it looks strange [img]http://public.gamedev.net//public/style_emoticons/default/smile.png[/img]
Have you installed Service Pack for your Visual Studio?
Please, consider using XNAMath/DirectXMath v 2.4, 2.5 or 3.0.
These samples should work with D3DXMATRIXA16. Both parameters are pointers to D3DXMATRIX.

Another thing, maybe something writes to your matrix because of a bad pointer, matrix is destroyed or something similar. Edited by kubera

Share this post


Link to post
Share on other sites
If you don't initialise a variable in C++ it will show you values that are currently available in that particular memory locations in release mode. Also for us to be helpful please mention to use where the breakpoint is in the screenshots you show.

The only real difference between D3DXMATRIXA16 inherits from D3DXMATRIX, and adds no variables but adds allocation alignment.

Share this post


Link to post
Share on other sites
Hello,

Thanks for answers. I solve it, its about release/debug. when with release result is http://prntscr.com/f7nkt and with debug http://prntscr.com/f7nie

Sorry for delay

Share this post


Link to post
Share on other sites
Sign in to follow this