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

绘制加光照的彩色四棱锥

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

代码说明:

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

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

发表评论

0 个回复

  • vc+opengl 做的例子系统,非常漂亮好看
    vc+opengl 做的例子系统,非常漂亮好看-vc+ opengl to do the example system, a very pretty good-looking
    2022-08-05 14:24:58下载
    积分:1
  • 一个基于Qt开发的生成正方体的小程序,每面可单独设置
    一个基于Qt开发的生成正方体的小程序,每面可单独设置-A Qt-based development of procedures for the generation of a small cube, each side can be independently set
    2022-04-17 21:13:07下载
    积分:1
  • first install the JRE, install java3d Pack (Java 3D package of documents called...
    首先安装JRE,再安装java3d包(Java 3D包的文件名为java3d-1_3_1-windows-i586-opengl-sdk.exe,可以到百度,GOOGLE和北大天网上去搜索这个文件,就会有下载的)。默认情况下java3d包会安装在你的$JBuilder9jdk1.4目录下。会在$JBuilder9jdk1.4jrelibext下添加几个jar文件,会在$JBuilder9jdk1.4demo目录下添加一个java3d目录,里面是例子。如果安装没有问题,打开目录 $JBuilder9jdk1.4demojava3dHelloUniverse下的网页HelloUniverse.html应该可以正常显示。-first install the JRE, install java3d Pack (Java 3D package of documents called java3d- 1_3_1-windows-i586- opengl- sdk.exe can go to Baidu, Google and Beijing University days of the Internet to search the file, then you will have to download). Default under java3d package will be installed in your $ JBuilder9 jdk1.4 directory. The $ JBuilder9 jdk1.4 jre lib ext Add several jar document, the $ JBuilder9 jdk1.4 demo directory add a java3d directory, there"s example. If you have no problem, open directory $ JBuilder9 jdk1.4 demo java3d HelloUniverse HelloUniverse.html the website should be able to display normal.
    2023-08-26 17:10:03下载
    积分:1
  • 3D粗糙会动机器人
    3D粗糙机器人,包括头部,胳膊,腿#include "stdafx.h" #include void reshape(int w,int h); void init(); void display(); void mytime(int value); int APIENTRY _tWinMain(HINSTANCE hInstance,   HINSTANCE hPrevInstance,   LPTSTR    lpCmdLine,   int       nCm
    2022-11-10 07:15:04下载
    积分:1
  • 这是OPENGL的第三个例子,实现了在MFC环境的实现,好好体会。
    这是OPENGL的第三个例子,实现了在MFC环境的实现,好好体会。-This is the third example OPENGL, realize in the MFC environment, realize a good experience.
    2022-05-31 22:13:10下载
    积分:1
  • glew 源代码
    OpenGL扩展牧马人库(GLEW)是一个跨平台的开源的C / C++的扩展装载库。 GLEW提供了高效的运行时的机制,用于确定哪些OpenGL扩展是在目标平台上的支持。
    2022-05-06 14:04:33下载
    积分:1
  • OpenGL入门实例。囊括各章节源代码。
    OpenGL入门实例。囊括各章节源代码。-Getting Started with OpenGL examples. The chapters include the source code.
    2022-04-10 22:32:41下载
    积分:1
  • 很好的OpenGL示例
    很好的OpenGL示例-good example OpenGL
    2023-01-20 21:35:04下载
    积分:1
  • GNU三维曲面操作库,具有良好的函数界面,可以方便地处理三维曲面,进行简单而高效的布尔计算...
    GNU三维曲面操作库,具有良好的函数界面,可以方便地处理三维曲面,进行简单而高效的布尔计算-Operation of three-dimensional surface GNU Library, with good function of interface, can easily handle three-dimensional surface, a simple and efficient Boolean calculation
    2023-08-31 15:35:03下载
    积分:1
  • 花瓶,演示旋转表面的形成过程,动画效果非常漂亮,使用glut....
    花瓶,演示旋转表面的形成过程,动画效果非常漂亮,使用glut.-Vases, demonstration of the formation process of rotating the surface, very beautiful animation effects, use glut.
    2022-09-09 03:45:03下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载