西南石油大学学报(自然科学版) ›› 2007, Vol. 29 ›› Issue (2): 144-149.DOI: 10.3863/j.issn.1000-2634.2007.02.041

• 石油机械工程及其它 • 上一篇    下一篇

基于OpenGL的钻井模拟器图形程序开发

贾月乐1 陈汶滨2 刘祖云3 陈利学2 龚 捷2   

  1. ( 1. 西南石油大学研究生院,四川 成都 610500; 2. 西南石油大学计算机科学学院; 3. 湖北省(楚天)广播电视信息网络有限公司)
  • 收稿日期:2005-12-08 修回日期:1900-01-01 出版日期:2007-04-20 发布日期:2007-04-20
  • 通讯作者: 贾月乐

DEVELOPMENT OF GRAPHIC PROGRAM IN DRILLING SIMULATOR BASED ON OPENGL

JIA Yue-le 1 CHEN Wen-bin 2 LIU Zu-yun 3 et al.

  

  1. (Faculty of Postgraduate of Southwest Petroleum University,Chengdu,610500,China)
  • Received:2005-12-08 Revised:1900-01-01 Online:2007-04-20 Published:2007-04-20
  • Contact: JIA Yue-le

摘要:

钻井模拟器图形程序构建的三维场景使得井场环境的模拟效果更为逼真,引入OpenGL图形库使得控制联动的三维动画成为可能。可用于石油企业的专业钻井人才培养,对计算机图形技术在钻井过程三维动画制作中的应用具有重大参考价值。提出了一种在OpenGL环境下读取和控制钻井模拟器三维机械模型的方法,并通过分层建模和面向对象的思想增强了钻井模拟器图形运动的灵活性和程序的扩展性。能够有效的处理钻井工艺流程的变化和场景的更改,使得钻井模拟器的三维图形程序开发效率大大提高,营造出逼真的三维动画场景。

关键词: 钻井模拟器, OpenGL, 虚拟设备, 显示列表, 矩阵堆栈

Abstract: The 3D environment created by the Graphic program of Drilling Simulator makes simulation effects approach a real wellsite more, and OpenGL makes it possible to control realtime 3D cartoon. It can be used in the Oil Enterprises for professional Drilling training, and play an important role in applying Computer Graphic Technology to the production of 3D Drilling cartoon. A method for accessing and controlling the 3D machinery models of Drilling Simulator based on OpenGL is provided, and the methods of Hierarchical Model and Object Oriented Programming to improve the flexibility and scalability of the program is used. In this way, the whole scene and models can be controlled and changed much more easily. Also, the programming efficiency has been improved obviously. At the same time, the scence of 3D cartoon is established.

Key words: drilling simulator, OpenGL, fictitious equipment, display list, matrix

中图分类号: