java 如何开始为 Android 应用程序(例如使用 OpenGL)创建 3D(游戏)GUI?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/3124014/
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
How to begin creating 3D (Game-) GUIs for Android Applications (e.g. with OpenGL)?
提问by ChrisBenyamin
I am new to Android Development. What I want is to know how I have to begin thinking to program a neat, GUI. I guess the android.opengl API is a good starting point.
我是 Android 开发的新手。我想要的是知道我必须如何开始思考编写一个整洁的 GUI。我想 android.opengl API 是一个很好的起点。
Let's say we want to create something like a simplified 3D-Pool-Billard-Game: You see the table from the top and you have on the table the balls. You want to make them realistic (shadow, gloss).
假设我们想要创建类似简化的 3D 台球桌游戏:您从顶部看到桌子,桌子上有球。您想让它们逼真(阴影、光泽)。
Questions on my mind are:
我心中的问题是:
- What kind of Graphics do I need?
- How to begin coding?
- What kind of classes do I need? For each element (ball, table, ..)?
- Where to create and encapsulate the "3D-ness"?
- 我需要什么样的图形?
- 如何开始编码?
- 我需要什么样的课程?对于每个元素(球,桌子,..)?
- 在哪里创建和封装“3D 性”?
If you know better/additional questions, just add them or/and let me know in which direction I have to think in this case of developing.
如果您知道更好/其他问题,只需添加它们或/并让我知道在这种开发情况下我必须考虑的方向。
My skills/background on Java: I've programmed a lot in Java EE and used to handle graphical output with JSP/JSF. So this mobile SE for Android is new to me. Hope to get some intersting stuff together for a smooth access.
我的 Java 技能/背景:我用 Java EE 编写了很多程序,并习惯于使用 JSP/JSF 处理图形输出。所以这款适用于 Android 的移动 SE 对我来说是新的。希望能把一些有趣的东西放在一起,以便顺利访问。
Chris
克里斯
回答by darkflame
I'd recomend using a existing 3d engine, else your in for a lotof work. http://www.jpct.net/jpct-ae/isn't a bad one and has a flexible license.
我建议使用现有的 3d 引擎,否则你需要做很多工作。 http://www.jpct.net/jpct-ae/不错,并且拥有灵活的许可证。

