-
二
二维图像的三维显示 详细信息 < 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编程书籍――《OpenGL编程指南第四版》电子版。
OpenGL编程书籍――《OpenGL编程指南第四版》电子版。-OpenGL programming book- " OpenGL Programming Guide Fourth Edition" electronic version.
- 2023-01-26 07:45:10下载
- 积分:1
-
使用opengl,实现最基本的纹理映射,适合初学者使用
使用opengl,实现最基本的纹理映射,适合初学者使用-Use opengl, texture mapping to achieve the most basic for beginners to use
- 2022-08-08 17:55:15下载
- 积分:1
-
一个用opengl编写的彩虹效果,其中用到了粒子系统
一个用opengl编写的彩虹效果,其中用到了粒子系统-opengl prepared with a rainbow effect, which uses a particle system
- 2022-07-05 09:40:46下载
- 积分:1
-
VC under the OpenGL application development framework with examples
VC下的OpenGL开发框架与应用举例-VC under the OpenGL application development framework with examples
- 2022-07-26 06:03:35下载
- 积分:1
-
Please read your package and describe it at least 40 bytes in English.
Please read your package and describe it at least 40 bytes in English.
- 2022-07-28 00:34:50下载
- 积分:1
-
如何从文件加载3D模型,并且平滑的从一个模型变换为另一个模型。...
如何从文件加载3D模型,并且平滑的从一个模型变换为另一个模型。-How to load the 3D model from the document, and smooth transformation from one model to another model.
- 2022-04-17 18:28:30下载
- 积分:1
-
《OpenGL超级宝典》光盘附带源码 很基础很实用 第11章
《OpenGL超级宝典》光盘附带源码 很基础很实用 第11章
- 2022-05-10 19:19:25下载
- 积分:1
-
opengl的雾化效果 烟雾弹的样子. vc++6.0编译通过
opengl的雾化效果 烟雾弹的样子. vc++6.0编译通过-opengl atomizing effect of the smoke bombs appearance. Vc through Compiler 6.0
- 2022-02-05 21:27:52下载
- 积分:1
-
VC++中使用OpenGL库编写的动态星空效果,非常逼真…
vc++运用Opengl类库,编出的动态星空效果,很逼真哦-vc++ using Opengl library to compile the dynamics of Star effects, very realistic oh
- 2022-02-05 12:07:04下载
- 积分:1