搜索资源列表
Picking
- 思路: 场景中的每个mesh关联到一个唯一的COLOR值。 Pick检测时, 将当前场景渲染到纹理, (在PS中各mesh仅用自己的关键COLOR),即刻取回当前鼠标的位置的COLOR, 查找COLOR就可以知道当前被Pick的Mesh。 使用Render To Texture 的快速Picking, 无需锁住Vertex Buffer进行三角面和射线的相交测试, 仅在读取数据的时候锁住纹理的一个相素, 但是显卡要支持Render To Texture,纹理尺寸必须支持非2的n次方,D3DF
showjs
- 立方体根据随着鼠标拖动方向转动,立方体原来位置不发生变化-With the mouse drag the cube according to the direction of rotation, the cube does not change the original position
project1
- 鼠标在平面内拾取一个位置,然后随机产生点序列,使得该点在平面内做不规则运动。-a parcle moving in a plane randomly
multipass_spotlight
- 此程序实现简单的为D3D在程序运行中通过鼠标位置来确定聚光灯的位置-This process simple for the D3D run by the mouse position to determine the location of the spotlight