Another Blender exporter

Not to take away from hevee, but I started my own exporter before I saw his post. This will export a Blender scene to a jME XML file. It will export all Mesh type objects in the scene. The code is just test code, so it is not clean by any means. Please check it out and let me know if you have any problems.



Blender XML export script



Code to import it(taken from tutorial):


URL model = Test.class.getClassLoader().getResource("testscene.xml");

ByteArrayOutputStream BO = new ByteArrayOutputStream();

JmeBinaryReader jbr = new JmeBinaryReader();

XMLtoBinary xtb = new XMLtoBinary();

try {
   xtb.sendXMLtoBinary(model.openStream(), BO);

   jbr.setProperty("bound", "box");

   Node scene = jbr.loadBinaryFormat(new ByteArrayInputStream(BO.toByteArray()));

   scene.setLocalScale(.1f);
   
   rootNode.attachChild(scene);
}
catch (IOException e) {
   System.out.println("Failed to load XML file" + e);
   e.printStackTrace();
   System.exit(0);
}