Jump to content
  • Advertisement
Sign in to follow this  

XMMatrixMultiply exception

This topic is 2341 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


I'm getting an exception when this third statement is executed, I knew this since I was tracing the code using the breakpoints..

XMMATRIX view=XMMatrixIdentity();
XMMATRIX projection=XMMatrixOrthographicOffCenterLH(0.0f,screenWidth,0.0f,screenHeight,0.1f,100.0f);
vpMatrix=XMMatrixMultiply(view, projection);

this (vpMatrix=XMMatrixMultiply(view, projection);) is causing the exception, why? and how can I fix this?

I have Win7 32-bit..

Share this post

Link to post
Share on other sites
A little hint, I traced the code more and found that the multiplication of the view and projection matrices is going right, the only error is happening when assigning the result
to the (vpMatrix), the part of code traced in withing XNA MATH files and this is it..

r[0] = M.r[0];
r[1] = M.r[1];
r[2] = M.r[2];
r[3] = M.r[3];
return *this;

The exception is happening here (r[0] = M.r[0];)

Share this post

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

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!