XML Importer/Exporter added to jME 2.0 codebase

Great job Doug, glad we finally got that in.  (Thanks for commiting it too MrCoder)

this is an awesome thing. thanks hevee and doug!

Yes, Great Work!! And the Bender exporter is good to go as well, right?

It is good to see this as a part of jME!

nymon, for all I know the blender exporter (version 2!) should work with this. I'll test this tomorrow (if I can find the time) and see if the exporter needs any updates.

Very encouraging



The null nodes, is this right to have these in this manner ??

The null nodes are in fact empty slots in an array (renderStateList), so I think it makes some sense to have them there.

Well, to be honest I was initially planning to have a specific handling for RenderStates, to make the XML more readable, but never got around to that.

I may or may not find some time this weekend to look into that again.

hevee said:

I was initially planning to have a specific handling for RenderStates, to make the XML more readable, but never got around to that.

I checked and to my surprise I had already done the special renderStateList handling in the import code, so it was trivial to change the exporter accordingly. The nasty <null/> nodes are history (if the devs decide to patch in the diff I sent doug that is).

Other than that I found that the blender exporter indeed requires some changes, and I might be done with them already, but haven't finished the testing yet. But it definitely won't be long and the new blender exporter will happily work together with the latest jME 2.0 code :)

Thanks again for the updates hevee your fixes should be in the latest SVN version.



http://code.google.com/p/jmonkeyengine/source/detail?r=3896


  • removed null nodes in Savable[] to make the renderstateList XML exporting
    more readable

  • Call initCause() when throwing IOException's

  • Added various copyright info and javadoc comments