【发布时间】:2014-03-26 11:00:25
【问题描述】:
我正在 libgdx 上开发一个应用程序,我正在尝试播放我在 Blender 上创建的动画,但我继续收到未知动画错误。我的 create 方法中有这段代码:
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);
这在我的 render 方法中:
camera.update();
camController.update();
controller.update(Gdx.graphics.getDeltaTime());
modelBatch.begin(camera);
modelBatch.render(modelInstance, environment);
modelBatch.end();
我试图删掉与问题无关的部分。这是 Blender 中的摄影表图片,显示我已正确命名我的动画:
任何人都知道可能是什么问题,因为我已经卡在这个问题上很长一段时间了,谢谢!如果有人想打开它们,我会在此处上传动画文件(.g3db、.blender):
【问题讨论】:
标签: java animation 3d libgdx blender