I'm to draw 32x32 sprite buttons onto my 800x600 screen in my 3D world except they won't show up. I've been told that it has something to do with your camera views.
Right now my view matrix is:
float x = mCameraRadius * cosf(mCameraRotationY);
float z = mCameraRadius * sinf(mCameraRotationY);
D3DXVECTOR3 pos(x, mCameraHeight, z);
D3DXVECTOR3 target(0.0f, 0.0f, 0.0f);
D3DXVECTOR3 up(0.0f, 1.0f, 0.0f);
D3DXMatrixLookAtLH(&mView, &pos, &target, &up);
And my projection matrix is:
RECT R;
GetClientRect(mhMainWnd, &R);
float w = (float)R.right;
float h = (float)R.bottom;
D3DXMatrixPerspectiveFovLH(&mProj, D3DX_PI * 0.25f, w/h, 1.0f, 5000.0f);
HR(gd3dDevice->SetTransform(D3DTS_PROJECTION, &mProj));
When I set up the sprites and set them to a 0,0,0 coordinate system they don't show up. Any thoughts?