首页 课程资源 C/C++     /    OpenGL消隐和光照

OpenGL消隐和光照

上传者: qq_32519379 | 上传时间:2024/10/26 19:47:05 | 文件大小:8.02MB | 文件类型:zip
OpenGL消隐和光照
在OpenGL观察实验的基础上,通过实现实验内容,掌握OpenGL中消隐和光照的设置,并验证课程中消隐和光照的内容。
模型尺寸不做具体要求。
要求修改代码达到以下要求:1. 通过设置材料使得桌面和四条腿的颜色各不相同,分别为:(1,0,0),(0,1,0),(1,1,0),(0,1,1),(0,0,1);
2. 通过设置材料使得茶壶为金黄色;
3. 添加按键处理,移动场景中的光源,并能改变光源的颜色(在两种颜色间切换,颜色自己定义);
4. 修改茶壶的镜面反射系数,使之对光源呈现高光;
5. 在场景中添加一个聚光光源,其照射区域正好覆盖茶壶,并能调整改聚光光源的照射角度和朝向。
本软件ID:9533651

文件下载

资源详情

[{"title":"(45个子文件8.02MB)OpenGL消隐和光照","children":[{"title":"Ex5","children":[{"title":"Ex5.sln <span style='color:#111;'>876B</span>","children":null,"spread":false},{"title":"Ex5.suo <span style='color:#111;'>12.50KB</span>","children":null,"spread":false},{"title":"Ex5","children":[{"title":"main.cpp <span style='color:#111;'>6.37KB</span>","children":null,"spread":false},{"title":"Ex5.vcxproj.user <span style='color:#111;'>143B</span>","children":null,"spread":false},{"title":"glut","children":[{"title":"glut.h <span style='color:#111;'>27.02KB</span>","children":null,"spread":false},{"title":"glut32.dll <span style='color:#111;'>232.00KB</span>","children":null,"spread":false},{"title":"glut32.lib <span style='color:#111;'>28.05KB</span>","children":null,"spread":false}],"spread":true},{"title":"Ex5.vcxproj <span style='color:#111;'>4.21KB</span>","children":null,"spread":false},{"title":"Debug","children":[{"title":"Ex5.log <span style='color:#111;'>1.66KB</span>","children":null,"spread":false},{"title":"link.read.1.tlog <span style='color:#111;'>3.08KB</span>","children":null,"spread":false},{"title":"vc100.pdb <span style='color:#111;'>60.00KB</span>","children":null,"spread":false},{"title":"link-cvtres.read.1.tlog <span style='color:#111;'>2B</span>","children":null,"spread":false},{"title":"link.command.1.tlog <span style='color:#111;'>1.46KB</span>","children":null,"spread":false},{"title":"Ex5.exe.intermediate.manifest <span style='color:#111;'>381B</span>","children":null,"spread":false},{"title":"rc.write.1.tlog <span style='color:#111;'>250B</span>","children":null,"spread":false},{"title":"link.4132.write.1.tlog <span style='color:#111;'>2B</span>","children":null,"spread":false},{"title":"link.4132-cvtres.write.1.tlog <span style='color:#111;'>2B</span>","children":null,"spread":false},{"title":"Ex5.lastbuildstate <span style='color:#111;'>66B</span>","children":null,"spread":false},{"title":"CL.write.1.tlog <span style='color:#111;'>288B</span>","children":null,"spread":false},{"title":"rc.command.1.tlog <span style='color:#111;'>456B</span>","children":null,"spread":false},{"title":"cl.command.1.tlog <span style='color:#111;'>704B</span>","children":null,"spread":false},{"title":"link.4480.write.1.tlog <span style='color:#111;'>2B</span>","children":null,"spread":false},{"title":"link.4132.read.1.tlog <span style='color:#111;'>2B</span>","children":null,"spread":false},{"title":"link.4480.read.1.tlog <span style='color:#111;'>2B</span>","children":null,"spread":false},{"title":"Ex5.exe.embed.manifest <span style='color:#111;'>406B</span>","children":null,"spread":false},{"title":"link-cvtres.write.1.tlog <span style='color:#111;'>2B</span>","children":null,"spread":false},{"title":"mt.read.1.tlog <span style='color:#111;'>370B</span>","children":null,"spread":false},{"title":"link.4132-cvtres.read.1.tlog <span style='color:#111;'>2B</span>","children":null,"spread":false},{"title":"link.4480-cvtres.write.1.tlog <span style='color:#111;'>2B</span>","children":null,"spread":false},{"title":"main.obj <span style='color:#111;'>30.56KB</span>","children":null,"spread":false},{"title":"mt.write.1.tlog <span style='color:#111;'>270B</span>","children":null,"spread":false},{"title":"rc.read.1.tlog <span style='color:#111;'>342B</span>","children":null,"spread":false},{"title":"Ex5.exe.embed.manifest.res <span style='color:#111;'>472B</span>","children":null,"spread":false},{"title":"Ex5_manifest.rc <span style='color:#111;'>196B</span>","children":null,"spread":false},{"title":"CL.read.1.tlog <span style='color:#111;'>1.15KB</span>","children":null,"spread":false},{"title":"vc100.idb <span style='color:#111;'>43.00KB</span>","children":null,"spread":false},{"title":"link.4480-cvtres.read.1.tlog <span style='color:#111;'>2B</span>","children":null,"spread":false},{"title":"mt.command.1.tlog <span style='color:#111;'>344B</span>","children":null,"spread":false},{"title":"link.write.1.tlog <span style='color:#111;'>638B</span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"Ex5.v11.suo <span style='color:#111;'>26.00KB</span>","children":null,"spread":false},{"title":"Debug","children":[{"title":"Ex5.exe <span style='color:#111;'>35.50KB</span>","children":null,"spread":false},{"title":"Ex5.ilk <span style='color:#111;'>457.93KB</span>","children":null,"spread":false},{"title":"glut32.dll <span style='color:#111;'>232.00KB</span>","children":null,"spread":false},{"title":"Ex5.pdb <span style='color:#111;'>459.00KB</span>","children":null,"spread":false}],"spread":true},{"title":"Ex5.sdf <span style='color:#111;'>23.25MB</span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

  • zjuujz:
    比较实用代码,符合实验要求。2019-02-02

免责申明

【好快吧下载】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【好快吧下载】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【好快吧下载】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,8686821#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明