Convert Collada file to a3d object (Android3d)

I am looking at Renderscript features and sticking to the A3D format (Android 3d). I cannot find an easy way to convert a Collada file to A3D format to store my blender model.

I was wondering if you have an idea, I can try, maybe?

Does anyone have a sample working code so that they can see what I'm doing wrong?

Additional information: http://developer.android.com/reference/android/renderscript/FileA3D.html

Edit: Do not allow errors for the Asci3d file extension (also * .a3d)

+7
source share
4 answers

Like Ice Cream Sandwich (maybe earlier), the Android device has a tool for converting between Collada and A3D.

The tool is called a3dconvert; you can view the source online here (at 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 from new versions (Jelly Bean, it seems). Perhaps this is due to the fact that the graphic part of Renderscript is out of date.

+5
source

I'm not sure that A3D is a good format, but if you need to write a converter, then this is a description of both formats:

http://scorpion.tordivel.no/help/UsersGuide/General/ImageOperations/ImageFormats/ImageFormats_a3d.htm

http://en.wikipedia.org/wiki/COLLADA

And here is a sample code for reading Collada:

http://sourceforge.net/projects/colladaloader/

+1
source

If you switch from Blender to A3D, I would consider writing a Python script to go directly to Blender's A3D format. The A3D format looks pretty simplistic, and if you are only accessing Mesh data, the Blender API is not too simple. Of course, if you don't already know this, you'll have to pick up the Python syntax.

I did not know anything about Python, when I first wanted to get some information from Blender and looked at existing .py scripts (for example, exporting OBJ), the Blender API and having studied some basic Python syntax, I was able to write my first (rather simple) script in just a few hours or so.

0
source

http://colladablender.illusoft.com/cms/ is a project creating a plugin for Blender to read Collada directly.

In addition, Carrara can be used to convert your files into what Blender supports.

0
source

All Articles