Jump to content
  • Advertisement


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


Can someone explain D3DMATRIX to me?

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

OK I have a D3DMATRIX: D3DMATRIX spinmat; spinmat = { 11 21 31 41 12 22 32 42 13 23 33 43 14 24 34 44 } (Pseudo code for my example) ok I then make it an identy matrix by: 11 = 22 = 33 = 44 = 1.0f; And then to setup the matrx to spin by setting this: 11=cos(ftimekey) 33=cos(ftimekey) 13=sin(ftimekey) 31=sin(ftimekey) My question is why do I set 11,33,13,31 different. Why those vaules? Why does this cause my triangle to spin? Thanks for any info. I'm using the DX7 sdk doc tutorials (Triangle) for study.. if anyone can shed any light on any of this please let me know. Thanks again, Chris Edited by - Viri- on April 27, 2001 12:14:10 PM

Share this post

Link to post
Share on other sites

  • 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!