登录
首页 » OpenGL图像 » 绘制加光照的彩色四棱锥

绘制加光照的彩色四棱锥

于 2022-06-12 发布 文件大小:12.75 kB
0 223
下载积分: 2 下载次数: 1

代码说明:

 绘制一个彩色的四棱锥并添加光照效果:四棱锥边长为2;四棱锥各个顶点颜色不同;四棱锥的中心为(1,2,3);要求使用多种光,包括环境光、镜面光和散射光等,可以通过控制物体对光的反射材质因子和不同光的因子达到不同的光照效果。

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

发表评论

0 个回复

  • 用OpenGL编写的彩色立方体
    用OpenGL编写的彩色立方体-prepared with OpenGL color cube
    2022-03-23 11:53:48下载
    积分:1
  • “虚拟地景生成系统”是基于Windows2000系统和Visual C++ 6.0平台,利用基本OpenGL函数编程技术开发的三维可视化成果。它通过简单的DEM...
    “虚拟地景生成系统”是基于Windows2000系统和Visual C++ 6.0平台,利用基本OpenGL函数编程技术开发的三维可视化成果。它通过简单的DEM(数字高程模型)数据,建立格网模型、再根据光照强度、高程值及有关数据建立数学模型,生成晕渲,再将它投影到平面上,达到模拟现实地貌起伏的效果。 本系统采用XP风格界面,清新自然。它具有透射/正射投影切换、漫游、缩放功能。支持分层晕渲、比高设定、平移、旋转、翻滚、视野调节、雾化、纹理贴图(显示/隐藏)等诸多功能,单幅、1MB大小的DEM数据生成速度为秒级,浏览时无停顿。-"to the virtual scene generation system" is based on Windows 2000 and Visual C 6.0 platform, using the basic function of OpenGL programming technology developed by 3D visualization results. Through simple DEM (Digital Elevation Model) data, establish grid model, in accordance with light intensity, elevation data and the value of a mathematical model, generate Hillshading, then it projection plane to achieve realistic simulation of the effect of undulating topography. The system uses XP style interface as well. It has transmission/switching are overhead projectors, roaming, zoom function. Support for layered Hillshading, compete against the creation, translation, rotation, rolling and vision adjustment, atomization,
    2023-05-08 14:35:03下载
    积分:1
  • freetype on opengl
    freetype在opengl中的应用,调用freetype读取字体文件中的字模数据,生成纹理,并用opengl显示,完美解决字体模糊问题
    2022-03-11 15:46:59下载
    积分:1
  • opengl粒子系统开发的流星,流星的颜色由电脑随机产生,看上去效果还不错....
    opengl粒子系统开发的流星,流星的颜色由电脑随机产生,看上去效果还不错.-opengl particle system development meteor, Meteor colors randomly generated by a computer, the results were pretty good looks.
    2022-10-02 18:40:03下载
    积分:1
  • This a Transparent PNG texture loader for OpenGL. It requires the gd library at...
    This a Transparent PNG texture loader for OpenGL. It requires the gd library at boutell.com. There s a demo at http://www.coolgroups.com/alpha/. -This a Transparent PNG texture loader for OpenGL. It requires the gd library at boutell.com. There s a demo at http://www.coolgroups.com/alpha/.
    2022-04-07 07:25:13下载
    积分:1
  • 很不错的opengl源代码,供大家参考哦
    很不错的opengl源代码,供大家参考哦-Very good opengl source code, for your reference Oh
    2022-01-22 13:11:28下载
    积分:1
  • 图像处理程序,OpenGL编程OpenGChap02_MultiView.rar
    图像处理程序,OpenGL编程OpenGChap02_MultiView.rar-Image processing procedures, OpenGL Programming OpenGChap02_MultiView.rar
    2022-08-26 08:02:50下载
    积分:1
  • 这是OpenGL高级编程与可视化系统开发(系统开发篇)源码
    这是OpenGL高级编程与可视化系统开发(系统开发篇)源码 -This is a high-level programming with OpenGL visualization system development (system development articles) source
    2022-09-30 02:15:04下载
    积分:1
  • OPENGL的学习源代码,很容易上手的
    OPENGL的学习源代码,很容易上手的-OpenGL study the source code, it is easy to get started with the
    2022-03-14 17:08:44下载
    积分:1
  • OpenGL特效:多个镜面的反射效果,可以产生多个镜面产生反射效果...
    OpenGL特效:多个镜面的反射效果,可以产生多个镜面产生反射效果-OpenGL effects : the number of specular reflection effects could have produced a number of specular reflection effects
    2023-08-04 21:10:02下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载