问题描述
我期待到Renderscript能力,并坚持与A3D(安卓3D)文件格式。我无法找到一个简单的方法来一个Collada的文件转换为A3D的格式来存储我的搅拌机模型。
I am looking into Renderscript capabilities and stuck with the A3D (Android 3d) file format. I can't find an easy way to convert a Collada file into an A3D format to store my blender model.
我在想,如果你们有一个想法,我可以尝试也许?
I was wondering if you guys have an idea I could try maybe?
有没有人有一个工作code样品,这是可以看到什么即时通讯做错了什么?
Does anyone have a working code sample so that is can see what im doing wrong?
更多信息:http://developer.android.com/reference/android/renderscript/FileA3D.html
编辑:为了不被误认为是Asci3d文件扩展(也* .a3d)
Not to be mistaken for the Asci3d file extention ( also *.a3d )
推荐答案
随着冰淇淋三明治(或许更早)存在中的Collada和A3D之间转换的Android源代码的工具。
As of Ice Cream Sandwich (perhaps earlier) there is a tool in the Android source to convert between Collada and A3D.
该工具被称为a3dconvert;你可以在这里在线浏览源(ICS的分支)的
The tool is called a3dconvert; you can browse the source online here (in the ICS branch): https://github.com/android/platform_development/tree/ics-mr1-release/tools/a3dconvert
使用方法:a3dconvert INPUT_FILE a3d_output_file目前.OBJ和.dae(COLLADA)输入文件都会被接受。
Usage:a3dconvert input_file a3d_output_fileCurrently .obj and .dae (collada) input files are accepted.
该工具已被移除,新版本的(果冻豆,它看起来像)。这可能是因为Renderscript的图形部一直德precated
This tool has been removed as of newer releases (Jelly Bean, it looks like). This probably because the graphics portion of Renderscript has been deprecated.
这篇关于转换的Collada文件到A3D(Android3d)对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!