Jump to content
  • Advertisement
Sign in to follow this  
derek7

how to initialize D3DMAXTRIX?

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

Advertisement
Guest Anonymous Poster
depends on what you want to do with it.

a zero transform/rotation matrix (ie. the identity matrix), then you'd use the IdentityMatrix function which will make the matrix look like:
1000
0100
0010
0001

Share this post


Link to post
Share on other sites
Hi there Derek7, first you have to look at what each function does...


ZeroMemory: the ZeroMemory macro fills a block of memory with zeros.
D3DXMatrixIdentity : Creates an identity matrix.
The identity matrix is a matrix in which all coefficients are 0 except the [1,1][2,2][3,3][4,4] coefficients, which are set to 1.

So now you can derive from each of these what you need.
I would suggest following the norm which is:
The identity matrix is used as the starting point for matrices that will modify vertex values to create rotations, translations, and any other transformations that can be represented by a 4 ×4 matrix.

So the IdentityMatrix is what you seek.

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!