Java 你如何在 Android Studio 中使用 3D 图形?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/29712897/
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 do you use 3D graphics in Android Studio?
提问by user4792835
I am wondering how app developers create games with 3D animations and graphics. Does anyone know how those games are made, and can it be done with android studio?
我想知道应用程序开发人员如何创建具有 3D 动画和图形的游戏。有谁知道这些游戏是如何制作的,可以用android studio完成吗?
采纳答案by cutmancometh
Yes, it can be done with Android Studio.
是的,它可以通过 Android Studio 完成。
If you wanted to hand-code it, you would just create a GLSurfaceView, and draw objects into it. Here's a basic tutorial: Displaying Graphics with OpenGL ES
如果您想对其进行手动编码,只需创建一个 GLSurfaceView,然后将对象绘制到其中即可。这是一个基本教程:Displaying Graphics with OpenGL ES
But, you would neverhand-code it in real life. To make even a simple 3D game, you would want to use a game engine like Unity3Dor jPCT-AE.
但是,您永远不会在现实生活中对其进行手动编码。要制作一个简单的 3D 游戏,您可能需要使用Unity3D或jPCT-AE 之类的游戏引擎。
Any decent 3D engine will have tools for porting to Android. And many of them have communities that can offer support and troubleshooting.
任何体面的 3D 引擎都会有移植到 Android 的工具。他们中的许多人都有可以提供支持和故障排除的社区。