i’m getting this error, with a simple exported cube from blender (the default one!), among other models.
[java]java.lang.UnsupportedOperationException: The geometry Cube1 (Geometry) buffer Index has different number of components than the rest of the meshes (this: 1, expected: 3)[/java]
Here is the attached model (made with blender 2.62):
public class TestGeometryBatch extends SimpleApplication {
public static void main(String[] args) {
new TestGeometryBatch().start();
}
@Override
public void simpleInitApp() {
for (int i = 0; i < 3; ++i) {
Spatial s = assetManager.loadModel("Models/cube.j3o");
rootNode.attachChild(s);
}
GeometryBatchFactory.optimize(rootNode);
}
yeh thats what i thought, but this cube only has 1 mesh, so they should all have the same amount of buffers.
I exported it as a .obj and ogre and converted those to .j3o and they loaded fine. Seems it’s only when converting the .blend file directly to .j3o and trying to batch them that the issue arises