登录
首页 » OpenGL图像 » Opengl绘制镜子效果

Opengl绘制镜子效果

于 2022-04-13 发布 文件大小:310.87 kB
0 250
下载积分: 2 下载次数: 1

代码说明:

应用背景混合是什么呢?混合就是把两种颜色混在一起。具体一点,就是把某一像素位置原来的颜色和将要画上去的颜色,通过某种方式混在一起,从而实现特殊的效果。 假设我们需要绘制这样一个场景:透过红色的玻璃去看绿色的物体,那么可以先绘制绿色的物体,再绘制红色玻璃。在绘制红色玻璃的时候,利用“混合”功能,把将要绘制上去的红色和原来的绿色进行混合,于是得到一种新的颜色,看上去就好像玻璃是半透明的。 要使用OpenGL的混合功能,只需要调用:glEnable(GL_BLEND);即可。 要关闭OpenGL的混合功能,只需要调用:glDisable(GL_BLEND);即可。 注意:只有在RGBA模式下,才可以使用混合功能,颜色索引模式下是无法使用混合功能的。关键技术 请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报

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

发表评论

0 个回复

  • 使用C和OPEN GL 绘制Marching
    使用C和OPEN GL 绘制Marching-Square程序-The use of C and OPEN GL rendering procedures Marching-Square
    2022-03-25 07:03:24下载
    积分:1
  • OpenGl VC environment measurements a three
    OpenGl VC环境下绘制三围立体图形.程序原代码.-OpenGl VC environment measurements a three-dimensional graphics rendering. Procedures for the original code.
    2022-07-01 11:47:12下载
    积分:1
  • 太阳系非常华丽的用opengl设计
    太阳系非常华丽的用opengl设计 -taiyangxi
    2022-03-26 03:40:04下载
    积分:1
  • school OpenGL 3D game series with the book source A01_OpenGL the procedural fram...
    学OpenGL编3D游戏 随书源码 A01_OpenGL的程序框架 第1 章源程序 A02_OpenGL的基本图形 第2 章源程序 A03_OpenGL的组合图形 第3 章源程序 A04_摄像漫游 第4 章源程序 A05_开天辟地 第5 章源程序 A06_OpenGL中显示文字 第6 章源程序 A07_特殊的平面_树 第7 章源程序 A08_显示3D模型 第8 章源程序 A09_3D动画 第9 章源程序 A10_射击、爆炸 第10章源程序 A11_碰撞检测 第11章源程序 A12_游戏进度保存 第12章源程序 A13_3D场景编辑 第13章源程序 include 公用程序 运行程序 所有运行程序 学OpenGL编3D游戏运行程序在里面 文件 TSCC.exe AVI解码器 运行须知.txt 错误解决方法 说明文档.txt 本文档 学OpenGL编3D游戏.bat 运行“学OpenGL编3D游戏” //////////////////////////////////// 如果程序编制演示的AVI不能播放,请自行安装盘上的TSCC.exe。-school OpenGL 3D game series with the book source A01_OpenGL the procedural framework of Chapter 1-source The basic sequence A02_OpenGL graphics Chapter 2 source A03_OpenGL combination graphics Chapter 3 source A04_ roaming camera Chapter 4 source A05_ Chapter 5 of the entire source A06_OpenG L display text Chapter 6 source A07_ special plane trees _ Chapter 7 source revealed A08_ No. 3 D model Chapter 8 source A09_3D animation Chapter 9 source A10_ s
    2022-04-06 17:01:27下载
    积分:1
  • nurbs曲线和曲面在3d图形中有着重要的作用,可以进行曲线,曲面的建模.在opengl中更容易实现....
    nurbs曲线和曲面在3d图形中有着重要的作用,可以进行曲线,曲面的建模.在opengl中更容易实现.-nurbs curves and surfaces in 3d graphics plays an important role, can curve and surface modeling. In opengl more easily attained.
    2022-07-04 13:36:43下载
    积分:1
  • opengl小程序
    关于3d俄罗斯方块的一个opengl的源代码,小程序很精美很好玩。不是原创的,在网上找的,与大家分享
    2023-03-15 11:05:03下载
    积分:1
  • opengl实现的三维场景漫游
    在vc环境下用opengl实现的一个三维漫游,场景中包括地面,一个立方体,一个四面体,键盘控制漫游,以及立方体和四面体各自在每个方向上的旋转。。
    2022-08-16 06:26:52下载
    积分:1
  • 显示杆孤面
    此代码的宾语是在 3d 中显示 syrface,通过使用一组点。表面的计算是意识到通过使用许多方法喜欢贝塞尔曲线和 B-样条
    2022-03-24 10:25:43下载
    积分:1
  • 本程序在Visual C++6.0环境下采用OpenGL编程,实现一个三维图形的旋转显示...
    本程序在Visual C++6.0环境下采用OpenGL编程,实现一个三维图形的旋转显示-This procedure in the Visual C++ 6.0 environment using OpenGL programming, to achieve the rotation of a three-dimensional graphics display
    2023-08-28 06:55:03下载
    积分:1
  • opengal的一个小例子,大家可以交流一下,其实opengal的功能很强大的,学习ing...
    opengal的一个小例子,大家可以交流一下,其实opengal的功能很强大的,学习ing-opengal a small example, we can exchange, in fact, the function of opengal very powerful, learning ing
    2022-03-15 17:17:03下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载