简体   繁体   English

在Android中操纵3D模型?

[英]Manipulating 3D models in Android?

so I am thinking of developing an app: I would have a text field for commands and a 3d model (simple one, just torso and hands) and for example when I write left, it moves its hand left and etc. I am using Blender for the 3D and started to develop the model but I don't get one thing: 所以我正在考虑开发一个应用程序:我将有一个用于命令和3D模型的文本字段(简单的模型,只是躯干和手),例如当我向左书写时,它会将其手向左移动等等。我正在使用Blender 3D并开始开发模型,但我一无所获:

Would I be able to do the manipulations (moves) from within Android? 我可以在Android中进行操作(移动)吗? Meaning I should create the model in Blender just in his initial position. 意味着我应该在Blender的初始位置创建模型。 Is that how it works? 那是怎么回事? And also if anyone has done it what should I use to read the model files in Android? 而且,如果有人这样做了,我应该怎么用Android读取模型文件?

I am sorry if my question is a bit confusing but I am confused as well. 很抱歉,我的问题有点令人困惑,但我也感到困惑。 If any further explanations are needed I'll respond to your answer! 如果需要任何进一步的解释,我会回复您的答复! Thank you in advance! 先感谢您!

To make things easier on yourself you should consider a graphics library for Android. 为了使事情变得简单,您应该考虑使用Android图形库。 My personal preference is libGDX as it's multiplatform and you can run it straight on your desktop, you can import 3D animations from blender (source included) . 我个人比较喜欢libGDX,因为它是多平台的,您可以直接在桌面上运行它,还可以从Blender导入3D动画(包括源代码) And start different animations depending on the user input. 并根据用户输入开始不同的动画。

This doesn't directly answer your question, but unless there is a particular need to make a native application, I would recommend you look into third party 3D platforms such as Unity3D. 这不会直接回答您的问题,但是除非特别需要制作本机应用程序,否则我建议您研究第三方3D平台,例如Unity3D。 They provide extensive tools which will allow you to rapidly create and configure your environment without having to handle any of the rendering or low level OpenGL code directly. 它们提供了广泛的工具,使您可以快速创建和配置环境,而不必直接处理任何渲染或低级OpenGL代码。 Unity has a free license available and is multiplatform so it's extremely easy to port to iOS in the future. Unity有一个免费的许可证,并且是多平台的,因此将来非常容易移植到iOS。

As for answering your question, as Steven Trigg has already mentioned, the best way to go about it would be through the use of existing libraries. 至于回答您的问题,正如史蒂文·特里格(Steven Trigg)已经提到的那样,解决此问题的最佳方法是使用现有库。 OpenGL doesn't have native support for animations or advanced model loading so you would have to code that up yourself otherwise. OpenGL没有对动画或高级模型加载的本机支持,因此您必须自己编写代码。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM