C++ 中的基本 3D 图形。网
我希望使用 C++ .NET 和 DirectX 实现一款具有极其基本的 3D 图形的极其基本的 FPS 游戏。
我对任何第三方库或类似的特殊内容不感兴趣。
除了 2D 之外,我从未做过基于图形的编程,我真的不知道从哪里开始,甚至不知道如何在网上找到合适的资源。
我有几周的时间来构建这个游戏,所以我试图让它保持简单。
谁能给我一些关于如何开始的指导?
I am looking to implement an extremely rudimentary FPS game with extremely rudimentary 3D graphics using C++ .NET and DirectX.
I'm not interested in any third party libraries or anything special like that.
Having never done graphics based programming besides 2D stuff I don't really know where to get started or even how to find the right resources online.
I have a few weeks to build this game so im trying to keep it simple.
Can anyone give me a little guidance on how to get started?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
这看起来似乎可以推动你朝着正确的方向前进:
http://zophusx.byethost11.com/tutorial.php?lan=dx9& ;num=0
不过,我总是发现 OpenGL 更容易学习。因此,除非您有必要使用 DirectX,否则我建议您快速浏览一下 GL,看看您的想法。
This looks as though it may give you a push in the right direction:
http://zophusx.byethost11.com/tutorial.php?lan=dx9&num=0
I always found that OpenGL was easier to learn though. So unless it's necessary for you to use DirectX, I'd suggest you have a quick look at GL and see what you think.
如果您下载 DirectX SDK 您可以在那里找到大量 C++ 和 C# 示例。
If you download DirectX SDK you can find plenty of samples there in C++ and C#.
我可以推荐“Wordware”Publishing 的《DirectX 9 游戏编程入门》吗?我知道您只是想要一些非常简单的东西,比如经典的旋转立方体,所以不要被“游戏”元素推迟。我读了 3/4 并写了一个屏幕保护程序! DX10 现已推出,但我坚持 9 卡向后兼容性。
3D 中的数学可能会变得很愚蠢,但如果您掌握了基础知识,其余的事情就会很快迎刃而解。
如果您还没有这样做,那么“DirectX SDK”下载也是必须的 - 它包含(最重要的)方法、函数等的帮助文件以及一些不太有用的入门内容。
May I recommend "Introduction to Game Programming in DirectX 9" by "Wordware" Publishing. I know you just want something very simple like the rotating cube classic, so do not be put off by the 'game' element. I got 3/4 the way through and wrote a screen saver! DX10 is now available but I stick to 9 - card backward compatibility.
The maths can get silly in 3D, but if you can get the basics, the rest will follow very quickly.
If you haven't done so already the "DirectX SDK" download is also a must - it contains (most important) the help files for the methods, functions etc. and a few not so helpful getting started stuff.
即使您对第三方库不感兴趣,您也可能想看看 SlimDX。
虽然我没有安装 Visual C++ 2008/2010 Express,但您可以添加 SlimDX 作为项目的参考。请务必查看教程部分,即使它是用 C# 编写的,但如果您非常了解 C++/CLI,则应该能够将代码转换为 C++/CLI。
You might want to have a look at SlimDX, even if you're not interested in third-party libraries.
Although I don't have Visual C++ 2008/2010 Express installed, you could add SlimDX as a reference to your project. Be sure you check out the tutorial section, even though it's in C#, but if you know C++/CLI pretty well, you should be able to convert the code to C++/CLI.