J4 ›› 2006, Vol. 28 ›› Issue (1): 45-46.
• 论文 • 上一篇 下一篇
何健鹰 徐强华 游佳
出版日期:
发布日期:
Online:
Published:
摘要:
本文介绍了一种基于OpenGL的三维拾取方法,该方法可对三维地形图上的任意点进行拾取,并反馈拾取点的三维信息。在正交投影模型中,将整个图形划分成若干块均匀区域 ,先判断二维输入点落在哪块区域;然后再对选中的区域细化,判断输入点所选中的图元,并根据该图元的顶点信息求出二维输入设备所对应的第三维的值;最终返回该拾取 取点在物体坐标系下的真实三维坐标,从而实现图形交互功能。
关键词: OpenGL 三维拾取 三维地形 二维输入设备 三维坐标 图形交互
Abstract:
A picking method to any point in a 3-D relief map based on OpenGL is presented in this paper. In the orthoprojection model, the total relief map is di vided into many uniform fields. First, it is judged that the point made by a 2-D input device is included by which field in the 3 D relief map. Second, it filters rigorously each graphics unit in the selected field, in order to judge which graphics unit is exactly selected by the input point. Third, acc ording to the vertex value of the selected graphics unit, the third dimensional value, which is corresponding to the 2-D input device, is gained precise ly. Finally, the true 3-D coordinate of any selected point is fed back so as to realize the function of graphic alternation
Key words: OpenGL, 3-D picking ;3-D relief map, 2-D input device ;3-D coordinate;graphics alternation
何健鹰 徐强华 游佳. 基于OpenGL的一种三维拾取方法[J]. J4, 2006, 28(1): 45-46.
0 / / 推荐
导出引用管理器 EndNote|Ris|BibTeX
链接本文: http://joces.nudt.edu.cn/CN/
http://joces.nudt.edu.cn/CN/Y2006/V28/I1/45