Original Post
im trying to find the screen position of a vertex im using the following code
D3DXMATRIX matView;
D3DXMATRIX matProj;
D3DXMATRIX matRes;
D3DXMatrixLookAtLH(&matView,&camera.from,&camera.to,&camera.up);
D3DXMatrixPerspectiveFovLH(&matProj,1.0f, 1.0f,0.10f, 100.0f);
D3DXMatrixMultiply(&matRes,&matView,&matProj);
D3DXVec3TransformCoord(&result,&VVerts.pos,&matRes);
posx=(int)result.x;
posy=(int)result.y;
dosnt seem to work. if the vert is on the screen it returns 0,0 any help would be cool