Notifications
Clear all
[Closed] Extracting info from a max camera?
Oct 12, 2009 11:24 am
All I know is to do something like this
aNode->GetObjectTM(ip->GetTime());
and save it away.
then decompose them into eye, up and lookat in the game
But if what I hold is a matrix,
in directX, is is possible to convert them into eye, up and lookat?
How?
D3DXMatrixLookAtLH(&matView,
&D3DXVECTOR3(0.0f, 200.0f, -2000.0f),
&D3DXVECTOR3(0.0f, 0.0f, 0.0f),
&D3DXVECTOR3(0.0f, 1.0f, 0.0f));
g_pD3DDevice->SetTransform(D3DTS_VIEW, &matView);
Thanks
Jack