登录
首页 » OpenGL图像 »

于 2022-05-22 发布 文件大小:104.10 kB
0 235
下载积分: 2 下载次数: 1

代码说明:

二维图像的三维显示 详细信息 < 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

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • A very basic program demonstrating the use ofthe selectnio buffer in OpenGL. By...
    A very basic program demonstrating the use ofthe selectnio buffer in OpenGL. By clicking on the rotating spheres you can make them disappear. The reset button will return everything back to the default setup.-A very basic program demonstrating the use ofthe selectnio buffer in OpenGL. By clicking o n the rotating spheres you can make them disappe ar. The reset button will return everything BAC k to the default setup.
    2022-07-19 05:40:27下载
    积分:1
  • OpenGL场景漫游
    用 openGL 绘制一个虚拟教室场景。要求实现视角可变化以及漫游功能,教 室里的物品不少于五件。运用 openGL 图形库函数,基于 visualc++6.0 平台绘制一个虚拟教室的步骤大概如下: 1. 首先建立起一个教室的整体框架,即画出一个空间坐标系中的长方体,当然四个面 均可使用 GL_QUADS 来实现,只要定下教室的大小以及在空间坐标系中的位置,即 可定下八个顶点坐标。 这是我绘制教室这个大场景的部分代码截图:
    2022-11-23 22:40:14下载
    积分:1
  • 加载素到矩阵
    它是程序加载到一个矩阵图像像素为单位)。 在图像中将用作处理这个矩阵,而它写在 c + + 中使用代码块编译器
    2022-02-12 18:50:42下载
    积分:1
  • 基于OpenGL的形程序
    基于OpenGL的图形程序-OpenGL-based graphics program
    2022-03-23 17:29:30下载
    积分:1
  • 详细介绍用 了Visual Basic 实现 QpenGL三维地形显示。
    详细介绍用 了Visual Basic 实现 QpenGL三维地形显示。-detailed presentation of the Visual Basic 3D terrain QpenGL show.
    2022-06-15 04:01:22下载
    积分:1
  • 简单的屏幕保护模板
    简单的屏幕保护模板-Simple template screen saver
    2022-06-26 08:01:41下载
    积分:1
  • mfc OpenGL 模板 老外写的很有用 减少大量重复劳动
    mfc OpenGL 模板 老外写的很有用 减少大量重复劳动 -mfc OpenGL template foreigner was very useful to reduce the substantial duplication of work
    2023-02-22 05:50:03下载
    积分:1
  • computer graphics algorithm for example, DIREXTX use OpenGL programming and comp...
    计算机图形学算法示例,用OPENGL和DIREXTX编程的计算机图形学简单入门程序,有利于初学者学习。-computer graphics algorithm for example, DIREXTX use OpenGL programming and computer graphics simple entry procedures, help beginners learn.
    2023-02-16 06:30:04下载
    积分:1
  • 处理程序,OpenGL编程OpenGChap02_MultiView.rar
    图像处理程序,OpenGL编程OpenGChap02_MultiView.rar-Image processing procedures, OpenGL Programming OpenGChap02_MultiView.rar
    2022-08-26 08:02:50下载
    积分:1
  • graphics line drawing examples procedures, OpenGL framework, we can!
    图形学画直线实例程序,OPENGL构架,可以看看!-graphics line drawing examples procedures, OpenGL framework, we can!
    2022-05-18 12:20:49下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载