• Advertisement

Archived

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

Simple Directx Question

This topic is 6024 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 have a problem that I can''t figure out how to solve. I am drawing a square using a vertex buffer. But, when I go to render my scene, the only way I can see the square is if I include the following: D3DXMatrixRotationY(&matWorld, timeGetTime()/300.0f); Obviouslly that will rotate my square, but I don''t want it to rotate! How can I just make my square appear? Here is the code: D3DXMATRIX matWorld; D3DXMatrixRotationY(&matWorld, timeGetTime()/300.0f); gpDevice->SetTransform( D3DTS_WORLD, &matWorld); Thanks, Chris Lynch

Share this post


Link to post
Share on other sites
Advertisement

I think that you haven´t set a world matrix.

Try D3DXSetIdentity()? (build an identity matrix) instead of D3DXMatrixRotationY().Then Set the identity matrix.


What the hells!

Share this post


Link to post
Share on other sites

  • Advertisement