When I change the pitch and yaw of my camera, my object gets stretched as it approaches the edges of my window.
D3DXMATRIX T,YPR;;
D3DXMatrixRotationYawPitchRoll(&YPR, Yaw, Pitch, Roll);
D3DXMatrixTranslation(&T, 0.0f, 0.0f, 0.0f);
D3DXMATRIX View = T* YPR;
pD3DDevice->SetTransform(D3DTS_VIEW, &View);
D3DXMATRIX Proj;
D3DXMatrixPerspectiveFovLH(&Proj, D3DX_PI * 0.5f ,(float)cxClient/ cyClient,
1.0f, 1000.0f);
pD3DDevice->SetTransform(D3DTS_PROJECTION, &Proj);
I'm sure it's something very obvious, but I've only been programming DX for a few days.
Thanks in advance
Derek