Location:
Search - MatVIEW
Search list
Description:
//建立并设置世界矩阵
D3DXMATRIX matWorld
D3DXMatrixIdentity( &matWorld )
g_pd3dDevice->SetTransform( D3DTS_WORLD, &matWorld )
//建立并设置观察矩阵
D3DXVECTOR3 vEyePt( 0.0f, 3.0f,-5.0f )
D3DXVECTOR3 vLookatPt( 0.0f, 0.0f, 0.0f )
D3DXVECTOR3 vUpVec( 0.0f, 1.0f, 0.0f )
D3DXMATRIX matView
D3DXMatrixLookAtLH( &matView, &vEyePt, &vLookatPt, &vUpVec )
g_pd3dDevice->SetTransform( D3DTS_VIEW, &matView )
//建立并设置投影矩阵
D3DXMATRIX matProj
D3DXMatrixPerspectiveFovLH( &matProj, D3DX_PI/4, 1.0f, 1.0f, 100.0f )
g_pd3dDevice->SetTransform( D3DTS_PROJECTION, &matProj ) -//Create and set the world matrix D3DXMATRIX matWorld D3DXMatrixIdentity (
Platform: |
Size: 498688 |
Author: yourname |
Hits:
Description: 三维表面图形控件是建立在OpenGL基础上的控件,给定zij=f(xi,yj)离散数据,可以绘制三维表面图形。三维图形的表面可以使用不同的颜色、光照、纹理,也可以控制其绕x、y、z轴旋转,还可以通过随时间而改变控件中的数据,制作随时间变化的动态图形。三维表面图形控件包含的文件有:matview45.ocx,gl3d20.dll,CqmImg32.dll,Visdp32.dll。-Three-dimensional surface graphics control is built on the OpenGL-based controls, given zij = f (xi, yj) discrete data, you can draw three-dimensional surface graphics. The surface of three-dimensional graphics can use different colors, light, texture, you can control its around the x, y, z-axis rotation, can also change over time in control of the data, the production of time-varying dynamic graphics. Three-dimensional surface of graphical controls contained in the documents: matview45.ocx, gl3d20.dll, CqmImg32.dll, Visdp32.dll.
Platform: |
Size: 189440 |
Author: ltg |
Hits: