主题:请问DirectX的世界变换、观察变换、投影变换的区别
概念上有点模糊,不能实际运用,最好以一个例子给与帮助理解,世界变换、观察变换、投影变换的作用分别是什么?
D3DXMatrixPerspectiveFovLH(&matProj, D3DX_PI/4, 1.0f, 1.0f, 1000.0f);
g_pD3DDevice->SetTransform(D3DTS_PROJECTION, &matProj);
D3DXMatrixLookAtLH(&matView, &D3DXVECTOR3(0.0f,0.0f,-500.0f), &D3DXVECTOR3(0.0f,0.0f,0.0f), &D3DXVECTOR3(0.0f, 1.0f, 0.0f));
g_pD3DDevice->SetTransform(D3DTS_VIEW, &matView);
g_pD3DDevice->SetTransform(D3DTS_WORLD, &matWorld);
这之间的作用分别是什么
D3DXMatrixPerspectiveFovLH(&matProj, D3DX_PI/4, 1.0f, 1.0f, 1000.0f);
g_pD3DDevice->SetTransform(D3DTS_PROJECTION, &matProj);
D3DXMatrixLookAtLH(&matView, &D3DXVECTOR3(0.0f,0.0f,-500.0f), &D3DXVECTOR3(0.0f,0.0f,0.0f), &D3DXVECTOR3(0.0f, 1.0f, 0.0f));
g_pD3DDevice->SetTransform(D3DTS_VIEW, &matView);
g_pD3DDevice->SetTransform(D3DTS_WORLD, &matWorld);
这之间的作用分别是什么