学习 DirectX 还是游戏引擎?
我开始使用 C++ 学习 DirectX 11。这很难,但我想我做得很好。 我发现了 UDK(虚幻游戏引擎),并了解到许多优秀的游戏(例如《质量效应 1-3》)都是用该引擎制作的。我考虑为什么我应该学习 DirectX,因为很多游戏已经是用游戏引擎制作的,而且要容易得多。 学习 DirectX 有哪些优点和缺点?
I started learning DirectX 11 with C++. It's hard, but I think I'm doing good.
I discovered UDK (Unreal game engine), and read that many good games like Mass Effect 1-3 was made in that engine. I consider why I should learn DirectX, when many games are already made in game engines, and it's a lot easier.
What are the pros and cons by learning DirectX?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
DirectX 提供了在屏幕上推送像素的能力。除此之外的任何东西——物理、地图模型、开发工具、文件格式、音乐、人工智能、网络代码——仍然是你的问题。另一方面,游戏引擎为您需要的大多数东西提供了全面的解决方案,但需要付出一定的代价(技术限制、学习曲线以及通常不小的金额)。
这实际上取决于您的目标和需求。
DirectX gives the capability to push pixels on screen. Anything beyond that - physics, map models, dev tools, file formats, music, AI, networking code - is still your problem. On the other hand, a game engine provides a comprehensive solution for most of the things you will need, but at a cost (technical constraints, learning curve, and often non-trivial amounts of $$).
It really depends on your goals and needs.
如果您的目标是学习图形编程,那么您应该选择 DirectX 11,因为它使您可以访问低级图形编程。
另一方面,如果您想直接跳到游戏编程,UDK 将允许您跳过低级图形编程并开始玩游戏。
如果你想学习物理、音频、网络编程,你应该看看Ogre3D(它是一个图形引擎,顾名思义处理图形,你所要做的就是对物理、游戏玩法进行编程)。
If you goal is to learn Graphics programming then you should choose DirectX 11 because it gives you access to low level graphics programming.
On the other hand if you want to jump right to gameplay programming UDK will allow you to step over low level graphics programming and get your hands on gameplay.
If you want to learn physics, audio, networking programming, you should take a look at Ogre3D (it's a graphics engine that as the name suggests handles the graphics, all you have to do is programming physics, gameplay).