Original Post
How can I get the position X,Y,Z of the camera if I have only the View matrix created with D3DXMatrixLookAtLH()?
D3DXVECTOR3 vPos;vPos.x = -matView._41;vPos.y = -matView._42;vPos.z = -matView._43;D3DXMatrixTranspose(&matView, &matView);D3DXVec3TransformNormal(&vPos, &vPos, &matView);Quote:
Original post by S1CA
Since view matrices are only made from rotations and translations, the matrix is orthogonal so you can avoid doing the full inverse...
Quote:
Original post by TheAdmiral
I'm sure you meant that the homogeneous part of them is orthogonal.
This topic has been locked by a moderator. New replies are not allowed.
GameDev.net uses cookies to ensure you have the best experience on our platform. Learn more