- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
vb开发opengl绘制三维地质构造图(VB development of OpenGL, draw three-dimensional geological map)
vb开发opengl绘制三维地质构造图(VB development of OpenGL, draw three-dimensional geological map)
VB development of OpenGL, draw three-dimensional geological map
1. Preface
It was difficult to achieve a three-dimensional geological map on a computer, but the results were not satisfactory. And now, with OpenGL, its all simple. In 1992, OpenGL became the API (3D) for all kinds of computer environments. At present, it has become an international standard for open 3D graphics. As an excellent 3D graphical interface, OpenGL provides rich graphics commands that enable the development of high-performance and interactive 3D graphics applications. However, the current domestic OpenGL example is the use of VC or C++, so many computer workers not stop, therefore, this paper deliberately chose simple VB development tools combined with OpenGL to develop three-dimensional geological map. Hope to be helpful to those who are interested in OpenGL.
The three-dimensional geological map of the draw out around the X, Y, Z axis was rotated 360 degrees of freedom, can automatically rotate; and for three-dimensional map respectively along the X, Y, Z axis zoom ratio, also can make the 3D map along the X, Y, Z axis three directions at the same time the same proportion zoom.
OpenGL programming in 2.Win32 environment
1) create a view interface
Create a standard EXE project;
Add the COMCTL32.OCX control in the component;
In the reference submenu under the Project menu, add the VBOpenGL Library (vbogl.tlb) and place the components on the form,
2) create device description tables
Defines a pixel format structure
Dim PFD As PIXELFORMATDEscriptOR
Description pixel format
Pfd.nSize = Len (PFD) - structure size
Pfd.nVersion = 1-- version number
Pfd.dwFlags = PFD_SUPPORT_OPENGL, Or-- supports OpenGL
PFD_DRAW_TO_WINDOW Or - draw to Windows
PFD_DOUBLEBUFFER Or - supports dual buffers
PFD_TYPE_RGBA--RGBA color mode
Pfd.iPixelType = PFD_TYPE_RGBA-- pixel format type
Pfd.cColorBits = 16-- the required number of color
您可能关注的文档
- 寻甸回族彝族自治县新命名的街道(New named street of Hui Autonomous County of Xundian).doc
- 导入cad文件的操作方法详解(Import CAD file operation method detailed explanation).doc
- 导游规范化操作(Standardized operation of tour guide).doc
- 导游知识要点试题汇总(Guide knowledge, key questions, summary).doc
- 导游这个职业(The tour guide profession).doc
- 导线截面积与电流的关系(The relationship between conductor cross-sectional area and current).doc
- 导线截面积与载流量的计算(如何计算电缆平数)(Calculation of sectional area and Ampacity of conductors (how to calculate cable number)).doc
- 导线截面积的计算(Calculation of sectional area of traverse).doc
- 将oracle从文件系统迁移到asm(Migrate Oracle from file system to ASM).doc
- 小儿健康饮食的调理——胡维勤教授教给年轻家长小儿饮食的调理(The adjustment of children's healthy diet - Professor Hu Weiqin teaches young parents to regulate their children's diet).doc
- vb教程-制作多媒体界面(VB tutorial - making multimedia interfaces).doc
- vinal mx-8-2d 调音台使用手册(MX - 8 - 2D 调音台使用手册 Vinal).doc
- vi应用要素系统设计表(VI application elements system design table).doc
- vmware虚拟化项目实施建议书(VMware virtualization project implementation proposal).doc
- vlan和以太网通道学习总结(VLAN and Ethernet channel learning summary).doc
- vvvv数控加工工艺小技巧(Vvvv CNC machining skills).doc
- vvv数控加工工艺小技巧(VVV CNC machining skills).doc
- vc_设置窗口大小及图像的显示(Vc_ settings window size and image display).doc
- vc++ 曲线绘图(Vc++ curve drawing).doc
- war3狂热者呕心沥血打造的操作大全(War3 fans make painstaking efforts to build the operation.).doc
文档评论(0)