3d 좌표를 2d로 바꾸는 법.
Posted by Go crazy for anything that will make you smile.
[출처] 3D 좌표 2D 좌표로 바꾸기 |작성자 하이요 //CONVERT_3DTO2D_POINT (함수) POINT CAppForm::CONVERT_3DTO2D_POINT ( const D3DVIEWPORT9& vp, const D3DXMATRIX& matView, const D3DXMATRIX& matProj, D3DXVECTOR3 v ) { D3DXMATRIXA16 matCombine = matView * matProj; D3DXVec3TransformCoord ( &v, &v, &matCombine ); v.x += 1.0f; v.y += 1.0f; v.x = ( vp.Width * (v.x ) ) / 2.0f + vp.X; v.y = ( vp.Height * (2.0f-v.y) ) / 2.0f +..