-
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
-
不使用DirectX或OpenGL作成的3D立方体效果
不使用DirectX或OpenGL作成的3D立方体效果-not use DirectX or OpenGL 3D cube make the results
- 2022-06-19 02:45:16下载
- 积分:1
-
基于OpenGL的3D赛车游戏
资源描述OpenGL 是一个 3D 图形 API (Application Programming
Interface,应用程序编程接口),英文全称“Open Graphics Library”,即开放的图形程序接口技术,它广泛的应用与数字化应用技术以及娱乐领域,它具有开放性的图形库,良好的可移植性,是跨平台的计算机工业标准应用程序接口,它主要应用于专业3D 图形设计领域。若能利用OpenGL营造出逼真的视听效果和具有模拟驾驶感觉的赛车系统,将能给玩家和车迷带来身临其境的感觉。
- 2022-08-15 03:14:03下载
- 积分:1
-
OPenGL画图,一个非常简单的如何使openGl
OPenGL画图,一个非常简单的如何使openGl-OpenGL drawing, a very simple how to make opengl
- 2022-04-27 19:19:29下载
- 积分:1
-
用C++与OpenGL写的sph流体仿真
项目是光滑粒子动力学(SPH)流体模拟研究 - 本质上模拟流体,成千上万的小颗粒,该方法的基本思想是将连续的流体(或固体)用相互作用的质点组来描述,各个物质点上承载各种物理量,包括质量、速度等,通过求解质点组的动力学方程和跟踪每个质点的运动轨道,求得整个系统的力学行为用C++与OpenGL的。
- 2022-01-26 04:07:20下载
- 积分:1
-
用opengl写的,速度很快,显示3D物体
用opengl写的,速度很快,显示3D物体-use opengl written, very fast, show 3D objects
- 2022-03-20 04:00:34下载
- 积分:1
-
使用OpenGl实现的霓虹效果。需要OpenGL开发库支持。共有三个例子...
使用OpenGl实现的霓虹效果。需要OpenGL开发库支持。共有三个例子-use OpenGl achieve neon effect. Need to support the development of OpenGL. There are three examples
- 2022-02-09 20:16:26下载
- 积分:1
-
windows上的opengl屏保源码
windows上的opengl屏保源码-windows opengl screen guarantees the source code
- 2023-08-04 21:30:04下载
- 积分:1
-
在C++中使用OpenInVentor实现三维二维的图形显示以及变换操作.
在C++中使用OpenInVentor实现三维二维的图形显示以及变换操作.-In the C++ Use OpenInVentor realize three-dimensional two-dimensional graphics display and transform operations.
- 2022-02-02 16:48:37下载
- 积分:1
-
wrlviewer mesh 3d viewer
源=.Lib3DArray3d.cpp
- 2022-05-08 04:14:57下载
- 积分:1