C++ 中的基本 3D 图形。网

发布于 2024-11-01 00:11:17 字数 215 浏览 1 评论 0原文

我希望使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

梦里°也失望 2024-11-08 00:11:17

这看起来似乎可以推动你朝着正确的方向前进:
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.

不寐倦长更 2024-11-08 00:11:17

如果您下载 DirectX SDK 您可以在那里找到大量 C++ 和 C# 示例。

If you download DirectX SDK you can find plenty of samples there in C++ and C#.

与之呼应 2024-11-08 00:11:17

我可以推荐“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.

温柔戏命师 2024-11-08 00:11:17

即使您对第三方库不感兴趣,您也可能想看看 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文