Archived

This topic is now archived and is closed to further replies.

Guest Anonymous Poster

Setting projection matrix in D3D crashes 50% of computers

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

Guest Anonymous Poster
Hi.

I'm preparing a demo to add to my website. It uses D3DIM. It runs perfectly on both of my systems, but crashes misserably on about half of the other systems that I've tested it on. The crash occurs at the SetTransform call in the following code:

> // - PREPARE THE PROJETION MATRIX -
>
> D3DMATRIX Projection;
>
> MatrixIdentity(&Projection);
>
> Projection.m[2][3] = 1;
> Projection.m[3][2] = -0.01;
> Projection.m[3][3] = 0.0;
>
> d3dDevice->SetTransform(D3DTRANSFORMSTATE_PROJECTION, &Projection);

SetTransform crashes internally, and doesn't come back with a return value.

d3dDevice has been set up successfully in order for the code to reach this point, but I suppose there may be something wrong before execution gets to SetTransform.

If anyone has had similar problems, or can help me out, I'd greatly appreciate it.

Thank you.

personal.pitnet.net/ivpresents ... the demo will be here soon (by this weekend hopefully).

Share this post


Link to post
Share on other sites
hmmm, i think you may be sending a weird projection matrix. i've never had the problem, but you could try to instead use D3DUtil_SetProjectionMatrix function in d3dutil.cpp from directx sdk.

Share this post


Link to post
Share on other sites