Question

I'm preparing to write a COLLADA importer in Java. There aren't any pre-written importers, and even if there were I would probably be picky, so I believe this is best. I am going with COLLADA 1.4 because I do not need the 1.5 features, and many programs don't yet support it. I found the spec for it and plan on following it, but it is much easier to follow by example and reference the spec for additional information.

So with all that... Can some of you who are experienced in COLLADA point me to some simple models that I can use to learn and test my importer as I write it? I will export a few with just geometry, but I need some with textures or materials, with skeletal and keyframe animation, etc. Any suggestions?

Alternatively, I know that Blender can export COLLADA 1.4 and it can import most formats. If you have a really good suggestion for a site that has simple 3D models in another format that I will just import and export as COLLADA, that would be fine too!

Thanks!

Was it helpful?

Solution

I know two decent places at least:

The google site has lots of collada files, thingiverse has more in the way of stl (sterio lithography) files.

OTHER TIPS

Download Assimp the "Open Asset Import Library" from http://assimp.sourceforge.net/main_downloads.html. It has a whole bunch of Collada files (in test/models/Collada) that it uses for its test suites.

The problem here is the fact that as far as I know there is no tool (at least available to the public) that supports the full Collada specification (especially 1.5). The part that is in most cases well tested and developed is the geometry-library element, materials etc., which in 1.5 are usually taken from some 1.4 implementation (that's why tools that usually state they support 1.5 actually don't (physics, kinematics etc. are in most cases missing or in bad condition). Still you can easily create decent (as in geometry part is OK but the rest - maybe is, maybe not) enough Collada files using various export-features of primarily 3d modeling software (Blender, Maya, 3ds Max, CATIA etc.). OpenRAVE (used for robotics path planning) actually has one of the best export/import capabilities, when it comes to COLLADA and even supports (partially) 1.5 features such as kinematics.

If you decide to use Blender for example (free and open source so you can actually look how the import/export addon works), you can create something simple or complex and export it as COLLADA 1.4 (not 1.5!). OpenRAVE for instance uses a custom XML-format that is converted internally to Collada (in order to hide the complexity of this standard) and allows you to even embed other formats (mostly for the geometry-part) such as OBJ, which is much much easier to find a decend import/export tool for. Khronos Group actually provides OpenCollada (OpenRAVE and many others use it internally, which of course results in bugs in all of them, when something is badly implemented in OpenCollada :P). The Assimp-library offers also quite a lot but the major problem is the misinformation it gives on what it actually supports from the Collada standard. In fact it is really, really hard to find a reference on the implemented features, when it comes to Collada, and sadly recently I started using 1.5 (kinematics) just to discover that Assimp supports only 1.4 and is bound to it to such extent that it throws errors at you the moment it encounters a typically 1.5 element (even if it is empty!), which omho is a really bad implementation on part of the developers. In the list of supported formats the Assimp's site states only Collada and no version is given.

I know this question is old and answered but I hope this info helps. I myself am writing a parser in C# for internal usage where I'm currently working and it's a real pain to discover how badly supported this already an ISO standard is. The complexity of Collada is huge but that's why it is considered a pipeline-format and not something you are supposed to use in a final product that relays on good performance (both speed and storage).

Blendswap.com is a really great site with tons of models for Blender. Once you sign up for an account, you can download them for free. You can even use the majority of the models on the site commercially. Before you download it lets you know if you have to give the author credit, although some of the models can be used without giving credit, although it is recommended still. Keep in mind that there is a 200 MB limit per month for downloading. There are plenty of models that are 1MB, so check the size of the file before downloading. Then you can use the Collada exporter in Blender. Make sure to check the settings on the Collada exporter.

The WebGL framework three.js has some examples here on their GitHUB page

The monster file can be seen in action here.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top