Hello,
I seem to be having an issue using a j3o object after upgrading from 3.0 to 3.1Beta. I am unable to post the j3o object in question due to policy issues, but figured I’d see if anyone could figure it out without the object. Essentially I have been using a j3o object with skeletal animation in 3.0 and it appeared to work fine (so I assume the model is fine). After transitioning to 3.1Beta, it appears to now be causing issues. After loading the object and the renderManager.render(tpf, context.isRenderagble()) is called, I get:
java.lang.IllegalArgumentException: Buffer format mismatch. Cannot copy
at com.jme3.scene.VertexBuffer.copyElements(VertexBuffer.java:914)
at com.jme3.scene.Mesh.prepareForAnim(Mesh.java:473)
at com.jme3.animation.SkeletonControl.switchToHardware(SkeletonControl.java:129)
at com.jme3.animation.SkeletonControl.testHardwareSupported(SkeletonControl.java:161)
at com.jme3.animation.SkeletonControl.controlRender(SkeletonControl.java:281)
at com.jme3.scene.control.AbstractControl.render(AbstractControl.java:135)
at com.jme3.scene.Spatial.runControlRender(Spatial.java:756)
The spatial is added within a class that extends AbstractControl via the following:
physicsCharacter = new BetterCharacterControl(1.0f, 6f, 8f);
characterNode.addControl(physicsCharacter);
characterNode.addControl(this);
physicsSpace.add(physicsCharacter);
Spatial avatar =
jmeApplication.getAssetManager().loadModel("Models/MyModel.j3o");
Node avatarNode = new Node();
avatarNode.attachChild(avatar);
characterNode.attachChild(avatarNode);
application.getRootNode().attachChild(characterNode);
I commented out all animation stuff to limit possible causes but still get the issue. Has anyone else had this issue or know what the cause could be? Any help is appreciated!
Thanks,
Johnathan