-
image processing to the needs and would like to achieve th ree
本人为了图像处理的需要,很想实现二维图像的三维显示,于是写了本代码,希望与此有兴趣的读者共享。图像的获取一是bmp图像文件,二是来自剪贴板。本代码在MFC中调用OpenGL库函数来实现二维图像的三维显示,图像的宽度、高度和象素的亮度分别为三维空间的x,z,y坐标。程序主要有初始化、绘图、资源释放和操作部分,这些功能在OGL_MFCView.cpp文件中实现。OpenGL库的初始化在该文件中的OnCreate,InitScene和DrawScene函数中实现,主要初始化OpenGL运行时的环境变量,三维物体的光照,材质等,由于介绍OpenGL库的初始化的文档很多,在这里我就不多说了,感兴趣的读者可以参考有关的文档。在DrawScene函数中调用全局函数GLDraw3DBMP完成绘图部分。 编译源代码时,必须把opengl32.lib glu32.lib链到工程中。 可以通过对话框改变材质。按上下箭头键可以实现三维图像的绕x轴旋转,按左右箭头键可以实现三维图像绕z轴旋转。 本代码在Windows2000下编译通过。-image processing 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 coordinates. Main initialization procedures, mapping, the release of resources and operation, the function of these documen
- 2023-02-17 05:45:03下载
- 积分:1
-
计算机图形学 机器人 要求 会动 运动
计算机图形学 机器人 要求 会动 运动-computer graphics requirements would move robot movement
- 2022-03-06 04:28:29下载
- 积分:1
-
OpenGL 开发资料,游戏开发者必备之参考指南
OpenGL 开发资料,游戏开发者必备之参考指南 -OpenGL development information, games developers must Reference Guide
- 2022-03-04 07:55:21下载
- 积分:1
-
一个OpenGL漫游演示,展示了如何使用相机的导航
A opengl flythrough demo, which shows how to use the camera navigation-A opengl flythrough demo. which shows how to use the camera navigation
- 2022-01-22 01:46:47下载
- 积分:1
-
opengl教程,very good ,欢迎对opengl感兴趣的人来下载
opengl教程,very good ,欢迎对opengl感兴趣的人来下载-opengl
- 2022-01-20 23:00:32下载
- 积分:1
-
香椿阴影算法的C++实现经典的绘制,程序采用C++的…
经典渲染算法toon shading的C++实现,程序采用C++和OpenGL实现-Classic rendering of toon shading algorithm C++ Achieve, procedures using C++ And OpenGL to achieve
- 2022-05-12 21:22:11下载
- 积分:1
-
with vc and OpenGL 3D real
用vc++和OpenGL实现三维地形实时动态显示-with vc and OpenGL 3D real-time dynamic display of terrain
- 2022-04-11 07:37:49下载
- 积分:1
-
opengl文档
opengl文档-opengl Documents
- 2022-12-07 10:25:06下载
- 积分:1
-
VC and OpenGL graphics prepared by the procedures, It also included a subdivisio...
用VC和OpenGL编写的图形程序,还包括了一个subdivision算法.适合初学者学习.-VC and OpenGL graphics prepared by the procedures, It also included a subdivision algorithm. for beginners learning.
- 2022-12-15 17:40:06下载
- 积分:1
-
布尔运算,两个物体的和或交差等运算,用opengl开发
布尔运算,两个物体的和或交差等运算,用opengl开发-Boolean operation, the two objects and call it a day, such as computing or
- 2022-02-14 08:37:37下载
- 积分:1