|
|
发表于 2004-11-27 20:48:00
|
显示全部楼层
Re:关于视场张角的问题。d3d入门问题。
D3DXMATRIX matProj;
D3DXMatrixPerspectiveFovLH( &matProj, D3DX_PI/4,1.0f,1.0f,100.0f );
g_pd3dDevice->SetTransform( D3DTS_PROJECTION, &matProj );
The first step is to call D3DXMatrixPerspectiveFovLH to set up the projection matrix. The first parameter is a pointer to a D3DXMATRIX structure that is the result of the operation. The second parameter defines the field of view, which tells how objects in the distance get smaller. A typical field of view is 1/4 pi, which is what the sample uses.
——别的我不行,引经据典还是可以的。 |
|