液晶与显示, 2016, 31 (7): 708, 网络出版: 2016-08-29   

基于OpenGL的三维模型点坐标拾取方法

Point pick-up in three-dimension model based on OpenGL
施珂奕 1,2邓春健 1,2,*邹昆 1,2
作者单位
1 电子科技大学 计算机科学与工程学院, 四川 成都611731
2 电子科技大学 中山学院, 广东 中山528402
摘要
获得三维模型指定点的空间坐标是针对模型文件操作的基础。针对传统算法的不足提出一种获取所选点原始坐标的方法。在选点的过程中, 该算法允许模型进行任意角度的旋转, 以选取模型侧面及背面的点, 并通过旋转矩阵对该点还原。算法完成从屏幕的二维像素坐标到模型的三维坐标, 再到模型文件原始坐标的转换。实验表明, 该方法可以准确获取模型的所有可视表面的点坐标,提高了拾取的灵活性。
Abstract
To pick-up a specified coordinate of a point is a basic operation for a 3D model file. Aimed at the shortages of traditional methods about 3D picking, a new method, which points at getting the original coordinate of specified point, is proposed.During picking, rotation at any angle is allowed. So points either on the side or on the back can be selected.And rotation matrix is used to restore points to their original state.The method transform the two-dimensional pixel coordinate to 3D model coordinate then to original model coordinate. All the points on visible surface can be picked precisely by this method and thus the flexibility is improved.
参考文献

[1] 邾继贵, 张国全, 唐大林, 等.一种新的基于OpenGL重绘式物体拾取方法[J].微型机与应用, 2005, 24(10): 53-55.

    ZHU J G, ZHANG G Q, TANG D L, et al. A new redrawing method for object pickup based on OpenGL[J]. Microcomputer & Its Applications, 2005, 24(10): 53-55. (in Chinese)

[2] 何健鹰, 徐强华, 游佳.基于OpenGL的一种三维拾取方法[J].计算机工程与科学, 2006, 28(1): 45-46, 70.

    HE J Y, XU Q H, YOU J. A 3-D picking method based on OpenGL[J]. Computer Engineering & Science, 2006, 28(1): 45-46, 70. (in Chinese)

[3] 姚继权, 李晓豁.计算机图形学人机交互中三维拾取方法的研究[J].工程设计学报, 2006, 13(2): 116-120.

    YAO J Q, LI X H. Research on 3-dimension pick-up of human-computer interaction in computer graphics[J]. Journal of Engineering Design, 2006, 13(2): 116-120. (in Chinese)

[4] 毕硕本, 陆良虎, 毕胜杰, 等.史前聚落遗址三维拾取与精确分布的研究[J].测绘通报, 2013(10): 15-19.

    BI S B, LU L H, BI S J, et al.Research on three-dimensional pickup and precise distribution of prehistoric settlement site[J]. Bulletin of Surveying and Mapping, 2013(10): 15-19. (in Chinese)

[5] 叶帅, 游有鹏, 邢永彦.基于OpenGL的三维模型交互控制研究[J].机械设计与制造工程, 2015, 44(1): 15-18.

    YE S, YOU Y P, XING Y Y. Study on the interactive control of three-dimensional models based on OpenGL[J]. Machine Design and Manufacturing Engineering, 2015, 44(1): 15-18. (in Chinese)

[6] 刘力强, 周明全, 耿国华.一种平行透视下的三维拾取方法[J].西北大学学报: 自然科学版, 2002, 32(1): 39-42.

    LIU L Q, ZHOU M Q, GENG G H. A 3D picking method based on parallel perspective model [J]. Journal of Northwestern University: Natural Science Edition, 2002, 32(1): 39-42. (in Chinese)

[7] 冯宇平, 戴明, 孙立悦, 等.图像自动拼接融合的优化设计[J].光学精密工程, 2010, 18(2): 470-476.

    FENG Y P, DAI M, SUN L Y, et al. Optimized design of automatic image mosaic[J]. Optics and Precision Engineering, 2010, 18(2): 470-476. (in Chinese)

[8] 祝敏.基于Open GL的LED灯光情景仿真[D].哈尔滨: 哈尔滨理工大学, 2007.

    ZHU M. The simulation of the LED lighting scene based on OpenGL[D]. Harbin: Harbin University of Science and Technology, 2007. (in Chinese)

[9] 夏果, 吕国强, 胡跃辉.一种真三维显示数据生成的方法[J].液晶与显示, 2009, 24(2): 273-277.

    XIA G, LV G Q, HU Y H. Data generation method of true 3D volumetric display[J]. Chinese Journal of Liquid Crystals and Displays, 2009, 24(2): 273-277. (in Chinese)

施珂奕, 邓春健, 邹昆. 基于OpenGL的三维模型点坐标拾取方法[J]. 液晶与显示, 2016, 31(7): 708. SHI Ke-yi, DENG Chun-jian, ZOU Kun. Point pick-up in three-dimension model based on OpenGL[J]. Chinese Journal of Liquid Crystals and Displays, 2016, 31(7): 708.

本文已被 2 篇论文引用
被引统计数据来源于中国光学期刊网
引用该论文: TXT   |   EndNote

相关论文

加载中...

关于本站 Cookie 的使用提示

中国光学期刊网使用基于 cookie 的技术来更好地为您提供各项服务,点击此处了解我们的隐私策略。 如您需继续使用本网站,请您授权我们使用本地 cookie 来保存部分信息。
全站搜索
您最值得信赖的光电行业旗舰网络服务平台!