Collada Importer

Hi there, my designer models with Google SketchUp, therefore exports models into Collada .dae formats… I would like to import it directy to JME instead of importing it to Blender then use hottbj to export into xml… and I'm aware that there is an existing Collada importer in JME… i saw it in jmetest.renderer.loader.TestCollada although I don't know how to use it… can you help me?

Using the JME collada is not too complicated.

First you need to read in the collada file you are trying to import.

You can do this by using the following code.

              InputStream source;

      try {
         source  = new FileInputStream("..nameoffileyoutryingtoimport.dae");
      } catch (FileNotFoundException e) {
         throw new RuntimeException(e);


After that you need to get the Node from the Collada Importer, for that you can do.

Node n = ColladaImporter.getModel();

Once you have the node you can add it to the root node of your game and done.