简体   繁体   English

在Android上为3D模型制作动画

[英]Animating a 3D Model on Android

I'm about to start writing a 3D model importer for Android which require to support animation. 我即将开始为Android编写3D模型导入器,该导入器需要支持动画。

I was looking around, and the best format i found is Collada, which seems to be the easiest to parse and the most complete/documented. 我环顾四周,发现的最佳格式是Collada,它似乎是最容易解析且最完整/记录最全的格式。

Before starting, I just wanted to have your opinions about it, is there something better/something wrong with Collada? 开始之前,我只是想征询您的意见,Collada是否有更好的地方/出了什么问题?

The idea is to do skeletal animation on Android (Im using OpenGL ES 2.0). 这个想法是在Android上做骨架动画(Im使用OpenGL ES 2.0)。

Thanks for your advices! 感谢您的建议!

I personally think that .vtk is one of the easiest 3D formats to parse in Java/Android and use in OpenGL-ES (I have created an app that contains a custom built parser to import the data from standard, legacy-ASCII .vtk file). 我个人认为.vtk是在Java / Android中解析并在OpenGL-ES中使用的最简单3D格式之一(我创建了一个包含自定义解析器的应用程序,可从标准的传统ASCII .vtk文件导入数据)。 The .vtk files that I use are generated using ITK-snap and VTK, from CT images of patients. 我使用的.vtk文件是使用ITK快照和VTK从患者的CT图像生成的。

If you are planning to make 3D models from scratch, you should try using Sketchup. 如果您打算从头开始制作3D模型,则应尝试使用Sketchup。 If you get Sketchup pro (either as a trial for one month, or a full purchase), you can convert your Sketchup 3D models directly to a large variety of 3D formats (including .obj). 如果您获得Sketchup Pro(试用期为一个月或购买了完整版),则可以将Sketchup 3D模型直接转换为多种3D格式(包括.obj)。 I would then advise you to download Paraview, which is a great piece of software for visualizing 3D data. 然后,我建议您下载Paraview,这是用于可视化3D数据的出色软件。 In Paraview, open your .obj model, and then save the data as a .vtk file, so that you can use parse it in your app. 在Paraview中,打开.obj模型,然后将数据另存为.vtk文件,以便可以在应用程序中使用解析它。

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

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