安全检测:瑞星:安全 诺顿:安全 卡巴:安全
毕业设计-OpenGL三维实体造型的研究,说明书共26页,9278字,附任务书、答辩PPT、外文翻译、完整程序源代码
课题的内容和要求(研究内容、研究目标和解决的关键问题)
对OpenGL这个常用的图形开发平台作一个深层次的了解。从中对微机上图形的开发有一个透彻的认识。尤其是三维图形的构造在计算机上的实现有本质的了解。
具体内容包括如下:
(1) 把《计算机图形学》中所学知识,在具体应用中给与实现,从而加深对该课程知识的掌握。
(2) 了解OpenGL这一目前最为常用的开放图形库,娴熟地运用这一开发平台。
(3) 对C中常用的三维造型有报了解。
(4) 掌握三维实体数据模型的建立。
(5) 使用可视化程序设计语言,调用OpenGL的功能模块。
(6) 生成一些规则曲面,了解空间自由曲面的造型。
(7) 编程
(8) 对系统进测试。
课题的研究方法和技术路线
查阅OpenGL相关技术资料。
选用开发环境。
熟悉开发平台。
对《计算机图形学》及图形开发知识进行调研。
三维实体数学模型的建构。
编制程序,在微机上绘制出三维实体。
目 录
摘要
第一章 绪论…………………………………………………………………3
1.1引言…………………………………………………………………3
第二章 VC知识基础………………………………………………………4
2.1 AppWizard……………………………………………………………4
2.2 MFC CFormView类……………………………………………………4
2.3 CColorDialog类……………………………………………………5
2.4 CRect类………………………………………………………………5
2.5 CPaintDC类………………………………………………………… 6
第三章 OpenGL知识基础……………………………………………………7
3.1 OpenGL具体的功能…………………………………………………7
3.2 OpenGL相关函数库…………………………………………………8
3.3 本例中具体用到的各主要核心函数介绍………………………… 9
第四章 本应用程序的基本功能,结构和效果……………………………12
4.1 基本功能……………………………………………………………12
4.2结构效果……………………………………………………………13
第五章 OpenGL三维实体的创建过程……………………………………15
5.1 MFC AppWizard生成程序框架…………………………………15
5.2为应用程序添加视图类……………………………………………15
5.3 MDI静态切分窗口…………………………………………………16
5.4 对话框设计…………………………………………………………16
5.5为各视图添加消息映射函数 ……………………………………18
5.6生成OpenGL程序的基本条件……………………………………18
5.7 添加OpenGL库……………………………………………………23
5.8 编译运行……………………………………………………………24
第六章 技术小结…………………………………………………………… 25
致谢……………………………………………………………………………25
参考文献………………………………………………………………………26
附录:…………………………………………………………………………27
源代码
[摘要]
本文主要介绍OpenGL编程的基本概念、步骤,以及如何利用OpenGL函数库实现三维绘图。对计算机图形学的融汇运用,采用了Visual C++.NET中的MFC类向导加上OpenGL中的库函数来实现三维实体的形成。整个程序涉及到OpenGL中的绘制物体、反走样、融合、动画技术、光照处理、对物体着色处理等操作。在程序运行过程中通过左边视图对话框的操作,在右边视图中看到各种相应的效果图。采用多文档多视图的文档/视图结构,可通过[打开]、[新建]等菜单同时操作多个文档,打开多个窗口后,可以执行平铺或层叠等操作。
[关键字] 开放式图形库,微软基本类库,视图类,应用程序框架, 动画
[ abstract ]
The main introduction OpenGL of this text weaves the basic concept, step , and how does the exploitation OpenGL function database carry out the three dimensions painting .Thawing to the computer graphics gathers together the application , it is achieved with the function MFC in Visual C++ and the functions in OpenGL. The entire order relates to the substance drawing up OpenGL ,on the contrary go out of form ,amalgam, animation technique, illumination handle , to substance coloring handle and so on operation .Operation that is living in the program run process by means of the left view dialog , being living , in the view is catch sight of the different relevant effect picture in the right side . Adopt much views of much files file/view compositions, may be by means of [ open ] ,[ building ] menus etc. manipulates much files moreover , open much window queens , may carry out suppress operations such as store either stack-up and so on .
[ keyword ] OpenGL,MFC,CView,AppWizard,animation