-
二
二维图像的三维显示 详细信息 < OpenGL > 本人为了图像处理的需要,很想实现二维图像的三维显示,于是写了本代码,希望与此有兴趣的读者共享。图像的获取一是bmp图像文件,二是来自剪贴板。本代码在MFC中调用OpenGL库函数来实现二维图像的三维显示,图像的宽度、高度和象素的亮度分别为三维空间的x,z,y坐标。程序主要有初始化、绘图、资源释放和操作部分,这些功能在OGL_MFCView.cpp文件中实现。OpenGL库的初始化在该文件中的OnCreate,InitScene和DrawScene函数中实现,主要初始化OpenGL运行时的环境变量,三维物体的光照,材质等,由于介绍OpenGL库的初始化的文档很多,在这里我就不多说了,感兴趣的读者可以参考有关的文档。在DrawScene函数中调用全局函数GLDraw3DBMP完成绘图部分。编译源代码时,必须把opengl32.lib glu32.lib链到工程中。 可以通过对话框改变材质。按上下箭头键可以实现三维图像的绕x轴旋转,按左右箭头键可以实现三维图像绕z轴旋转。本代码在Windows2000下编译通过。 -two-dimensional images of three-dimensional display detailed information Image Processing himself to the needs and would like to achieve th ree-dimensional two-dimensional images, then wrote the code, with the readers are interested in sharing. Image Access First bmp image files, two from the clipboard. The MFC code Calling OpenGL library functions to achieve the three-dimensional two-dimensional image display, image width, height and pixel brightness of the three-dimensional space x, z, y co
- 2022-05-22 12:29:02下载
- 积分:1
-
高度图OpenGL
height map opengl
- 2023-01-13 18:15:03下载
- 积分:1
-
most simple initialization OpenGL window (full screen) code
最简单的 OpenGL 初始化 窗口(完整屏幕)的代码-most simple initialization OpenGL window (full screen) code
- 2022-07-13 11:41:42下载
- 积分:1
-
OpenGL package their own categories, simple and practical and can be used to dev...
自己封装的OpenGl类,简单实用,可以用来三维开发-OpenGL package their own categories, simple and practical and can be used to develop three-dimensional
- 2022-03-13 12:34:45下载
- 积分:1
-
基于qt 的opengl绘图 可做网页插件
该代码是基于qt 的opengl绘图网页插件, 是个简单的实例,html里面有相关代码设置程序嵌入
- 2023-08-18 01:20:06下载
- 积分:1
-
一个实现了透视立体效果的opengl程序,在这个程序中你将开始学习如何创建三维物体,效果很不错。...
一个实现了透视立体效果的opengl程序,在这个程序中你将开始学习如何创建三维物体,效果很不错。-a lens to achieve a three-dimensional effect of opengl procedures, In this process you will begin to learn how to create three-dimensional objects, the effect is pretty good.
- 2022-04-10 03:39:38下载
- 积分:1
-
机器人手的闪电和一些额外的影响。
Robot Hand with Lightning and some additional affects.
- 2022-03-01 10:23:47下载
- 积分:1
-
三次样条曲线
三次样条曲线是比较重要的曲线,在多个领域都有应用,本程序使用C++编程实现的三次样条曲线,并通过MFC界面实现,清晰可懂,通俗易懂。
- 2022-01-25 14:24:10下载
- 积分:1
-
OpenGL 源代码
《OpenGL游戏程序设计》重点介绍了如何使用高性能的OpenGL图形与游戏函数库来开发游戏的视频部分。为了让读者了解创建一个游戏的全部过程,书中还包含了DirectX的内容。《OpenGL游戏程序设计》是涵盖这两方面内容的极少书籍之一。在《OpenGL游戏程序设计》中,首先介绍了OpenGL和DirectX的产生背景,对它们的工作机理给出一个总体的描述,然后着重介绍了OpenGL最有可能应用于游戏开发的技术。 OpenGL比较完整的源代码,比较适合新手,配合OpenGL游戏程序设计的书比较好
- 2022-02-03 05:45:57下载
- 积分:1
-
OpenGL中的汉字显示
opengl里显示中国汉字,可以显示unicode的字符-show chinese char in opengl
- 2022-10-07 17:45:03下载
- 积分:1