-
二
二维图像的三维显示 详细信息 < 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
-
在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
-
similar brush graphics control over source code for the perfect small graphics s...
类似画笔的绘图控件源代码 较完善的小型图形系统 分形图像制作器源代码-similar brush graphics control over source code for the perfect small graphics system fractal images produced for the source code
- 2022-11-18 23:45:03下载
- 积分:1
-
opengl 的NEHE源码
此为48课程的源码,网址为中文NEHE教程网址
引用源网址的话:
所有DancingWind发表的内容,大多都来自共享的资源,所以我没有资格把它们据为己有,或声称自己为这些资源作出了一点贡献。故任何人都可以复制,修改,重新发表,甚至以自己的名义发表,我都不会追究,但你在做以上事情的时候必须保证内容的完整性,给后来的人一个完整的过程。最后,任何人不能以这些资料的任何部分,谋取任何形式的报酬。
- 2023-04-19 15:55:03下载
- 积分:1
-
OpenGL的编程参考文献
OpenGL的编程参考文献-OpenGL Programming References
- 2022-03-24 07:36:26下载
- 积分:1
-
一个基于MFC多文档视图的,拥有加载obj格式的3D模型,利用了glm.h和glm.c...
一个基于MFC多文档视图的,拥有加载obj格式的3D模型,利用了glm.h和glm.c-MFC-based multi-document view, with load obj format 3D model, used glm.h and glm.c
- 2022-03-17 17:04:17下载
- 积分:1
-
linux平台下的raytracer(光线追踪)算法
在linux/mac系统下实现的raytracer算法,包括反射、折射、阴影效果,可以增加光源,可以去锯齿运行方法:进入文件夹,在终端下编译makefile文件程序运行后会产生scene.bmp图片,在mac下看不到窗口里显示的图片,需要看scene才能看到效果,linux下可以直接在窗口里看到图片
- 2022-01-21 21:20:22下载
- 积分:1
-
a template cache examples overseas./** Example program demonstrating the use of...
一个模板缓存的例子,值得一看。/* * Example program demonstrating the use of glStencilFunc and glStencilOp to cut away the middle of a cube for Chapter 11. */-a template cache examples overseas./** Example program demonstrating the use of glStencilFunc and glStencilOp to cut away the middle of a cube for Chapter 11.* /
- 2022-02-04 23:20:56下载
- 积分:1
-
OpenGL极速入门宝典
OpenGL极速入门宝典-OpenGL Ultimate book entry
- 2022-03-03 09:59:08下载
- 积分:1
-
OpenGL与建模软件MultiGen Creator的接口程序,可以在OpenGL中导入MultiGen Creator建好的模型(flt)WE...
OpenGL与建模软件MultiGen Creator的接口程序,可以在OpenGL中导入MultiGen Creator建好的模型(flt)WE-this program is an interface between OpenGL and MultiGen Creator,it can be used to introduce flt model created by MultiGen Creator to openGL.
- 2022-08-19 20:36:33下载
- 积分:1