I have been trying to import new character in my game since a while now, but it simply fail everytime, no matter how i try. This is the linik
http://tf3dm.com/3d-model/army-pilot-fully-rigged-animated-20-animations-57044.html
First, i decide to go whit the .obj extension and it worked great but as i learn later, this format does not support the animation. So i decided to try the mesh.xml format inside of the file, but I always get this error message
Grave: Uncaught exception thrown in Thread[LWJGL Renderer Thread,5,main]
java.lang.ArrayIndexOutOfBoundsException: 1
at com.jme3.scene.plugins.ogre.MaterialLoader.load(MaterialLoader.java:450)
at com.jme3.scene.plugins.ogre.MaterialLoader.load(MaterialLoader.java:464)
and so on. The specific methode that crash is this one :
String[] split = statement.getLine().split(" ", 2);
matName = split[1].trim(); // this line
readMaterial(statement);
Material mat = compileMaterial();
list.put(matName, mat);
I might be missing something very trivial but its realy kinda annoying. Plus, when i try to export something from blender whit the ogre exporter, one of two things happen. It either just give me a plane.001.mesh.xml that don’t work or the exportation actully work yet when i try to load it in game… i got things like this :
Grave: Uncaught exception thrown in Thread[LWJGL Renderer Thread,5,main]
com.jme3.asset.AssetLoadException: An exception has occured while loading asset: Models/Bug/robot_bug.mesh.xml
at com.jme3.asset.DesktopAssetManager.loadAsset(DesktopAssetManager.java:290)
at com.jme3.asset.DesktopAssetManager.loadModel(DesktopAssetManager.java:374)
at com.jme3.asset.DesktopAssetManager.loadModel(DesktopAssetManager.java:378)
And this goes here
try {
handler.establishParentKey(key);
obj = loader.load(info);
} catch (IOException ex) {
throw new AssetLoadException("An exception has occured while loading asset: " + key, ex); // the bugging one
} finally {
handler.releaseParentKey(key);
}
I am doing something wrong for sure but what? Any suggestion? Or any ways i could find some animated assets somewhere that won’t crash so I can finaly do my test? I already use the the ninja and oto one, but I would like to try more.