Search code examples
androidcolladarenderscript

Converting Collada file to a a3d (Android3d) object


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?

Does anyone have a working code sample so that is can see what im doing wrong?

More info: http://developer.android.com/reference/android/renderscript/FileA3D.html

Edit: Not to be mistaken for the Asci3d file extention ( also *.a3d )


Solution

  • As of Ice Cream Sandwich (perhaps earlier) there is a tool in the Android source to convert between Collada and A3D.

    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

    Usage: a3dconvert input_file a3d_output_file Currently .obj and .dae (collada) input files are accepted.

    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.