光线跟踪 入门级 项目代码

上传者: henryhe0416 | 上传时间: 2019-12-21 19:51:59 | 文件大小: 11.67MB | 文件类型: zip
本项目代码基于VC++实现了对一个球体的光线跟踪渲染算法,包含环境光,漫反射和镜面反射。渲染结束后输出每个像素的RGB值,并用OPenGL的库函数加以显示。要成功运行本历程须进行 OPenGL的环境配置。不过,即便不能运行,核心部分的代码也是完全正确的,有详细注释,对初学者有很大参考价值。

文件下载

资源详情

[{"title":"( 93 个子文件 11.67MB ) 光线跟踪 入门级 项目代码","children":[{"title":"成功_对一个球的光线渲染实验","children":[{"title":"Debug","children":[{"title":"对一个球的光线渲染实验.pdb <span style='color:#111;'> 899.00KB </span>","children":null,"spread":false},{"title":"对一个球的光线渲染实验.ilk <span style='color:#111;'> 495.52KB </span>","children":null,"spread":false},{"title":"对一个球的光线渲染实验.exe <span style='color:#111;'> 68.50KB </span>","children":null,"spread":false}],"spread":true},{"title":"ipch","children":[{"title":"对一个球的光线渲染实验-8b37c774","children":[{"title":"对一个球的光线渲染实验-233a3d8d.ipch <span style='color:#111;'> 14.56MB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"对一个球的光线渲染实验.sln <span style='color:#111;'> 966B </span>","children":null,"spread":false},{"title":"对一个球的光线渲染实验.suo <span style='color:#111;'> 24.00KB </span>","children":null,"spread":false},{"title":"对一个球的光线渲染实验","children":[{"title":"Ray.h <span style='color:#111;'> 368B </span>","children":null,"spread":false},{"title":"对一个球的光线渲染实验.vcxproj.filters <span style='color:#111;'> 1.82KB </span>","children":null,"spread":false},{"title":"对一个球的光线渲染实验.vcxproj.user <span style='color:#111;'> 143B </span>","children":null,"spread":false},{"title":"DirLight.h <span style='color:#111;'> 810B </span>","children":null,"spread":false},{"title":"Debug","children":[{"title":"link.3096-cvtres.write.1.tlog <span style='color:#111;'> 2B </span>","children":null,"spread":false},{"title":"cl.command.1.tlog <span style='color:#111;'> 13.65KB </span>","children":null,"spread":false},{"title":"对一个球的光线渲染实验.log <span style='color:#111;'> 1.08KB </span>","children":null,"spread":false},{"title":"DirLight.obj <span style='color:#111;'> 32.91KB </span>","children":null,"spread":false},{"title":"link.1228-cvtres.write.1.tlog <span style='color:#111;'> 2B </span>","children":null,"spread":false},{"title":"link.3096.write.1.tlog <span style='color:#111;'> 2B </span>","children":null,"spread":false},{"title":"link.1228-cvtres.read.1.tlog <span style='color:#111;'> 2B </span>","children":null,"spread":false},{"title":"link.7360-cvtres.read.1.tlog <span style='color:#111;'> 2B </span>","children":null,"spread":false},{"title":"link.4588.write.1.tlog <span style='color:#111;'> 2B </span>","children":null,"spread":false},{"title":"对一个球的光线渲染实验.lastbuildstate <span style='color:#111;'> 88B </span>","children":null,"spread":false},{"title":"link.3296-cvtres.read.1.tlog <span style='color:#111;'> 2B </span>","children":null,"spread":false},{"title":"Sphere.obj <span style='color:#111;'> 14.25KB </span>","children":null,"spread":false},{"title":"Ray.obj <span style='color:#111;'> 52.73KB </span>","children":null,"spread":false},{"title":"rc.command.1.tlog <span style='color:#111;'> 1.90KB </span>","children":null,"spread":false},{"title":"CL.read.1.tlog <span style='color:#111;'> 94.47KB </span>","children":null,"spread":false},{"title":"vc100.idb <span style='color:#111;'> 931.00KB </span>","children":null,"spread":false},{"title":"mt.read.1.tlog <span style='color:#111;'> 1.21KB </span>","children":null,"spread":false},{"title":"link.4672-cvtres.write.1.tlog <span style='color:#111;'> 2B </span>","children":null,"spread":false},{"title":"link.7360-cvtres.write.1.tlog <span style='color:#111;'> 2B </span>","children":null,"spread":false},{"title":"link.3892.write.1.tlog <span style='color:#111;'> 2B </span>","children":null,"spread":false},{"title":"link.1228.write.1.tlog <span style='color:#111;'> 2B </span>","children":null,"spread":false},{"title":"link.3296.write.1.tlog <span style='color:#111;'> 2B </span>","children":null,"spread":false},{"title":"link.6044.read.1.tlog <span style='color:#111;'> 2B </span>","children":null,"spread":false},{"title":"link-cvtres.read.1.tlog <span style='color:#111;'> 2B </span>","children":null,"spread":false},{"title":"link.read.1.tlog <span style='color:#111;'> 14.98KB </span>","children":null,"spread":false},{"title":"vector.obj <span style='color:#111;'> 50.38KB </span>","children":null,"spread":false},{"title":"link.6064.write.1.tlog <span style='color:#111;'> 2B </span>","children":null,"spread":false},{"title":"link.4048-cvtres.read.1.tlog <span style='color:#111;'> 2B </span>","children":null,"spread":false},{"title":"Raytracer.obj <span style='color:#111;'> 17.11KB </span>","children":null,"spread":false},{"title":"link.3296-cvtres.write.1.tlog <span style='color:#111;'> 2B </span>","children":null,"spread":false},{"title":"对一个球的光线渲染实验.exe.intermediate.manifest <span style='color:#111;'> 381B </span>","children":null,"spread":false},{"title":"link.4588-cvtres.write.1.tlog <span style='color:#111;'> 2B </span>","children":null,"spread":false},{"title":"对一个球的光线渲染实验_manifest.rc <span style='color:#111;'> 212B </span>","children":null,"spread":false},{"title":"link.4048-cvtres.write.1.tlog <span style='color:#111;'> 2B </span>","children":null,"spread":false},{"title":"rc.read.1.tlog <span style='color:#111;'> 1.12KB </span>","children":null,"spread":false},{"title":"link.write.1.tlog <span style='color:#111;'> 5.22KB </span>","children":null,"spread":false},{"title":"link.6044.write.1.tlog <span style='color:#111;'> 2B </span>","children":null,"spread":false},{"title":"CL.write.1.tlog <span style='color:#111;'> 18.87KB </span>","children":null,"spread":false},{"title":"link.1548.read.1.tlog <span style='color:#111;'> 2B </span>","children":null,"spread":false},{"title":"link.6064.read.1.tlog <span style='color:#111;'> 2B </span>","children":null,"spread":false},{"title":"link.4048.write.1.tlog <span style='color:#111;'> 2B </span>","children":null,"spread":false},{"title":"link.3892.read.1.tlog <span style='color:#111;'> 2B </span>","children":null,"spread":false},{"title":"link.4672-cvtres.read.1.tlog <span style='color:#111;'> 2B </span>","children":null,"spread":false},{"title":"vc100.pdb <span style='color:#111;'> 284.00KB </span>","children":null,"spread":false},{"title":"link.1548-cvtres.write.1.tlog <span style='color:#111;'> 2B </span>","children":null,"spread":false},{"title":"main.obj <span style='color:#111;'> 33.99KB </span>","children":null,"spread":false},{"title":"link.1548.write.1.tlog <span style='color:#111;'> 2B </span>","children":null,"spread":false},{"title":"link.command.1.tlog <span style='color:#111;'> 8.88KB </span>","children":null,"spread":false},{"title":"link.6044-cvtres.read.1.tlog <span style='color:#111;'> 2B </span>","children":null,"spread":false},{"title":"link.1228.read.1.tlog <span style='color:#111;'> 2B </span>","children":null,"spread":false},{"title":"link.3296.read.1.tlog <span style='color:#111;'> 2B </span>","children":null,"spread":false},{"title":"link.3892-cvtres.write.1.tlog <span style='color:#111;'> 2B </span>","children":null,"spread":false},{"title":"mt.write.1.tlog <span style='color:#111;'> 434B </span>","children":null,"spread":false},{"title":"link.4672.read.1.tlog <span style='color:#111;'> 2B </span>","children":null,"spread":false},{"title":"link.4048.read.1.tlog <span style='color:#111;'> 2B </span>","children":null,"spread":false},{"title":"对一个球的光线渲染实验.exe.embed.manifest.res <span style='color:#111;'> 472B </span>","children":null,"spread":false},{"title":"link.3892-cvtres.read.1.tlog <span style='color:#111;'> 2B </span>","children":null,"spread":false},{"title":"link.1548-cvtres.read.1.tlog <span style='color:#111;'> 2B </span>","children":null,"spread":false},{"title":"link.6044-cvtres.write.1.tlog <span style='color:#111;'> 2B </span>","children":null,"spread":false},{"title":"对一个球的光线渲染实验.exe.embed.manifest <span style='color:#111;'> 406B </span>","children":null,"spread":false},{"title":"link.3096-cvtres.read.1.tlog <span style='color:#111;'> 2B </span>","children":null,"spread":false},{"title":"link.7360.read.1.tlog <span style='color:#111;'> 2B </span>","children":null,"spread":false},{"title":"link.4588-cvtres.read.1.tlog <span style='color:#111;'> 2B </span>","children":null,"spread":false},{"title":"link.4672.write.1.tlog <span style='color:#111;'> 2B </span>","children":null,"spread":false},{"title":"mt.command.1.tlog <span style='color:#111;'> 1.32KB </span>","children":null,"spread":false},{"title":"link.7360.write.1.tlog <span style='color:#111;'> 2B </span>","children":null,"spread":false},{"title":"rc.write.1.tlog <span style='color:#111;'> 1.15KB </span>","children":null,"spread":false},{"title":"link-cvtres.write.1.tlog <span style='color:#111;'> 2B </span>","children":null,"spread":false},{"title":"link.4588.read.1.tlog <span style='color:#111;'> 2B </span>","children":null,"spread":false},{"title":"link.6064-cvtres.read.1.tlog <span style='color:#111;'> 2B </span>","children":null,"spread":false},{"title":"link.3096.read.1.tlog <span style='color:#111;'> 2B </span>","children":null,"spread":false},{"title":"link.6064-cvtres.write.1.tlog <span style='color:#111;'> 2B </span>","children":null,"spread":false}],"spread":false},{"title":"对一个球的光线渲染实验.vcxproj <span style='color:#111;'> 4.54KB </span>","children":null,"spread":false},{"title":"Ray.cpp <span style='color:#111;'> 721B </span>","children":null,"spread":false},{"title":"Raytracer.h <span style='color:#111;'> 133B </span>","children":null,"spread":false},{"title":"Sphere.cpp <span style='color:#111;'> 1.40KB </span>","children":null,"spread":false},{"title":"DirLight.cpp <span style='color:#111;'> 1.96KB </span>","children":null,"spread":false},{"title":"main.cpp <span style='color:#111;'> 1.71KB </span>","children":null,"spread":false},{"title":"vector.h <span style='color:#111;'> 591B </span>","children":null,"spread":false},{"title":"Sphere.h <span style='color:#111;'> 388B </span>","children":null,"spread":false},{"title":"vector.cpp <span style='color:#111;'> 1023B </span>","children":null,"spread":false},{"title":"Raytracer.cpp <span style='color:#111;'> 1.47KB </span>","children":null,"spread":false}],"spread":false},{"title":"对一个球的光线渲染实验.sdf <span style='color:#111;'> 27.39MB </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

  • gaoyi123456789 :
    很好,很具有参考价值,写的非常认真仔细
    2015-08-07
  • 海椒无边 :
    很有参考的价值
    2014-12-30
  • 我就一小菜 :
    很简单,但针对的物体就是一个球。因此没有采用递归的方式,寻找其他物体造成的折射或反射。不过给了我很多启示。
    2014-06-22
  • ypxwmx :
    这个也过于简单了吧。。
    2014-05-27
  • 堕落的蚂蚁 :
    确实挺简单的,只有几个比较简单的类和一些比较简单的操作
    2014-05-05

免责申明

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