I am developing an application on libgdx and I am trying to play an animation I created on Blender but I continue to get the unknown animation error. I have this code in my create method:
model = modelLoader.loadModel(Gdx.files.getFileHandle("i1.g3db", FileType.Internal));
modelInstance = new ModelInstance(model);
modelInstance.transform.rotate(1, 0, 0, -90);
modelInstance.transform.translate(0, 0, -2);
controller = new AnimationController(modelInstance);
controller.setAnimation("moveHand",1);
And this in my render method:
camera.update();
camController.update();
controller.update(Gdx.graphics.getDeltaTime());
modelBatch.begin(camera);
modelBatch.render(modelInstance, environment);
modelBatch.end();
I tried to cut out the pieces that are not relevant to the question. Here is a pic of the dopesheet in Blender which shows that I have named my animation appropriately:
Anyone has an idea what might be the problem cause I've been stuck on this one for quite a while, thank you! I have the animation files (.g3db, .blender) uploaded here if anyone feels like opening them: