I'd like to start using the Collada format for my game models, however I am running into a problem with loading models exported from Blender using the export script from Illusoft. I have a simple model (a square tile made up of two triangles) that I am trying to load using ColladaImporter, and I am getting the follow exception:
java.lang.NumberFormatException: For input string: ""
at java.lang.NumberFormatException.forInputString(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at com.jmex.model.collada.ColladaImporter.processTriMesh(Unknown Source)
at com.jmex.model.collada.ColladaImporter.processMesh(Unknown Source)
at com.jmex.model.collada.ColladaImporter.processGeometry(Unknown Source)
at com.jmex.model.collada.ColladaImporter.processCollada(Unknown Source)
at com.jmex.model.collada.ColladaImporter.load(Unknown Source)
at com.jmex.model.collada.ColladaImporter.load(Unknown Source)
at net.rpgtoolset.engine.MainGameState.setupTerrain(MainGameState.java:222)
Below is a link to the Collada file and texture, any help would be appreciated. Thanks!
dunno about collada blender's exporter yet -grab plugins allways from plugin author page, no the native- but…test about selecting and leave selected the model before exporting, with a open 3d window, in blender…who knows.
cant tell you why I suspect this. But I have that suspiction.
I grabbed and compiled all of the latest jME packages and I am still running into the same problem. I modified the test Collada loading source to this:
Apparently it's trying to parse a "set" attribute that isn't there. I added that attribute into my file (gave it a value of 1 just to see what would happen), and now the model will load and display correctly, but there is no texture... Any ideas?