适用于 Android 上的 OpenGL-ES 游戏的教程和库

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1629775/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-20 03:22:51  来源:igfitidea点击:

Tutorials and libraries for OpenGL-ES games on Android

androidopengl-es3d

提问by arberg

What tutorials and libraries are available which can help beginners to develop 2D and 3D games on Android using OpenGL-ES? I'm looking for tutorials which can help me learn OpenGL-ES, and I'm looking for OpenGL-ES libraries which can make life easier for beginners in OpenGL-ES.

有哪些教程和库可以帮助初学者使用 OpenGL-ES 在 Android 上开发 2D 和 3D 游戏?我正在寻找可以帮助我学习 OpenGL-ES 的教程,并且我正在寻找可以让 OpenGL-ES 初学者的生活更轻松的 OpenGL-ES 库。

Since Android is still small, I guess it may be help-full to read iPhone OpenGL-ES tutorials as well, as I suppose the OpenGL-ES functionality is much the same.

由于 Android 仍然很小,我想阅读 iPhone OpenGL-ES 教程也可能会有所帮助,因为我认为 OpenGL-ES 功能大致相同。

I have found the following useful information which I would have liked to share:

我发现了以下有用的信息,我想分享这些信息:

Android tutorials:

安卓教程:

Other Android OpenGL-ES information:

其他 Android OpenGL-ES 信息:

iPhone OpenGL-ES tutorials (where the OpenGl-ES information is probably useful):

iPhone OpenGL-ES 教程(其中 OpenGL-ES 信息可能有用):

As for libraries which a beginner might use to get a simpler hands-on experience with OpenGL-ES, I have only found Rokon, which is recently started, thus has many holes and bugs. And it's gnuGPL licensed (at the moment) which means it cannot be used, if we wish to sell our games.

至于初学者可以用来获得更简单的 OpenGL-ES 实践经验的库,我只发现Rokon,它是最近启动的,因此有很多漏洞和错误。它是 gnuGPL 许可的(目前),这意味着如果我们想出售我们的游戏,则不能使用它。

What else is out there?

外面还有什么?

采纳答案by broschb

The site you mentioned is very good, but I think the best one I have found is by INsanityDesign. It is a port of the great OpenGL nehetutorials. This is a great place to start, it gives you source at different levels that you can play with and change to see what different parts do. Other than that reading OpenGL documentation, will help as well. I am not great at the OpenGL stuff, but have been able to figure things out using the resources I mentioned.

您提到的网站非常好,但我认为我找到的最好的网站是INsanityDesign。它是伟大的 OpenGL nehe教程的一个端口。这是一个很好的起点,它为您提供不同级别的源,您可以使用并更改以查看不同部分的作用。除了阅读 OpenGL文档之外,也会有所帮助。我不擅长 OpenGL 的东西,但已经能够使用我提到的资源来解决问题。

回答by VansFannel

An excelent tutorial about OpenGL ES 1.1 on Android:

http://blog.jayway.com/2009/12/03/opengl-es-tutorial-for-android-part-i/

Android 上关于 OpenGL ES 1.1 的优秀教程:http:

//blog.jayway.com/2009/12/03/opengl-es-tutorial-for-android-part-i/

回答by skrat

You definitely can sell your games based on GPL software, read more here: http://www.gnu.org/philosophy/selling.html

您绝对可以销售基于 GPL 软件的游戏,请在此处阅读更多信息:http: //www.gnu.org/philosophy/ sell.html

回答by Matt J.

I gave up on anddev tutorials a long time ago. Every such tutorial I tried would not even build correctly, they were way out of date, and the guy who does them never seems to finish anything.

我很久以前就放弃了 anddev 教程。我尝试过的每一个这样的教程甚至都无法正确构建,它们已经过时了,而且执行它们的人似乎永远不会完成任何事情。

Unfortunately, the information you really want really is that scattered: you will not find it all at one URL unless you are willing to read the entire Red Book; but that is certainly no tutorial, it is a much more exhaustive reference.

不幸的是,您真正想要的信息真的很分散:除非您愿意阅读整本红皮书,否则您无法在一个 URL 上找到所有信息;但这当然不是教程,它是一个更详尽的参考。

Yet it seems that only such an exhaustive reference will give the information you need in a complete enough and precise enough form to understand such useful and basic issues as the distinction between viewing transformation, viewport transformation, model transformation and viewing transformation, and why OpenGL insists on combining the latter two.

然而,似乎只有这样一份详尽的参考资料才能以足够完整和足够精确的形式提供您需要的信息,以了解诸如视图转换、视口转换、模型转换和视图转换之间的区别以及为什么 OpenGL 坚持这样的有用和基本问题关于结合后两者。

回答by Impaler

There are some good OpenGL ES tutorials for Android here too: http://obviam.net/index.php/category/opengl/

这里也有一些很好的 Android OpenGL ES 教程:http: //obviam.net/index.php/category/opengl/

回答by rui

If you want to get started from a really basic OpenGL ES project on Android (one that's actually been compiled and works) you can have a look here: http://www.ruibm.com/?p=263

如果您想从 Android 上的一个非常基本的 OpenGL ES 项目(一个实际上已经编译并可以运行的项目)开始,您可以查看这里: http://www.ruibm.com/?p=263

回答by Ramesh Akula

There is good tutorial series for beginners,to learn opengl.

有很好的教程系列适合初学者学习opengl。

http://www3.ntu.edu.sg/home/ehchua/programming/android/Android_3D.html

http://www3.ntu.edu.sg/home/ehchua/programming/android/Android_3D.html

回答by Neil Traft

The best resource I have found so far is Learn OpenGL ES. In fact I found it because it is recommended on NeHe. It's active and has a series of tutorials specifically for Android which are quite comprehensive.

迄今为止我找到的最好的资源是Learn OpenGL ES。事实上我找到它是因为它被推荐在 NeHe 上。它是活跃的,有一系列专门针对 Android 的教程,非常全面。

回答by ertemplin

There is now a 3d library for android available called min3d:

现在有一个适用于 android 的 3d 库,名为 min3d:

http://code.google.com/p/min3d/

http://code.google.com/p/min3d/

I haven't used it yet, but it looks useful.

我还没有使用它,但它看起来很有用。

回答by Nick Gotch

An OpenGL ES tutorial series that I found immensely helpful while porting an iPhone game to Android using the NDK was:

我发现在使用 NDK 将 iPhone 游戏移植到 Android 时非常有用的 OpenGL ES 教程系列是:

http://www.zeuscmd.com/tutorials/opengles/

http://www.zeuscmd.com/tutorials/opengles/