-
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
-
用VC++写的OPEN GL 一个3D透明箱,基于SDK,适合初学者学习,大家可以下载试试!...
用VC++写的OPEN GL 一个3D透明箱,基于SDK,适合初学者学习,大家可以下载试试!-VC write OPEN GL 3D a transparent box, based on the SDK, for beginners to learn, we can try to download!
- 2022-04-25 11:18:35下载
- 积分:1
-
A demonstration OgreOde important function in the program Ode contains almost al...
一个演示OgreOde程序中的重要函数Ode包含了几乎所有实现的函数
- 2022-07-04 22:27:16下载
- 积分:1
-
用mfc opengl编写的,转动的球,可能会有数组越界的错误
用mfc opengl编写的,转动的球,可能会有数组越界的错误-mfc opengl prepared with the rotation of the ball, there may be cross-border array of mistakes
- 2022-08-18 23:30:30下载
- 积分:1
-
In computer graphics, the suppression of the display of one or more display elem...
在计算机图形学中,有三种方式表示三维物体:线框图、消隐图和真实感图。其中真实感图形的生成也要在消隐基础上进行光照处理。所谓消隐就是给定一组三维对象及投影方式(视见约束),判定线、面或体的可见性的过程。-In computer graphics, the suppression of the display of one or more display elements or display groups.
- 2023-07-22 22:30:03下载
- 积分:1
-
This program drew a globe that contains the basic graphics rendering, light sett...
本程序画了一个地球仪,包含基本图形的绘制,光照的设置,材质的设置,纹理映射,动画-This program drew a globe that contains the basic graphics rendering, light settings and material settings, texture mapping, animation, etc.
- 2022-03-17 20:02:11下载
- 积分:1
-
Gis软件中绘制等高线的算法(用OPENGL)实现。具有较高的参考价值!...
Gis软件中绘制等高线的算法(用OPENGL)实现。具有较高的参考价值!-Gis software drawing contour lines of the algorithm (using OPENGL) realize. With a high reference value!
- 2023-06-21 06:10:03下载
- 积分:1
-
OpenGL初级学习的经典例程open inventor
OpenGL初级学习的经典例程open inventor-OpenGL and open inventor
- 2022-02-04 17:35:27下载
- 积分:1
-
Opengl正方形平移
一个简单点的正方形 ,按键盘“w”"s""d""w"移动它的上下左右 用Opengl写的正方形 也会用到swich语句,可以自由更改颜色
- 2022-01-25 19:08:23下载
- 积分:1
-
用OpenGL作一个球体
用OpenGL作一个球体-use OpenGL for a ball
- 2022-01-28 13:38:05下载
- 积分:1