PDA

View Full Version : Extracting info from a max camera?


lucky6969c
10-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

CGTalk Moderation
10-12-2009, 11:24 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.