Advertisement Jump to content
Sign in to follow this  

how to initialize D3DMAXTRIX?

This topic is 4987 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
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:

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, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!