Jump to content
  • Advertisement
Sign in to follow this  

Direction in Matrix

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

hi, D3DXMatrixTranslation(m,0,0,0) : D3DXMatrixTranslation(m,0,0,1) : (also my camera's position is x=-2,3 y=1,3 z=-4) so in Direct3D Space (plus)z is forward depth(for camera) when i get the matris(of head in the picture) : first scene matris : _11:1,0000 _12:0,0000 _13:0,0000 _14:0,0000 _21:0,0000 _22:1,0000 _23:0,0000 _24:0,0000 _31:0,0000 _32:0,0000 _33:1,0000 _34:0,0000 _41:0,0000 _42:0,0000 _43:0,0000 _44:1,0000 why _33(Direction) is 1,0000 it has to be -1,0000 because in Direct3D Space (plus)y is up and _22(Up vector) is 1 not -1 i hope i can tel you my problem (my english is poor a little bit)

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.

GameDev.net 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!