We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 4 months ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(3)
如果您还没有,请搜索“NeHe 教程”。一套优秀的 OpenGL 教程。
这是轮换教程的链接,包括可下载格式的所有源代码,并且该教程将引导您完成每个相关行。
http://nehe.gamedev.net/tutorial/rotation/14001/
我相信这是在 2D 空间中工作,升级到 3D 可能涉及更多的矩阵数学,但是......可行
If you havent already, do a search for 'NeHe tutorials'. An excellent set of OpenGL tutorials.
Here is a link to the rotation tutorial, includes all the source code in downloadable format and the tutorial walks you through each relevant line.
http://nehe.gamedev.net/tutorial/rotation/14001/
I believe this is working in a 2D space, the step up to 3D probably involves a bit more matrix math but...doable
NeHe 教程是学习 OpenGL 基础知识的一个非常受欢迎的地方。特别是,有关纹理映射的教程应该可以帮助您:
http://nehe.gamedev.net/tutorial/texture_mapping/12038/
请注意尽管这些教程是为较旧的 OpenGL 版本编写的,恕我直言,这些版本对初学者更友好。
The NeHe tutorials are a very popular place to learn the basics of OpenGL. In particular, the tutorial about texture mapping should help you:
http://nehe.gamedev.net/tutorial/texture_mapping/12038/
Mind you though that these tutorials are written for older OpenGL versions which are more beginner friendly IMHO.
您应该查看场景图。基本上,它是一种定义一堆对象(2D 纹理平面)及其在 3D 空间中的变换的方法。这允许您定义适用于多个节点(对象)以及单个节点的转换。您可以毫不费力地用 C++ 制作一个非常简单的程序,或者使用 OpenSG 或 OSG 之类的程序(需要一点点学习曲线)。
维基百科 - http://en.wikipedia.org/wiki/Scene_graph
You should look into scene graphs. Basically it is a way to define a bunch of objects (2D textured planes) and their transforms in 3D space. This allows you to define transforms that work on multiple nodes (objects) as well as single nodes. You can make a pretty simple one in C++ with little effort, or use one such as OpenSG or OSG (slight learning curve needed).
Wikipedia - http://en.wikipedia.org/wiki/Scene_graph