-
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
-
opengl+VC 波光闪闪和水波荡漾的论文
opengl+VC 波光闪闪和水波荡漾的论文-opengl+ VC and water rippling wave shiny paper
- 2022-03-19 02:26:13下载
- 积分:1
-
哈哈..............................................
屏幕阅读器用户,点击这里关闭谷歌即时。
- 2022-02-28 14:04:57下载
- 积分:1
-
quake3 bsp 2装载机
quake3 bsp loader 2
- 2022-05-25 19:36:22下载
- 积分:1
-
This is a use vc and 3d game opengl prepared. Particle system for the particular...
此为一款用vc和opengl编写的3d游戏。粒子系统作的尤其漂亮-This is a use vc and 3d game opengl prepared. Particle system for the particular good
- 2022-06-02 12:15:42下载
- 积分:1
-
QT之二维码
很好的关于用qt + onpengl 做的二维和三维例子。适合初学者等。
- 2022-02-14 00:54:16下载
- 积分:1
-
MFC 窗口多块显示,设置三个视口用于显示,编程语言:openGL, MFC ...
MFC 窗口多块显示,设置三个视口用于显示,编程语言:openGL, MFC -MFC window plus, as I set up for three shows, programming languages : openGL, MFC
- 2022-03-15 03:08:29下载
- 积分:1
-
This demo implements the marching cubes algorithm for constructing a polygonal m...
This demo implements the marching cubes algorithm for constructing a polygonal model from an isosurface. The isosurface chosen here is a classical metaballs setup. Metaballs are isosurface chosen here is a classical metaballs setup. Metaballs are defined by field function that s the sum of R2 / ((ball.x - x)2 + (ball.y - y)2 + (ball.z - z)2) for all balls. The surface is defined to be where the sum is one.-This demo implements the marching cubes algorithm for constructing a polygonal model from an isosurface. The isosurface chosen here is a classical metaballs setup. Metaballs are isosurface chosen here is a classical metaballs setup. Metaballs are defined by field function that s the sum of R2/((ball.x- x)2+ (ball.y- y)2+ (ball.z- z)2) for all balls. The surface is defined to be where the sum is one.
- 2022-03-03 15:18:22下载
- 积分:1
-
DSPACK-分量段音频电子视频 em 德尔菲
DSPACK é 分量 utilizado 段 transmissão de 音频视觉 partir um 做德尔菲法。现在作为 versões 5、 6 段 e 7
- 2022-11-01 19:40:08下载
- 积分:1
-
OpenGL图元运动 三个圆形的图元 分别代表太阳 地球 月亮 表示了三者的运动关系...
OpenGL图元运动 三个圆形的图元 分别代表太阳 地球 月亮 表示了三者的运动关系-OpenGL pixel circular movement of the three elements representing the sun the moon the Earth, said the relationship between the three movement
- 2022-07-25 18:12:39下载
- 积分:1