-
二
二维图像的三维显示 详细信息 < 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
-
This is the source code of the book VC++ advantage program Opengl!
Visual C++ 高级编程技术OpenGL篇 》程序源代码5613879-This is the source code of the book VC++ advantage program Opengl!
- 2022-03-20 06:05:05下载
- 积分:1
-
A simulated aircraft fire near the ground opengl procedures, documentation in th...
一个模拟飞机近地面射击的opengl程序,文件中有相应的模型和算法-A simulated aircraft fire near the ground opengl procedures, documentation in the corresponding model and algorithm
- 2022-06-15 07:07:37下载
- 积分:1
-
融合多个传感器检测到的障碍数据,绘出障碍地形图
融合多个传感器检测到的障碍数据,绘出障碍地形图-Integration of multiple sensors to detect obstacles to data, topographic maps drawn obstacles
- 2022-08-09 00:07:01下载
- 积分:1
-
这是Nehe开发的一个简单的OpenGL程序
这是Nehe开发的一个简单的OpenGL程序-This is the development of a simple procedure OpenGL
- 2023-06-13 08:05:04下载
- 积分:1
-
本实例通过对OpenGL库的引用实现一个带纹理的茶壶绕水平中心线旋转的动画...
本实例通过对OpenGL库的引用实现一个带纹理的茶壶绕水平中心线旋转的动画-In this instance through the implementation of the OpenGL library reference to a teapot with a texture animation rotation around the center line level
- 2023-08-29 23:30:03下载
- 积分:1
-
有OpenGL实现的decal贴图,decal贴图技术可实现爆炸、子弹射击等的痕迹效果。程序经测试运行正确。
有OpenGL实现的decal贴图,decal贴图技术可实现爆炸、子弹射击等的痕迹效果。程序经测试运行正确。-Realize the decal has OpenGL textures, decal mapping technology can realize explosions, bullets and other traces of fire effects. Procedures have been tested to run correctly.
- 2022-03-11 05:35:53下载
- 积分:1
-
<;基于OpenGL图形编程>;>;更多的是一种经典的编程书…
< OpenGL基础图形编程>>是比较经典的编程书籍,简洁易懂,并附有大量的愿代码。我现特把它整理成Word文档格式,希望能和大家一起分享。-> is a more classic programming books, simple and easy to understand, along with a large number of ready code. I hereby put it together into a Word document format, hoping to share with everyone.
- 2022-07-28 09:52:54下载
- 积分:1
-
opengl 球的模型
opengl 球的模型-opengl ball model
- 2022-03-22 03:10:46下载
- 积分:1
-
A very famous collision detection engine and the simple example of using it.
A very famous collision detection engine and the simple example of using it.-A very famous a collision detection engine nd the simple example of using it.
- 2022-11-05 02:20:03下载
- 积分:1