-
二
二维图像的三维显示 详细信息 < 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 MUST Project 1[Polyline Editor] use linked list of C++
#include
#include
#include
#include
#include "point.h"
/*draw line from the line array*/
void drawPointLine()
{
Node * temp;
for (int i=0;inext!=NULL)
{
temp=temp->next;
glVertex2i(temp->x,temp->y);
}
glEnd();
}
}
/*find the point and delete the point from the line array*/
void delpointFun(int xx,int yy)
{
for (int i=0;inext!=NULL)
{&n
- 2022-01-31 23:45:53下载
- 积分:1
-
opengl 3D mobile operators to achieve the rotation
opengl三维操作移动旋转等的实现-opengl 3D mobile operators to achieve the rotation
- 2022-03-19 09:00:12下载
- 积分:1
-
OpenGL如此美丽的喷泉
opengl做漂亮的喷泉-opengl so beautiful fountains
- 2022-03-10 20:35:41下载
- 积分:1
-
OPENGL开发,可以自由行走的空间的源程序.
OPENGL开发,可以自由行走的空间的源程序.-OpenGL development, can take free exercise of the space of the source.
- 2022-04-18 19:27:51下载
- 积分:1
-
德国Signsoft公司的用于Opengl编程的控件事列2,可直接调用.3ds文件创建虚拟仿真环境。...
德国Signsoft公司的用于Opengl编程的控件事列2,可直接调用.3ds文件创建虚拟仿真环境。
-Signsoft Opengl programming for the control out two things can be called directly .3 ds document creation of virtual simulation environment.
- 2022-03-20 02:21:11下载
- 积分:1
-
VC environment opengl programming source code, including NURBS surfaces mapping.
VC环境下opengl编程源代码,包括nurbs曲面的绘制。-VC environment opengl programming source code, including NURBS surfaces mapping.
- 2022-03-14 08:00:51下载
- 积分:1
-
OpenGL代码,NEHE的。 实现用鼠标旋转选中的球体的功能。
OpenGL代码,NEHE的。 实现用鼠标旋转选中的球体的功能。-OpenGL code, the NEHE. Achieving selected with the mouse rotating spherical functions.
- 2022-07-21 21:03:34下载
- 积分:1
-
OpenGL控件。
OpenGL控件。-OpenGL controls.
- 2022-05-10 20:36:32下载
- 积分:1
-
OpenGL特效:多个镜面的反射效果,可以产生多个镜面产生反射效果...
OpenGL特效:多个镜面的反射效果,可以产生多个镜面产生反射效果-OpenGL effects : the number of specular reflection effects could have produced a number of specular reflection effects
- 2023-08-04 21:10:02下载
- 积分:1