ArrayIndexOutOfBoundsException importing ogre model

I have created a model in blender and after a lot of learning managed to import it into jme3 and if looks great. However when i try to animate my model i get this error

java.lang.ArrayIndexOutOfBoundsException: -3
at com.jme3.animation.CompactVector3Array.deserialize(
at com.jme3.animation.CompactVector3Array.deserialize(
at com.jme3.animation.CompactArray.get(
at com.jme3.animation.BoneTrack.setTime(
at com.jme3.animation.Animation.setTime(
at com.jme3.animation.AnimChannel.update(
at com.jme3.animation.AnimControl.controlUpdate(
at com.jme3.scene.control.AbstractControl.update(
at com.jme3.scene.Spatial.runControlUpdate(
at com.jme3.scene.Spatial.updateLogicalState(
at com.jme3.scene.Node.updateLogicalState(
at com.jme3.scene.Node.updateLogicalState(
at com.jme3.system.lwjgl.LwjglAbstractDisplay.runLoop(
at com.jme3.system.lwjgl.LwjglDisplay.runLoop(

I’m using blender2.69 and the ogre 0.6 exporter and jme3 (i upgraded the plugins not sure if i need to upgrade any jars)


From my personal experiences and tests:

2.69: I get this error always, I checked the XML and notice the output order was a bit out of place from a working sample, I didn’t test further, but I assume this was what is causing those array -3s.

2.66: The XML order is still out of place.

2.63 with the bundled ogre exporter in JME3: works 100% of the time, but the .blend does not import, I prefer working with the ogre export anyway, so this was what i chose, blender 2.69 is already in JME3 folder if I need a feature from it. XML generated from this appears to be the only “accepted” form.

1 Like