我正在尝试创建一个应用程序,它将容纳一个3D球体,具有表面颜色的皮肤,用户将能够操作(旋转,放大/缩小,能够在坐标上放置大头针,以及其他类似的简单任务)。我最初考虑使用OpenGL ES,但我现在被来自https://developer.android.com/guide/topics/graphics/opengl.html的以下评论吓坏了。
但是,如果您希望更好地控制应用程序在屏幕上绘制的内容,或者要尝试使用三维图形,则需要使用不同的工具。
在OpenGL ES中进行3D建模完全是浪费时间吗?我用不同的工具会更好吗?
谢谢你的帮助!
发布于 2017-06-14 14:04:36
首先,您链接的页面没有引用的文本。它是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.这意味着安卓提供了标准的工具(画布或视图),但对于更多的控制或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是安卓仅有的工具,它们可以让你更直接地使用图形处理器进行3D图形处理。因此,应该使用OpenGL ES (或者Vulkan,如果您的目标设备支持它的话)。
发布于 2017-06-14 19:00:21
OpenGL ES只是一个低级的加速渲染应用程序接口-它将让你的应用程序在屏幕上获得漂亮的像素。
所有更高级别的逻辑(处理旋转、缩放、锁定、决定要绘制的内容等)都需要由应用程序提供。OpenGL ES提供了帮助的工具,但它不能为您提供逻辑。
https://stackoverflow.com/questions/44535891
复制相似问题