Skip to main content
gamedev.net
🔒 Locked

world matrix problem

Started by zip7000 0 replies 650+ views
Original Post
zip7000
zip7000
hi, I use the program which creates a red triangle under directx9. I would like to modify the world matrix. So I change
  
// 1 -Init

    D3DXMATRIX matIdentity;
    D3DXMatrixIdentity( &matIdentity );

m_pd3dDevice->SetTransform( D3DTS_WORLD,  &matIdentity );
  
by
  
D3DXMATRIX matWorld;
D3DXMatrixIdentity( &matWorld );

matWorld._41 = -2.0f;
matWorld._42 = 3.0f;
matWorld._43 = 0.0f;

m_pd3dDevice->SetTransform( D3DTS_WORLD,  &matWorld );
  
but I can''t see a translation. any idea? thank you for your help!!!
zip7000
zip7000
I found!!!!!

I put the source in the wrong function!!!!

sorry

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.