Android Studio

时间:2017-06-14 05:09:12

标签: android opengl-es 3d modeling

我正在尝试创建一个应用程序,它将容纳一个3D球体,表面颜色皮肤,用户将能够操作(旋转,放大/缩小,能够放下坐标上的针脚) ,以及其他简单的任务。我第一次考虑使用OpenGL ES,但我目前对以下来自https://developer.android.com/guide/topics/graphics/opengl.html的评论感到害怕,

“但是,如果您想要更好地控制应用程序在屏幕上绘制的内容,或者想要使用三维图形,则需要使用其他工具。”

在OpenGL ES中,3D建模是否完全浪费时间?我最好使用不同的工具吗?

感谢您的帮助!

2 个答案:

答案 0 :(得分:0)

首先,您链接的页面没有引用的文本。它改为this文本。 现在,关于文本本身:你是脱离背景和/或误解它。这是一个完整的引用:

The Android framework provides plenty of 
standard tools for creating attractive, functional 
graphical user interfaces. However, if you want 
more control of what your application draws on 
screen, or are venturing into three dimensional 
graphics, you need to use a different tool. The 
OpenGL ES APIs provided by the Android 
framework offers a set of tools for displaying 
high-end, animated graphics that are limited only 
by your imagination and can also benefit from the 
acceleration of graphics processing units (GPUs) 
provided on many Android devices.

这意味着Android提供了标准工具(Canvas或视图),但是对于更多控件或3D图形,您需要使用OpenGL ES。

Is 3D modeling a complete waste of time in 
OpenGL ES? Am I better off with a different tool?

OpenGL ES和最新的Vulkan API是Android上唯一可用的工具,可让您直接使用3D图形并使用GPU。 因此,您应该使用OpenGL ES(或者Vulkan,如果您要定位的设备支持它)。

答案 1 :(得分:0)

OpenGL ES只是一个低级加速渲染API - 它可以让你的应用程序在屏幕上获得漂亮的像素。

您的应用程序需要提供所有更高级别的逻辑(处理旋转,缩放,引脚,决定绘制内容等)。 OpenGL ES提供了帮助的工具,但它无法为您提供逻辑。