GPU三维图元拾取张嘉华.pdfVIP

  • 10
  • 0
  • 约1.97万字
  • 约 7页
  • 2019-03-04 发布于江苏
  • 举报
2009 年 工 程 图 学 学 报 2009 第 1 期 JOURNAL OF ENGINEERING GRAPHICS No.1 GPU 三维图元拾取 张嘉华, 梁 成, 李桂清 (华南理工大学计算机科学与工程学院,广东广州 510640 ) 摘 要:探讨了两种在 GPU 上实现三维图元拾取的方法。第一种方法与场景几何 无关,通过将坐标信息和对象面片指针绘制到一张 Render Target 型浮点纹理实现三维对象 拾取。第二种方法是场景几何依赖的,对逆变换到世界空间的拾取射线与各个几何图元在 Geometry Shader 下逐一求交。上述方法经过实验能够在约半帧时间内拾取几何图元的指针 信息和坐标信息,达到与屏幕像素大小同等的精确度。 关 键 词:计算机应用;三维交互;图元拾取;GPU 中图分类号:TP 391.41 文献标识码:A 文 章 编 号:1003-0158(2009)01-0046-07 3D Primitive Picking on GPU ZHANG Jia-hua, LIANG Cheng, LI Gui-qing ( College of Computer Science and Engineering, South China University of Technology, Guangzhou Guangdong 510640, China ) Abstract: Two novel 3D picking approaches implemented based on GPU are investigated .The first one is scene geometry independent, and it picks a 3D primitive by rendering the position information and point information of geometry primitives to a render target floating texture .The second one is scene geometry dependent, and it calculates the picking ray by inverting the transforms from the world space to the projection space ,and then intersects each primitive with the ray using a geometry shader. Both approaches can pick the position and point of a primitive within half frame time on GPU. Especially, the first one can achieve pixel precision. Key words: computer application; 3D interaction; primitive picking; GPU 拾取技术在计算机应用选取对象过程中经 片) 。与二维拾取不一样的是,三维空间中的拾取 常用到,如拾取屏幕上一个目标或区域。对于三 并不能简单地根据鼠标位置判断

文档评论(0)

1亿VIP精品文档

相关文档