首页 开发技术 C++     /    【C++】3D游戏场景漫游4.0版程序源码by浅墨

【C++】3D游戏场景漫游4.0版程序源码by浅墨

上传者: zhmxy555 | 上传时间:2023/8/29 6:30:38 | 文件大小:49.91MB | 文件类型:rar
【C++】3D游戏场景漫游4.0版程序源码by浅墨
零资源分下载,分享精神至上~4.0版新加入雪花飞扬天气模拟粒子系统,效果非常华丽。
提醒大家一下,可在SnowParticleClass.h中的PARTICLE_NUMBER宏中改变雪花粒子数量,默认粒子数量为10000,我1G显存的显卡取10万粒子数量帧数就只有8帧了。
所以要自己改粒子数量的话请根据自己的显卡性能酌情选择,如果你取个非常大的50万粒子数量,显卡吃不消烧了可别怪我--其中的3D人物模型来自英雄无敌6。
背景音乐为魔兽暗夜精灵战斗曲主题曲。
一个综合型的Direct3D示例程序的4.0版。
用键盘上W,A,S,D,I,J,K,L,↑,↓,←,→12个键加上鼠标在美丽的三维空间中翱翔。
包括了Direct3D初始化,DirectInput输入处理,顶点缓存,光照与材质,文字输出,颜色,纹理贴图,四大变换,网格模型,X文件载入等等知识(当然还有默认被开启的深度缓存),以及地形系统模拟,三维天空模拟,粒子系统。
源码的配套博文是《【VisualC++】游戏开发五十浅墨DirectX教程十八雪花飞扬:实现唯美的粒子系统》,文章地址为http://blog.csdn.net/zhmxy555/article/details/8744805,点击Release文件夹下的exe文件可以直接看到运行效果,运行需要DirectX运行库的支持。
报缺少D3D的DLL系列错误的童鞋们请google/百度一下“DirectX9.0cruntime”,下载并装个最新版的。
报缺少MVCR100D.Dll错误的朋友们去下一个安装就可以了,或者直接点击sln打开工程再次编译一次。
如果是想调试并运行源代码,但是报错了,请去下载最新版DirectXSDK并进行DirectX开发环境的配置。
编写环境:VS2010我的博客地址是http://blog.csdn.net/zhmxy555,源码结合配套文章一起看效果更佳。
希望能和大家一起交流,共同学习,共同进步。

文件下载

资源详情

[{"title":"(55个子文件49.91MB)【C++】3D游戏场景漫游4.0版程序源码by浅墨","children":[{"title":"D3Ddemo18by浅墨","children":[{"title":"D3Ddemo18.sln <span style='color:#111;'>894B</span>","children":null,"spread":false},{"title":"D3Ddemo18","children":[{"title":"angle.X <span style='color:#111;'>1.09MB</span>","children":null,"spread":false},{"title":"CameraClass.h <span style='color:#111;'>2.22KB</span>","children":null,"spread":false},{"title":"SkyBoxClass.cpp <span style='color:#111;'>5.59KB</span>","children":null,"spread":false},{"title":"TerrainClass.h <span style='color:#111;'>1.82KB</span>","children":null,"spread":false},{"title":"D3Ddemo18.vcxproj.user <span style='color:#111;'>143B</span>","children":null,"spread":false},{"title":"510b66d8.bmp <span style='color:#111;'>3.00MB</span>","children":null,"spread":false},{"title":"CameraClass.cpp <span style='color:#111;'>9.59KB</span>","children":null,"spread":false},{"title":"SnowParticleClass.cpp <span style='color:#111;'>6.18KB</span>","children":null,"spread":false},{"title":"TerrainClass.cpp <span style='color:#111;'>7.71KB</span>","children":null,"spread":false},{"title":"main.cpp <span style='color:#111;'>25.62KB</span>","children":null,"spread":false},{"title":"GameMedia","children":[{"title":"TropicalSunnyDayUp2048.png <span style='color:#111;'>3.94MB</span>","children":null,"spread":false},{"title":"TropicalSunnyDayBack2048.png <span style='color:#111;'>3.82MB</span>","children":null,"spread":false},{"title":"TropicalSunnyDayRight2048.png <span style='color:#111;'>3.56MB</span>","children":null,"spread":false},{"title":"icon.ico <span style='color:#111;'>131.69KB</span>","children":null,"spread":false},{"title":"heighmap.raw <span style='color:#111;'>117.19KB</span>","children":null,"spread":false},{"title":"snow5.jpg <span style='color:#111;'>45.31KB</span>","children":null,"spread":false},{"title":"TropicalSunnyDayFront2048.png <span style='color:#111;'>3.60MB</span>","children":null,"spread":false},{"title":"snow4.jpg <span style='color:#111;'>37.20KB</span>","children":null,"spread":false},{"title":"terrainstone.jpg <span style='color:#111;'>506.72KB</span>","children":null,"spread":false},{"title":"NightElf1.wav <span style='color:#111;'>20.92MB</span>","children":null,"spread":false},{"title":"snow3.jpg <span style='color:#111;'>50.75KB</span>","children":null,"spread":false},{"title":"snow1.jpg <span style='color:#111;'>36.03KB</span>","children":null,"spread":false},{"title":"snow2.jpg <span style='color:#111;'>44.66KB</span>","children":null,"spread":false},{"title":"TropicalSunnyDayLeft2048.png <span style='color:#111;'>3.49MB</span>","children":null,"spread":false},{"title":"snow6.jpg <span style='color:#111;'>35.73KB</span>","children":null,"spread":false}],"spread":false},{"title":"D3Ddemo18.vcxproj <span style='color:#111;'>4.35KB</span>","children":null,"spread":false},{"title":"D3DUtil.h <span style='color:#111;'>737B</span>","children":null,"spread":false},{"title":"DirectInputClass.h <span style='color:#111;'>1.26KB</span>","children":null,"spread":false},{"title":"SkyBoxClass.h <span style='color:#111;'>1.20KB</span>","children":null,"spread":false},{"title":"DirectInputClass.cpp <span style='color:#111;'>4.49KB</span>","children":null,"spread":false},{"title":"SnowParticleClass.h <span style='color:#111;'>2.25KB</span>","children":null,"spread":false},{"title":"10e74fa0.bmp <span style='color:#111;'>384.05KB</span>","children":null,"spread":false},{"title":"D3Ddemo18.vcxproj.filters <span style='color:#111;'>1.98KB</span>","children":null,"spread":false}],"spread":false},{"title":"D3Ddemo18.suo <span style='color:#111;'>26.00KB</span>","children":null,"spread":false},{"title":"Release","children":[{"title":"angle.X <span style='color:#111;'>1.09MB</span>","children":null,"spread":false},{"title":"510b66d8.bmp <span style='color:#111;'>3.00MB</span>","children":null,"spread":false},{"title":"D3Ddemo18.exe <span style='color:#111;'>42.00KB</span>","children":null,"spread":false},{"title":"D3Ddemo18.pdb <span style='color:#111;'>811.00KB</span>","children":null,"spread":false},{"title":"GameMedia","children":[{"title":"TropicalSunnyDayUp2048.png <span style='color:#111;'>3.94MB</span>","children":null,"spread":false},{"title":"TropicalSunnyDayBack2048.png <span style='color:#111;'>3.82MB</span>","children":null,"spread":false},{"title":"TropicalSunnyDayRight2048.png <span style='color:#111;'>3.56MB</span>","children":null,"spread":false},{"title":"icon.ico <span style='color:#111;'>131.69KB</span>","children":null,"spread":false},{"title":"heighmap.raw <span style='color:#111;'>117.19KB</span>","children":null,"spread":false},{"title":"snow5.jpg <span style='color:#111;'>45.31KB</span>","children":null,"spread":false},{"title":"TropicalSunnyDayFront2048.png <span style='color:#111;'>3.60MB</span>","children":null,"spread":false},{"title":"snow4.jpg <span style='color:#111;'>37.20KB</span>","children":null,"spread":false},{"title":"terrainstone.jpg <span style='color:#111;'>506.72KB</span>","children":null,"spread":false},{"title":"NightElf1.wav <span style='color:#111;'>20.92MB</span>","children":null,"spread":false},{"title":"snow3.jpg <span style='color:#111;'>50.75KB</span>","children":null,"spread":false},{"title":"snow1.jpg <span style='color:#111;'>36.03KB</span>","children":null,"spread":false},{"title":"snow2.jpg <span style='color:#111;'>44.66KB</span>","children":null,"spread":false},{"title":"TropicalSunnyDayLeft2048.png <span style='color:#111;'>3.49MB</span>","children":null,"spread":false},{"title":"snow6.jpg <span style='color:#111;'>35.73KB</span>","children":null,"spread":false}],"spread":false},{"title":"10e74fa0.bmp <span style='color:#111;'>384.05KB</span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}]

评论信息

  • iDaDi:
    很好,很强大。2019-03-14
  • oYangZi12:
    很强的资源。2018-01-26
  • wzd772411873:
    很不错,强大2018-01-17
  • 归隐的许攸:
    很好的资源,值得学习2017-11-22
  • qq_29188991:
    为什么我一直提示有个头文件找不到呢2017-04-20

免责申明

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